summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-09-12 15:05:47 (UTC)
committer mickeyl <mickeyl>2004-09-12 15:05:47 (UTC)
commit1ecaa166126baf48c1ed280963b421d70e1afcda (patch) (unidiff)
tree32cb18504edb47019b11bf1704a165f9171fdaab
parent146ce9b20f9c225b8bea13beb9338684c20384a2 (diff)
downloadopie-1ecaa166126baf48c1ed280963b421d70e1afcda.zip
opie-1ecaa166126baf48c1ed280963b421d70e1afcda.tar.gz
opie-1ecaa166126baf48c1ed280963b421d70e1afcda.tar.bz2
show text label and remove bogus sleep
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp11
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
@@ -1948,26 +1948,17 @@ void QPEApplication::internalSetStyle( const QString &style )
1948*/ 1948*/
1949void QPEApplication::prepareForTermination( bool willrestart ) 1949void QPEApplication::prepareForTermination( bool willrestart )
1950{ 1950{
1951 if ( willrestart ) { 1951 if ( willrestart ) {
1952 // Draw a big wait icon, the image can be altered in later revisions 1952 QLabel *lblWait = new QLabel( tr( "Please wait..." ), 0, "wait hack", QWidget::WStyle_Customize |
1953 // QWidget *d = QApplication::desktop();
1954 QImage img = Resource::loadImage( "launcher/new_wait" );
1955 QPixmap pix;
1956 pix.convertFromImage( img.smoothScale( 1 * img.width(), 1 * img.height() ) );
1957 QLabel *lblWait = new QLabel( 0, "wait hack!", QWidget::WStyle_Customize |
1958 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool ); 1953 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool );
1959 lblWait->setPixmap( pix );
1960 lblWait->setAlignment( QWidget::AlignCenter ); 1954 lblWait->setAlignment( QWidget::AlignCenter );
1961 lblWait->show(); 1955 lblWait->show();
1962 lblWait->showMaximized(); 1956 lblWait->showMaximized();
1963 } 1957 }
1964#ifndef SINGLE_APP
1965 { QCopEnvelope envelope( "QPE/System", "forceQuit()" ); 1958 { QCopEnvelope envelope( "QPE/System", "forceQuit()" );
1966 } 1959 }
1967 processEvents(); // ensure the message goes out. 1960 processEvents(); // ensure the message goes out.
1968 sleep( 1 ); // You have 1 second to comply.
1969#endif
1970} 1961}
1971 1962
1972/*! 1963/*!
1973 \internal 1964 \internal