Changeset 561 for trunk/src/gui/kernel/qapplication.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/qapplication.h
r138 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 ** … … 61 61 62 62 QT_BEGIN_HEADER 63 64 #if defined(Q_WS_S60) 65 class CApaApplication; 66 #endif 63 67 64 68 QT_BEGIN_NAMESPACE … … 77 81 class QDecoration; 78 82 #endif 83 #if defined(Q_OS_SYMBIAN) 84 class QSymbianEvent; 85 #endif 79 86 80 87 class QApplication; … … 84 91 #endif 85 92 #define qApp (static_cast<QApplication *>(QCoreApplication::instance())) 93 86 94 87 95 class Q_GUI_EXPORT QApplication : public QCoreApplication … … 103 111 Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet) 104 112 #endif 105 #ifdef Q_ OS_WINCE113 #ifdef Q_WS_WINCE 106 114 Q_PROPERTY(int autoMaximizeThreshold READ autoMaximizeThreshold WRITE setAutoMaximizeThreshold) 115 #endif 107 116 Q_PROPERTY(bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled) 108 #endif109 117 110 118 public: 111 119 enum Type { Tty, GuiClient, GuiServer }; 120 121 #ifdef Q_WS_S60 122 typedef CApaApplication * (*QS60MainApplicationFactory)(); 123 #endif 124 112 125 #ifndef qdoc 113 126 QApplication(int &argc, char **argv, int = QT_VERSION); … … 117 130 QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = QT_VERSION); 118 131 QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = QT_VERSION); 132 #endif 133 #if defined(Q_WS_S60) 134 QApplication(QApplication::QS60MainApplicationFactory factory, int &argc, char **argv, int = QT_VERSION); 119 135 #endif 120 136 #endif … … 224 240 int x11ProcessEvent(XEvent*); 225 241 #endif 242 #if defined(Q_OS_SYMBIAN) 243 int symbianProcessEvent(const QSymbianEvent *event); 244 virtual bool symbianEventFilter(const QSymbianEvent *event); 245 #endif 226 246 #if defined(Q_WS_QWS) 227 247 virtual bool qwsEventFilter(QWSEvent *); … … 240 260 static void winMouseButtonUp(); 241 261 #endif 242 243 262 #if defined(Q_WS_PM) 244 263 void pmFocus(QWidget *, bool); … … 267 286 268 287 #ifdef QT_KEYPAD_NAVIGATION 269 static void setKeypadNavigationEnabled(bool);288 static Q_DECL_DEPRECATED void setKeypadNavigationEnabled(bool); 270 289 static bool keypadNavigationEnabled(); 290 static void setNavigationMode(Qt::NavigationMode mode); 291 static Qt::NavigationMode navigationMode(); 271 292 #endif 272 293 … … 286 307 void setStyleSheet(const QString& sheet); 287 308 #endif 288 #ifdef Q_ OS_WINCE309 #ifdef Q_WS_WINCE 289 310 void setAutoMaximizeThreshold(const int threshold); 290 311 int autoMaximizeThreshold() const; 312 #endif 291 313 void setAutoSipEnabled(const bool enabled); 292 314 bool autoSipEnabled() const; 293 #endif294 315 static void closeAllWindows(); 295 316 static void aboutQt(); … … 322 343 # endif 323 344 inline static QT3_SUPPORT bool hasGlobalMouseTracking() {return true;} 324 inline static QT3_SUPPORT void setGlobalMouseTracking(bool) {} ;345 inline static QT3_SUPPORT void setGlobalMouseTracking(bool) {} 325 346 inline static QT3_SUPPORT void flushX() { flush(); } 326 347 static inline QT3_SUPPORT void setWinStyleHighlightColor(const QColor &c) { … … 332 353 { return palette().color(QPalette::Active, QPalette::Highlight); } 333 354 static inline QT3_SUPPORT void setPalette(const QPalette &pal, bool, const char* className = 0) 334 { setPalette(pal, className); } ;355 { setPalette(pal, className); } 335 356 static inline QT3_SUPPORT void setFont(const QFont &font, bool, const char* className = 0) 336 357 { setFont(font, className); } … … 349 370 QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0); 350 371 QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0); 372 #endif 373 #if defined(Q_WS_S60) || defined(qdoc) 374 QApplication(QApplication::QS60MainApplicationFactory factory, int &argc, char **argv); 351 375 #endif 352 376 #endif … … 379 403 friend class QDirectPainterPrivate; 380 404 #endif 381 382 #if defined(Q_WS_WIN) 383 friend QApplicationPrivate* getQApplicationPrivateInternal(); 384 #endif 405 friend class QGestureManager; 385 406 386 407 #if defined(Q_WS_MAC) || defined(Q_WS_X11) 387 408 Q_PRIVATE_SLOT(d_func(), void _q_alertTimeOut()) 388 409 #endif 410 #if defined(QT_RX71_MULTITOUCH) 411 Q_PRIVATE_SLOT(d_func(), void _q_readRX71MultiTouchEvents()) 412 #endif 389 413 }; 390 414
Note:
See TracChangeset
for help on using the changeset viewer.