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/examples/widgets/wiggly/dialog.cpp

    r651 r769  
    5757    setLayout(layout);
    5858
     59#ifdef QT_SOFTKEYS_ENABLED
     60    QAction *exitAction = new QAction(tr("Exit"), this);
     61    exitAction->setSoftKeyRole(QAction::NegativeSoftKey);
     62    connect (exitAction, SIGNAL(triggered()),this, SLOT(close()));
     63    addAction (exitAction);
     64
     65    Qt::WindowFlags flags = windowFlags();
     66    flags |= Qt::WindowSoftkeysVisibleHint;
     67    setWindowFlags(flags);
     68#endif
     69
    5970    connect(lineEdit, SIGNAL(textChanged(QString)),
    6071            wigglyWidget, SLOT(setText(QString)));
Note: See TracChangeset for help on using the changeset viewer.