Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qcombobox_p.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the QtGui module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    7878
    7979QT_BEGIN_NAMESPACE
     80
     81class QAction;
    8082
    8183class QComboBoxListView : public QListView
     
    230232    void scrollItemView(int action);
    231233    void updateScrollers();
    232     void setCurrentIndex(const QModelIndex &index);
    233234    void viewDestroyed();
    234235
     
    254255    QComboBoxPrivateScroller *top;
    255256    QComboBoxPrivateScroller *bottom;
     257#ifdef QT_SOFTKEYS_ENABLED
     258    QAction *selectAction;
     259    QAction *cancelAction;
     260#endif
    256261};
    257262
    258263class QComboMenuDelegate : public QAbstractItemDelegate
    259 {
     264{ Q_OBJECT
    260265public:
    261266    QComboMenuDelegate(QObject *parent, QComboBox *cmb) : QAbstractItemDelegate(parent), mCombo(cmb) {}
     
    286291// be other side effects from using the new class
    287292class QComboBoxDelegate : public QItemDelegate
    288 {
     293{ Q_OBJECT
    289294public:
    290295    QComboBoxDelegate(QObject *parent, QComboBox *cmb) : QItemDelegate(parent), mCombo(cmb) {}
    291296
    292297    static bool isSeparator(const QModelIndex &index) {
    293         return index.data(Qt::AccessibleDescriptionRole).toString() == QString::fromLatin1("separator");
     298        return index.data(Qt::AccessibleDescriptionRole).toString() == QLatin1String("separator");
    294299    }
    295300    static void setSeparator(QAbstractItemModel *model, const QModelIndex &index) {
     
    338343    QComboBoxPrivateContainer* viewContainer();
    339344    void updateLineEditGeometry();
     345    Qt::MatchFlags matchFlags() const;
     346    void _q_editingFinished();
    340347    void _q_returnPressed();
    341348    void _q_complete();
     
    352359    void _q_resetButton();
    353360    void _q_dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
    354     void _q_rowsAboutToBeInserted(const QModelIndex & parent, int start, int end);
     361    void _q_updateIndexBeforeChange();
    355362    void _q_rowsInserted(const QModelIndex & parent, int start, int end);
    356     void _q_rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end);
    357363    void _q_rowsRemoved(const QModelIndex & parent, int start, int end);
    358364    void updateArrow(QStyle::StateFlag state);
     
    368374    void updateLayoutDirection();
    369375    void setCurrentIndex(const QModelIndex &index);
    370     void updateDelegate();
     376    void updateDelegate(bool force = false);
    371377    void keyboardSearchString(const QString &text);
    372378    void modelChanged();
     379    void updateViewContainerPaletteAndOpacity();
    373380
    374381    QAbstractItemModel *model;
Note: See TracChangeset for help on using the changeset viewer.