author | harlekin <harlekin> | 2002-03-22 18:16:38 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-03-22 18:16:38 (UTC) |
commit | a6f3ce177ac43ec2cf91f96cfd11713126e29407 (patch) (side-by-side diff) | |
tree | 023664192c19117e524892fea4ec98b49dc55826 /library | |
parent | da1430c6bd5fee39a19b294017848b95198217af (diff) | |
download | opie-a6f3ce177ac43ec2cf91f96cfd11713126e29407.zip opie-a6f3ce177ac43ec2cf91f96cfd11713126e29407.tar.gz opie-a6f3ce177ac43ec2cf91f96cfd11713126e29407.tar.bz2 |
different splash
-rw-r--r-- | library/qpeapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index a55f5f9..c154689 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -1234,99 +1234,99 @@ bool QPEApplication::keepRunning() const } /*! \internal */ void QPEApplication::internalSetStyle( const QString &style ) { #if QT_VERSION >= 300 if ( style == "QPE" ) { setStyle( new QPEStyle ); } else { QStyle *s = QStyleFactory::create(style); if ( s ) setStyle(s); } #else if ( style == "Windows" ) { setStyle( new QWindowsStyle ); } else if ( style == "QPE" ) { setStyle( new QPEStyle ); } else if ( style == "Light" ) { setStyle( new LightStyle ); } #ifndef QT_NO_STYLE_PLATINUM else if ( style == "Platinum" ) { setStyle( new QPlatinumStyle ); } #endif #ifndef QT_NO_STYLE_MOTIF else if ( style == "Motif" ) { setStyle( new QMotifStyle ); } #endif #ifndef QT_NO_STYLE_MOTIFPLUS else if ( style == "MotifPlus" ) { setStyle( new QMotifPlusStyle ); } #endif #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( "wait" ); + QImage img = Resource::loadImage( "launcher/new_wait" ); QPixmap pix; - pix.convertFromImage(img.smoothScale(3*img.width(), 3*img.height())); + pix.convertFromImage(img.smoothScale(1*img.width(), 1*img.height())); QLabel *lblWait = new QLabel(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>; } /*! Returns the current StylusMode for \a w. \sa setStylusOperation() */ QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget* w ) { if ( stylusDict ) return (StylusMode)(int)stylusDict->find(w); return LeftOnly; } |