Changeset 561 for trunk/src/gui/kernel/qwidget.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/kernel/qwidget.h
r352 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 ** … … 45 45 #include <QtGui/qwindowdefs.h> 46 46 #include <QtCore/qobject.h> 47 #include <QtCore/qmargins.h> 47 48 #include <QtGui/qpaintdevice.h> 48 49 #include <QtGui/qpalette.h> … … 96 97 class QLocale; 97 98 class QGraphicsProxyWidget; 99 class QGraphicsEffect; 98 100 #if defined(Q_WS_X11) 99 101 class QX11Info; … … 130 132 int alloc_region_index; 131 133 // int alloc_region_revision; 132 #endif133 #if defined(Q_OS_WINCE)134 uint window_state_internal : 4;135 134 #endif 136 135 QRect wrect; … … 213 212 Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET unsetLocale) 214 213 Q_PROPERTY(QString windowFilePath READ windowFilePath WRITE setWindowFilePath DESIGNABLE isWindow) 214 Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints) 215 215 216 216 public: … … 289 289 void setMaximumHeight(int maxh); 290 290 291 #ifdef Q_QDOC 292 void setupUi(QWidget *widget); 293 #endif 294 291 295 QSize sizeIncrement() const; 292 296 void setSizeIncrement(const QSize &); … … 351 355 const QRegion &sourceRegion = QRegion(), 352 356 RenderFlags renderFlags = RenderFlags(DrawWindowBackground | DrawChildren)); 357 358 #ifndef QT_NO_GRAPHICSEFFECT 359 QGraphicsEffect *graphicsEffect() const; 360 void setGraphicsEffect(QGraphicsEffect *effect); 361 #endif //QT_NO_GRAPHICSEFFECT 362 363 void grabGesture(Qt::GestureType type, Qt::GestureFlags flags = Qt::GestureFlags()); 364 void ungrabGesture(Qt::GestureType type); 353 365 354 366 public Q_SLOTS: … … 470 482 virtual void setVisible(bool visible); 471 483 inline void setHidden(bool hidden) { setVisible(!hidden); } 472 #ifndef Q_ OS_WINCE484 #ifndef Q_WS_WINCE 473 485 inline void show() { setVisible(true); } 474 486 #else … … 522 534 523 535 void setContentsMargins(int left, int top, int right, int bottom); 536 void setContentsMargins(const QMargins &margins); 524 537 void getContentsMargins(int *left, int *top, int *right, int *bottom) const; 538 QMargins contentsMargins() const; 539 525 540 QRect contentsRect() const; 526 541 … … 540 555 QWidget *focusWidget() const; 541 556 QWidget *nextInFocusChain() const; 557 QWidget *previousInFocusChain() const; 542 558 543 559 // drag and drop … … 682 698 public: 683 699 virtual QVariant inputMethodQuery(Qt::InputMethodQuery) const; 700 701 Qt::InputMethodHints inputMethodHints() const; 702 void setInputMethodHints(Qt::InputMethodHints hints); 703 684 704 protected: 685 705 void resetInputContext(); … … 722 742 friend class QGLWidget; 723 743 friend class QGLWindowSurface; 724 friend class QVGWindowSurface;725 744 friend class QX11PaintEngine; 726 745 friend class QWin32PaintEngine; … … 728 747 friend class QShortcutMap; 729 748 friend class QWindowSurface; 730 friend class QD3DWindowSurface;731 749 friend class QGraphicsProxyWidget; 732 750 friend class QGraphicsProxyWidgetPrivate; 733 751 friend class QStyleSheetStyle; 752 friend struct QWidgetExceptionCleaner; 753 friend class QGestureManager; 754 friend class QWinNativePanGestureRecognizer; 755 friend class QWidgetEffectSourcePrivate; 734 756 735 757 #ifdef Q_WS_MAC … … 753 775 friend class QGLWidgetPrivate; 754 776 #endif 777 #ifdef Q_OS_SYMBIAN 778 friend class QSymbianControl; 779 friend class QS60WindowSurface; 780 #endif 755 781 #ifdef Q_WS_X11 756 782 friend void qt_net_update_user_time(QWidget *tlw, unsigned long timestamp); … … 764 790 Q_DISABLE_COPY(QWidget) 765 791 Q_PRIVATE_SLOT(d_func(), void _q_showIfNotHidden()) 792 #ifdef Q_OS_SYMBIAN 793 Q_PRIVATE_SLOT(d_func(), void _q_delayedDestroy(WId winId)) 794 #endif 766 795 767 796 QWidgetData *data; … … 816 845 inline QT3_SUPPORT void setPalette(const QPalette &p, bool) { setPalette(p); } 817 846 enum BackgroundOrigin { WidgetOrigin, ParentOrigin, WindowOrigin, AncestorOrigin }; 818 inline QT3_SUPPORT void setBackgroundOrigin(BackgroundOrigin) {};847 inline QT3_SUPPORT void setBackgroundOrigin(BackgroundOrigin) {} 819 848 inline QT3_SUPPORT BackgroundOrigin backgroundOrigin() const { return WindowOrigin; } 820 849 inline QT3_SUPPORT QPoint backgroundOffset() const { return QPoint(); }
Note:
See TracChangeset
for help on using the changeset viewer.