-rw-r--r-- | library/qpeapplication.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index a97efc0..6f2e43b 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp | |||
@@ -432,14 +432,14 @@ static void setTreble( int t = 0, int percent = -1 ) | |||
432 | } | 432 | } |
433 | break; | 433 | break; |
434 | } | 434 | } |
435 | } | 435 | } |
436 | 436 | ||
437 | 437 | ||
438 | /*! | 438 | /** |
439 | \class QPEApplication qpeapplication.h | 439 | \class QPEApplication |
440 | \brief The QPEApplication class implements various system services | 440 | \brief The QPEApplication class implements various system services |
441 | that are available to all Qtopia applications. | 441 | that are available to all Qtopia applications. |
442 | 442 | ||
443 | Simply by using QPEApplication instead of QApplication, a standard Qt | 443 | Simply by using QPEApplication instead of QApplication, a standard Qt |
444 | application becomes a Qtopia application. It automatically follows | 444 | application becomes a Qtopia application. It automatically follows |
445 | style changes, quits and raises, and in the | 445 | style changes, quits and raises, and in the |
@@ -1568,12 +1568,13 @@ void QPEApplication::pidMessage( const QCString& msg, const QByteArray& data) | |||
1568 | consider passing TRUE for \a nomaximize rather than the default FALSE. | 1568 | consider passing TRUE for \a nomaximize rather than the default FALSE. |
1569 | 1569 | ||
1570 | \sa showMainDocumentWidget() | 1570 | \sa showMainDocumentWidget() |
1571 | */ | 1571 | */ |
1572 | void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize ) | 1572 | void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize ) |
1573 | { | 1573 | { |
1574 | setMainWidget(mw); | ||
1574 | d->show(mw, nomaximize ); | 1575 | d->show(mw, nomaximize ); |
1575 | } | 1576 | } |
1576 | 1577 | ||
1577 | /*! | 1578 | /*! |
1578 | Sets widget \a mw as the mainWidget() and shows it. For small windows, | 1579 | Sets widget \a mw as the mainWidget() and shows it. For small windows, |
1579 | consider passing TRUE for \a nomaximize rather than the default FALSE. | 1580 | consider passing TRUE for \a nomaximize rather than the default FALSE. |
@@ -1588,12 +1589,13 @@ void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize ) | |||
1588 | void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize ) | 1589 | void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize ) |
1589 | { | 1590 | { |
1590 | if ( mw && argc() == 2 ) | 1591 | if ( mw && argc() == 2 ) |
1591 | Global::setDocument( mw, QString::fromUtf8(argv()[1]) ); | 1592 | Global::setDocument( mw, QString::fromUtf8(argv()[1]) ); |
1592 | 1593 | ||
1593 | 1594 | ||
1595 | setMainWidget(mw); | ||
1594 | d->show(mw, nomaximize ); | 1596 | d->show(mw, nomaximize ); |
1595 | } | 1597 | } |
1596 | 1598 | ||
1597 | 1599 | ||
1598 | /*! | 1600 | /*! |
1599 | If an application is started via a \link qcop.html QCop\endlink | 1601 | If an application is started via a \link qcop.html QCop\endlink |