summaryrefslogtreecommitdiff
path: root/x11/libqpe-x11/qpe/qpeapplication.cpp
Unidiff
Diffstat (limited to 'x11/libqpe-x11/qpe/qpeapplication.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/libqpe-x11/qpe/qpeapplication.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp
index 6e4a96c..8785c74 100644
--- a/x11/libqpe-x11/qpe/qpeapplication.cpp
+++ b/x11/libqpe-x11/qpe/qpeapplication.cpp
@@ -632,6 +632,32 @@ void QPEApplication::hideOrQuit() {
632 quit(); 632 quit();
633} 633}
634 634
635/*!
636 \internal
637*/
638void QPEApplication::prepareForTermination( bool willrestart )
639{
640 if ( willrestart ) {
641 // Draw a big wait icon, the image can be altered in later revisions
642 // QWidget *d = QApplication::desktop();
643 QImage img = Resource::loadImage( "launcher/new_wait" );
644 QPixmap pix;
645 pix.convertFromImage( img.smoothScale( 1 * img.width(), 1 * img.height() ) );
646 QLabel *lblWait = new QLabel( 0, "wait hack!", QWidget::WStyle_Customize |
647 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool );
648 lblWait->setPixmap( pix );
649 lblWait->setAlignment( QWidget::AlignCenter );
650 lblWait->show();
651 lblWait->showMaximized();
652 }
653#ifndef SINGLE_APP
654 { QCopEnvelope envelope( "QPE/System", "forceQuit()" );
655 }
656 processEvents(); // ensure the message goes out.
657 sleep( 1 ); // You have 1 second to comply.
658#endif
659}
660
635#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) 661#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX)
636 662
637// The libraries with the skiff package (and possibly others) have 663// The libraries with the skiff package (and possibly others) have