Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qmainwindow.cpp

    r651 r769  
    6666QT_END_NAMESPACE
    6767#endif
    68 #ifdef QT_SOFTKEYS_ENABLED
    69 #include <private/qsoftkeymanager_p.h>
    70 #endif
    7168
    7269QT_BEGIN_NAMESPACE
     
    8077#ifdef Q_WS_MAC
    8178            , useHIToolBar(false)
    82 #endif
    83 #ifdef QT_SOFTKEYS_ENABLED
    84             , menuBarAction(0)
    8579#endif
    8680#if !defined(QT_NO_DOCKWIDGET) && !defined(QT_NO_CURSOR)
     
    9589    bool useHIToolBar;
    9690#endif
    97 #ifdef QT_SOFTKEYS_ENABLED
    98     QAction *menuBarAction;
    99 #endif
    10091    void init();
    10192    QList<int> hoverSeparator;
     
    118109    iconSize = QSize(metric, metric);
    119110    q->setAttribute(Qt::WA_Hover);
    120 #ifdef QT_SOFTKEYS_ENABLED
    121     menuBarAction = QSoftKeyManager::createAction(QSoftKeyManager::MenuSoftKey, q);
    122 #endif
    123111}
    124112
     
    492480    }
    493481    d->layout->setMenuBar(menuBar);
    494 
    495 #ifdef QT_SOFTKEYS_ENABLED
    496     if (menuBar)
    497         addAction(d->menuBarAction);
    498     else
    499         removeAction(d->menuBarAction);
    500 #endif
    501482}
    502483
Note: See TracChangeset for help on using the changeset viewer.