-rw-r--r-- | library/qpedecoration_qws.cpp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/library/qpedecoration_qws.cpp b/library/qpedecoration_qws.cpp index 5e0c32a..933542d 100644 --- a/library/qpedecoration_qws.cpp +++ b/library/qpedecoration_qws.cpp | |||
@@ -191,8 +191,8 @@ bool QPEManager::eventFilter( QObject *o, QEvent *e ) | |||
191 | if ( ((HackWidget*)w)->needsOk() ) | 191 | if ( ((HackWidget*)w)->needsOk() ) |
192 | text = tr("Click to close this window, discarding changes."); | 192 | text = QObject::tr("Click to close this window, discarding changes."); |
193 | else | 193 | else |
194 | text = tr("Click to close this window."); | 194 | text = QObject::tr("Click to close this window."); |
195 | break; | 195 | break; |
196 | case QWSDecoration::Minimize: | 196 | case QWSDecoration::Minimize: |
197 | text = tr("Click to close this window and apply changes."); | 197 | text = QObject::tr("Click to close this window and apply changes."); |
198 | break; | 198 | break; |
@@ -200,5 +200,5 @@ bool QPEManager::eventFilter( QObject *o, QEvent *e ) | |||
200 | if ( w->isMaximized() ) | 200 | if ( w->isMaximized() ) |
201 | text = tr("Click to make this window moveable."); | 201 | text = QObject::tr("Click to make this window moveable."); |
202 | else | 202 | else |
203 | text = tr("Click to make this window use all available screen area."); | 203 | text = QObject::tr("Click to make this window use all available screen area."); |
204 | break; | 204 | break; |
@@ -512,4 +512,12 @@ void QPEDecoration::init ( const QString &plugin ) | |||
512 | WindowDecorationInterface *iface = 0; | 512 | WindowDecorationInterface *iface = 0; |
513 | QString path = QPEApplication::qpeDir() + "/plugins/decorations"; | 513 | QString path = QPEApplication::qpeDir() + "/plugins/decorations/"; |
514 | QLibrary *lib = new QLibrary( path + "/" + plugin ); | 514 | |
515 | if ( plugin.find( ".so" ) > 0 ) { | ||
516 | // full library name supplied | ||
517 | path += plugin; | ||
518 | } else { | ||
519 | path += "lib" + plugin.lower() + ".so"; // compatibility | ||
520 | } | ||
521 | |||
522 | QLibrary *lib = new QLibrary( path ); | ||
515 | if ( lib->queryInterface( IID_WindowDecoration, (QUnknownInterface**)&iface ) == QS_OK && iface ) { | 523 | if ( lib->queryInterface( IID_WindowDecoration, (QUnknownInterface**)&iface ) == QS_OK && iface ) { |
@@ -872,3 +880,3 @@ void QPEDecoration::help( QWidget *w ) | |||
872 | QWhatsThis::enterWhatsThisMode(); | 880 | QWhatsThis::enterWhatsThisMode(); |
873 | QWhatsThis::leaveWhatsThisMode( qApp->tr( | 881 | QWhatsThis::leaveWhatsThisMode( QObject::tr( |
874 | "<Qt>Comprehensive help is not available for this application, " | 882 | "<Qt>Comprehensive help is not available for this application, " |
@@ -885,3 +893,3 @@ void QPEDecoration::windowData( const QWidget *w, WindowDecorationInterface::Win | |||
885 | if ( qpeManager->whatsThisWidget() == w ) | 893 | if ( qpeManager->whatsThisWidget() == w ) |
886 | wd.caption = qApp->tr("What's this..." ); | 894 | wd.caption = QObject::tr("What's this..." ); |
887 | else | 895 | else |