Timestamp:
Feb 11, 2010, 11:19:06 PM (16 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/kernel/qapplication.h

    r138 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    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
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6161
    6262QT_BEGIN_HEADER
     63
     64
     65
     66
    6367
    6468QT_BEGIN_NAMESPACE
     
    7781class QDecoration;
    7882#endif
     83
     84
     85
    7986
    8087class QApplication;
     
    8491#endif
    8592#define qApp (static_cast<QApplication *>(QCoreApplication::instance()))
     93
    8694
    8795class Q_GUI_EXPORT QApplication : public QCoreApplication
     
    103111    Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
    104112#endif
    105 #ifdef Q_OS_WINCE
     113#ifdef Q_S_WINCE
    106114    Q_PROPERTY(int autoMaximizeThreshold READ autoMaximizeThreshold WRITE setAutoMaximizeThreshold)
     115
    107116    Q_PROPERTY(bool autoSipEnabled READ autoSipEnabled WRITE setAutoSipEnabled)
    108 #endif
    109117
    110118public:
    111119    enum Type { Tty, GuiClient, GuiServer };
     120
     121
     122
     123
     124
    112125#ifndef qdoc
    113126    QApplication(int &argc, char **argv, int = QT_VERSION);
     
    117130    QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = QT_VERSION);
    118131    QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = QT_VERSION);
     132
     133
     134
    119135#endif
    120136#endif
     
    224240    int x11ProcessEvent(XEvent*);
    225241#endif
     242
     243
     244
     245
    226246#if defined(Q_WS_QWS)
    227247    virtual bool qwsEventFilter(QWSEvent *);
     
    240260    static void winMouseButtonUp();
    241261#endif
    242 
    243262#if defined(Q_WS_PM)
    244263    void pmFocus(QWidget *, bool);
     
    267286
    268287#ifdef QT_KEYPAD_NAVIGATION
    269     static void setKeypadNavigationEnabled(bool);
     288    static void setKeypadNavigationEnabled(bool);
    270289    static bool keypadNavigationEnabled();
     290
     291
    271292#endif
    272293
     
    286307    void setStyleSheet(const QString& sheet);
    287308#endif
    288 #ifdef Q_OS_WINCE
     309#ifdef Q_S_WINCE
    289310    void setAutoMaximizeThreshold(const int threshold);
    290311    int autoMaximizeThreshold() const;
     312
    291313    void setAutoSipEnabled(const bool enabled);
    292314    bool autoSipEnabled() const;
    293 #endif
    294315    static void closeAllWindows();
    295316    static void aboutQt();
     
    322343#  endif
    323344    inline static QT3_SUPPORT bool hasGlobalMouseTracking() {return true;}
    324     inline static QT3_SUPPORT void setGlobalMouseTracking(bool) {};
     345    inline static QT3_SUPPORT void setGlobalMouseTracking(bool) {}
    325346    inline static QT3_SUPPORT void flushX() { flush(); }
    326347    static inline QT3_SUPPORT void setWinStyleHighlightColor(const QColor &c) {
     
    332353        { return palette().color(QPalette::Active, QPalette::Highlight); }
    333354    static inline QT3_SUPPORT void setPalette(const QPalette &pal, bool, const char* className = 0)
    334         { setPalette(pal, className); };
     355        { setPalette(pal, className); }
    335356    static inline QT3_SUPPORT void setFont(const QFont &font, bool, const char* className = 0)
    336357        { setFont(font, className); }
     
    349370    QApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0);
    350371    QApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0);
     372
     373
     374
    351375#endif
    352376#endif
     
    379403    friend class QDirectPainterPrivate;
    380404#endif
    381 
    382 #if defined(Q_WS_WIN)
    383     friend QApplicationPrivate* getQApplicationPrivateInternal();
    384 #endif
     405    friend class QGestureManager;
    385406
    386407#if defined(Q_WS_MAC) || defined(Q_WS_X11)
    387408    Q_PRIVATE_SLOT(d_func(), void _q_alertTimeOut())
    388409#endif
     410
     411
     412
    389413};
    390414
Note: See TracChangeset for help on using the changeset viewer.