author | mickeyl <mickeyl> | 2004-09-12 15:05:47 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-09-12 15:05:47 (UTC) |
commit | 1ecaa166126baf48c1ed280963b421d70e1afcda (patch) (side-by-side diff) | |
tree | 32cb18504edb47019b11bf1704a165f9171fdaab /library | |
parent | 146ce9b20f9c225b8bea13beb9338684c20384a2 (diff) | |
download | opie-1ecaa166126baf48c1ed280963b421d70e1afcda.zip opie-1ecaa166126baf48c1ed280963b421d70e1afcda.tar.gz opie-1ecaa166126baf48c1ed280963b421d70e1afcda.tar.bz2 |
show text label and remove bogus sleep
-rw-r--r-- | library/qpeapplication.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index ca90427..e1edd4c 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -1928,66 +1928,57 @@ void QPEApplication::internalSetStyle( const QString &style ) if ( lastlib ) { lastlib-> unload ( ); delete lastlib; } lastlib = lib; } else { if ( iface ) iface-> release ( ); delete lib; setStyle ( new LightStyle ( )); } } #endif } /*! \internal */ void QPEApplication::prepareForTermination( bool willrestart ) { if ( willrestart ) { - // Draw a big wait icon, the image can be altered in later revisions - // QWidget *d = QApplication::desktop(); - QImage img = Resource::loadImage( "launcher/new_wait" ); - QPixmap pix; - pix.convertFromImage( img.smoothScale( 1 * img.width(), 1 * img.height() ) ); - QLabel *lblWait = new QLabel( 0, "wait hack!", QWidget::WStyle_Customize | + QLabel *lblWait = new QLabel( tr( "Please wait..." ), 0, "wait hack", QWidget::WStyle_Customize | QWidget::WStyle_NoBorder | QWidget::WStyle_Tool ); - lblWait->setPixmap( pix ); lblWait->setAlignment( QWidget::AlignCenter ); lblWait->show(); lblWait->showMaximized(); } -#ifndef SINGLE_APP { QCopEnvelope envelope( "QPE/System", "forceQuit()" ); } processEvents(); // ensure the message goes out. - sleep( 1 ); // You have 1 second to comply. -#endif } /*! \internal */ void QPEApplication::shutdown() { // Implement in server's QPEApplication subclass } /*! \internal */ void QPEApplication::restart() { // Implement in server's QPEApplication subclass } static QPtrDict<void>* stylusDict = 0; static void createDict() { if ( !stylusDict ) stylusDict = new QPtrDict<void>; } |