~ubuntu-branches/ubuntu/precise/qt4-x11/precise-proposed

« back to all changes in this revision

Viewing changes to .pc/a11y_qt_and_qml_backport.diff/src/gui/widgets/qlineedit_p.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Jonathan Riddell, Felix Geyer
  • Date: 2011-11-01 16:23:55 UTC
  • mfrom: (15.3.22 sid)
  • Revision ID: package-import@ubuntu.com-20111101162355-4dhsj6563ii8enl6
Tags: 4:4.7.4-1ubuntu1
[ Jonathan Riddell ]
* Merge from Debian Git packaging.  Remaining Ubuntu changes:
  - Do not package ibase/firebird package, remove from debian/rules and
    debian/control
  - libqt4-sql-ibase not recommend for libqt4-sql
  - build with -no-phonon
  - do not build libqt4-phonon, disable in debian/control
  - Build packages with lzma compression using the dh addon from pkg-kde-tools
  - Rules to remove po dir in clean
  - Add MessagesQt.sh
  - Rules to create Messages.sh link to MessagesQt.sh and rules to create po
    dir and exectue extract-messages.sh in common-install-prehook-impl
  - Make libqt4-dev depend on libx11-dev
  - Add and install Trolltech.conf in libqtcore4.install
  - Build QtWebkit and use it only for QtAssistant
    + Rule to put qt_webkit_version.pri in mkspecs/modules
    + Rule to remove libQtWebKit* after build
    + Exclude usr/bin/assistant-qt4 from dh_shlibdeps
  - Fix Lucid upgrades: libqt4-help breaks/replaces libqtcore4 (<< 4:4.7.0)
  - Change OpenGL backend from GL to GLES 2 for armel (Debian does this for
    armhf)
    + Build-depend and make libqt4-opengl-dev depend on libgles2-mesa-dev
      instead of libgl1-mesa-dev and libglu1-mesa-dev
    + Pass "-opengl es2" to configure
  - Pass extra_configure_opts += -arch armv6 on both armel and armhf and not
    just armhf
  - In debian/rules Move documentation building to override_dh_auto_install where
    dh_listpackages works as expected with dpkg-buildpackage. (LP: #857377)
  - debian/compat is 9 and build-depend on newer debhelper for multiarch
* debian/patches/blacklist-diginotar-certs.diff is now
  debian/patches/blacklist-diginotar-cert.diff to match Debian
* Add prefix to some patches to clarify they come from Ubuntu rather than Debian
 - kubuntu_97_a11y_qt_and_qml_backport.diff
 - kubuntu_98_fix_accessible_menu.diff
 - kubuntu_99_notify_qml_name_description_change.diff

[ Felix Geyer ]
* Use DEB_*_MAINT_APPEND instead of setting CXXFLAGS and LDFLAGS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
**
3
 
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4
 
** All rights reserved.
5
 
** Contact: Nokia Corporation (qt-info@nokia.com)
6
 
**
7
 
** This file is part of the QtGui module of the Qt Toolkit.
8
 
**
9
 
** $QT_BEGIN_LICENSE:LGPL$
10
 
** GNU Lesser General Public License Usage
11
 
** This file may be used under the terms of the GNU Lesser General Public
12
 
** License version 2.1 as published by the Free Software Foundation and
13
 
** appearing in the file LICENSE.LGPL included in the packaging of this
14
 
** file. Please review the following information to ensure the GNU Lesser
15
 
** General Public License version 2.1 requirements will be met:
16
 
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
17
 
**
18
 
** In addition, as a special exception, Nokia gives you certain additional
19
 
** rights. These rights are described in the Nokia Qt LGPL Exception
20
 
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21
 
**
22
 
** GNU General Public License Usage
23
 
** Alternatively, this file may be used under the terms of the GNU General
24
 
** Public License version 3.0 as published by the Free Software Foundation
25
 
** and appearing in the file LICENSE.GPL included in the packaging of this
26
 
** file. Please review the following information to ensure the GNU General
27
 
** Public License version 3.0 requirements will be met:
28
 
** http://www.gnu.org/copyleft/gpl.html.
29
 
**
30
 
** Other Usage
31
 
** Alternatively, this file may be used in accordance with the terms and
32
 
** conditions contained in a signed written agreement between you and Nokia.
33
 
**
34
 
**
35
 
**
36
 
**
37
 
**
38
 
** $QT_END_LICENSE$
39
 
**
40
 
****************************************************************************/
41
 
 
42
 
#ifndef QLINEEDIT_P_H
43
 
#define QLINEEDIT_P_H
44
 
 
45
 
//
46
 
//  W A R N I N G
47
 
//  -------------
48
 
//
49
 
// This file is not part of the Qt API.  It exists purely as an
50
 
// implementation detail.  This header file may change from version to
51
 
// version without notice, or even be removed.
52
 
//
53
 
// We mean it.
54
 
//
55
 
 
56
 
#include "QtCore/qglobal.h"
57
 
 
58
 
#ifndef QT_NO_LINEEDIT
59
 
#include "private/qwidget_p.h"
60
 
#include "QtGui/qlineedit.h"
61
 
#include "QtGui/qtextlayout.h"
62
 
#include "QtGui/qstyleoption.h"
63
 
#include "QtCore/qbasictimer.h"
64
 
#include "QtGui/qcompleter.h"
65
 
#include "QtCore/qpointer.h"
66
 
#include "QtGui/qlineedit.h"
67
 
 
68
 
#include "private/qlinecontrol_p.h"
69
 
 
70
 
QT_BEGIN_NAMESPACE
71
 
 
72
 
class QLineEditPrivate : public QWidgetPrivate
73
 
{
74
 
    Q_DECLARE_PUBLIC(QLineEdit)
75
 
public:
76
 
 
77
 
    QLineEditPrivate()
78
 
        : control(0), frame(1), contextMenuEnabled(1), cursorVisible(0),
79
 
        dragEnabled(0), clickCausedFocus(0), hscroll(0), vscroll(0),
80
 
        alignment(Qt::AlignLeading | Qt::AlignVCenter),
81
 
        leftTextMargin(0), topTextMargin(0), rightTextMargin(0), bottomTextMargin(0)
82
 
    {
83
 
    }
84
 
 
85
 
    ~QLineEditPrivate()
86
 
    {
87
 
        delete control;
88
 
    }
89
 
 
90
 
    QLineControl *control;
91
 
 
92
 
#ifndef QT_NO_CONTEXTMENU
93
 
    QPointer<QAction> selectAllAction;
94
 
#endif
95
 
    void init(const QString&);
96
 
 
97
 
    int xToPos(int x, QTextLine::CursorPosition = QTextLine::CursorBetweenCharacters) const;
98
 
    QRect cursorRect() const;
99
 
    void setCursorVisible(bool visible);
100
 
 
101
 
    void updatePasswordEchoEditing(bool);
102
 
 
103
 
    inline bool shouldEnableInputMethod() const
104
 
    {
105
 
        return !control->isReadOnly();
106
 
    }
107
 
 
108
 
    QPoint tripleClick;
109
 
    QBasicTimer tripleClickTimer;
110
 
    uint frame : 1;
111
 
    uint contextMenuEnabled : 1;
112
 
    uint cursorVisible : 1;
113
 
    uint dragEnabled : 1;
114
 
    uint clickCausedFocus : 1;
115
 
    int hscroll;
116
 
    int vscroll;
117
 
    uint alignment;
118
 
    static const int verticalMargin;
119
 
    static const int horizontalMargin;
120
 
 
121
 
    bool sendMouseEventToInputContext(QMouseEvent *e);
122
 
 
123
 
    QRect adjustedContentsRect() const;
124
 
 
125
 
    void _q_handleWindowActivate();
126
 
    void _q_textEdited(const QString &);
127
 
    void _q_cursorPositionChanged(int, int);
128
 
#ifdef QT_KEYPAD_NAVIGATION
129
 
    void _q_editFocusChange(bool);
130
 
#endif
131
 
    void _q_selectionChanged();
132
 
#ifndef QT_NO_COMPLETER
133
 
    void _q_completionHighlighted(QString);
134
 
#endif
135
 
#ifndef QT_NO_DRAGANDDROP
136
 
    QPoint dndPos;
137
 
    QBasicTimer dndTimer;
138
 
    void drag();
139
 
#endif
140
 
 
141
 
    int leftTextMargin;
142
 
    int topTextMargin;
143
 
    int rightTextMargin;
144
 
    int bottomTextMargin;
145
 
 
146
 
    QString placeholderText;
147
 
};
148
 
 
149
 
#endif // QT_NO_LINEEDIT
150
 
 
151
 
QT_END_NAMESPACE
152
 
 
153
 
#endif // QLINEEDIT_P_H