-rw-r--r-- | library/qpedecoration_qws.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/qpedecoration_qws.cpp b/library/qpedecoration_qws.cpp index 9cbe92b..6221f5b 100644 --- a/library/qpedecoration_qws.cpp +++ b/library/qpedecoration_qws.cpp | |||
@@ -495,24 +495,29 @@ QPEDecoration::QPEDecoration() | |||
495 | delete wdiface; | 495 | delete wdiface; |
496 | } | 496 | } |
497 | wdiface = new DefaultWindowDecoration; | 497 | wdiface = new DefaultWindowDecoration; |
498 | 498 | ||
499 | helpFile = QString(qApp->argv()[0]) + ".html"; | 499 | helpFile = QString(qApp->argv()[0]) + ".html"; |
500 | QStringList helpPath = Global::helpPath(); | 500 | QStringList helpPath = Global::helpPath(); |
501 | helpExists = FALSE; | 501 | helpExists = FALSE; |
502 | for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) { | 502 | for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) { |
503 | helpExists = QFile::exists( *it + "/" + helpFile ); | 503 | helpExists = QFile::exists( *it + "/" + helpFile ); |
504 | qDebug ( "Checking %s/%s for help: %d", (*it).latin1(), helpFile.latin1(),helpExists); | 504 | qDebug ( "Checking %s/%s for help: %d", (*it).latin1(), helpFile.latin1(),helpExists); |
505 | } | 505 | } |
506 | qpeManager = new QPEManager( this ); | 506 | qpeManager = new QPEManager( this ); |
507 | |||
508 | // for backward compatibility: | ||
509 | imageOk = *okImage ( 15 ); | ||
510 | imageClose = *closeImage ( 15 ); | ||
511 | imageHelp = *helpImage ( 15 ); | ||
507 | } | 512 | } |
508 | 513 | ||
509 | QPEDecoration::QPEDecoration( const QString &plugin ) | 514 | QPEDecoration::QPEDecoration( const QString &plugin ) |
510 | : QWSDefaultDecoration() | 515 | : QWSDefaultDecoration() |
511 | { | 516 | { |
512 | if ( wdlib ) { | 517 | if ( wdlib ) { |
513 | wdiface->release(); | 518 | wdiface->release(); |
514 | wdlib->unload(); | 519 | wdlib->unload(); |
515 | delete wdlib; | 520 | delete wdlib; |
516 | wdlib = 0; | 521 | wdlib = 0; |
517 | } else { | 522 | } else { |
518 | delete wdiface; | 523 | delete wdiface; |