Changeset 561 for trunk/src/gui/widgets/qcombobox_p.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/widgets/qcombobox_p.h
r2 r561 2 2 ** 3 3 ** 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) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** 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. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 78 78 79 79 QT_BEGIN_NAMESPACE 80 81 class QAction; 80 82 81 83 class QComboBoxListView : public QListView … … 230 232 void scrollItemView(int action); 231 233 void updateScrollers(); 232 void setCurrentIndex(const QModelIndex &index);233 234 void viewDestroyed(); 234 235 … … 254 255 QComboBoxPrivateScroller *top; 255 256 QComboBoxPrivateScroller *bottom; 257 #ifdef QT_SOFTKEYS_ENABLED 258 QAction *selectAction; 259 QAction *cancelAction; 260 #endif 256 261 }; 257 262 258 263 class QComboMenuDelegate : public QAbstractItemDelegate 259 { 264 { Q_OBJECT 260 265 public: 261 266 QComboMenuDelegate(QObject *parent, QComboBox *cmb) : QAbstractItemDelegate(parent), mCombo(cmb) {} … … 286 291 // be other side effects from using the new class 287 292 class QComboBoxDelegate : public QItemDelegate 288 { 293 { Q_OBJECT 289 294 public: 290 295 QComboBoxDelegate(QObject *parent, QComboBox *cmb) : QItemDelegate(parent), mCombo(cmb) {} 291 296 292 297 static bool isSeparator(const QModelIndex &index) { 293 return index.data(Qt::AccessibleDescriptionRole).toString() == Q String::fromLatin1("separator");298 return index.data(Qt::AccessibleDescriptionRole).toString() == QLatin1String("separator"); 294 299 } 295 300 static void setSeparator(QAbstractItemModel *model, const QModelIndex &index) { … … 338 343 QComboBoxPrivateContainer* viewContainer(); 339 344 void updateLineEditGeometry(); 345 Qt::MatchFlags matchFlags() const; 346 void _q_editingFinished(); 340 347 void _q_returnPressed(); 341 348 void _q_complete(); … … 352 359 void _q_resetButton(); 353 360 void _q_dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); 354 void _q_ rowsAboutToBeInserted(const QModelIndex & parent, int start, int end);361 void _q_updateIndexBeforeChange(); 355 362 void _q_rowsInserted(const QModelIndex & parent, int start, int end); 356 void _q_rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end);357 363 void _q_rowsRemoved(const QModelIndex & parent, int start, int end); 358 364 void updateArrow(QStyle::StateFlag state); … … 368 374 void updateLayoutDirection(); 369 375 void setCurrentIndex(const QModelIndex &index); 370 void updateDelegate( );376 void updateDelegate(bool force = false); 371 377 void keyboardSearchString(const QString &text); 372 378 void modelChanged(); 379 void updateViewContainerPaletteAndOpacity(); 373 380 374 381 QAbstractItemModel *model;
Note:
See TracChangeset
for help on using the changeset viewer.