author | sandman <sandman> | 2002-11-22 21:57:47 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-11-22 21:57:47 (UTC) |
commit | a71b9d79a05ab2b6bc891afe4df4d5fdcf641550 (patch) (side-by-side diff) | |
tree | 12852a47649207eb46b6bd6f7d41ab2fc2156259 | |
parent | 0f9ce3f60b6fbd350f79485ee8fc5fe37be692e1 (diff) | |
download | opie-a71b9d79a05ab2b6bc891afe4df4d5fdcf641550.zip opie-a71b9d79a05ab2b6bc891afe4df4d5fdcf641550.tar.gz opie-a71b9d79a05ab2b6bc891afe4df4d5fdcf641550.tar.bz2 |
Added some code for backward compatibility .. this enabled tkc apps with
custom window decoration to work on Opie (the X and OK button have a 1
pixel offset though, but I can't do anything about it)
-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 @@ -491,32 +491,37 @@ QPEDecoration::QPEDecoration() wdlib->unload(); delete wdlib; wdlib = 0; } else { delete wdiface; } wdiface = new DefaultWindowDecoration; helpFile = QString(qApp->argv()[0]) + ".html"; QStringList helpPath = Global::helpPath(); helpExists = FALSE; for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) { helpExists = QFile::exists( *it + "/" + helpFile ); qDebug ( "Checking %s/%s for help: %d", (*it).latin1(), helpFile.latin1(),helpExists); } qpeManager = new QPEManager( this ); + + // for backward compatibility: + imageOk = *okImage ( 15 ); + imageClose = *closeImage ( 15 ); + imageHelp = *helpImage ( 15 ); } QPEDecoration::QPEDecoration( const QString &plugin ) : QWSDefaultDecoration() { if ( wdlib ) { wdiface->release(); wdlib->unload(); delete wdlib; wdlib = 0; } else { delete wdiface; } WindowDecorationInterface *iface = 0; QString path = QPEApplication::qpeDir() + "/plugins/decorations"; QLibrary *lib = new QLibrary( path + "/" + plugin ); |