author | zautrix <zautrix> | 2004-07-04 14:48:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-04 14:48:38 (UTC) |
commit | 646f439eea8e96d6abec0bcd10f4c46abe243f86 (patch) (side-by-side diff) | |
tree | d52dde119bb1a1b819ec3fe6f2c7cd0144088263 /kaddressbook/mainembedded.cpp | |
parent | 2978e6b5327f619dc8e295685f46640158e1fab0 (diff) | |
download | kdepimpi-646f439eea8e96d6abec0bcd10f4c46abe243f86.zip kdepimpi-646f439eea8e96d6abec0bcd10f4c46abe243f86.tar.gz kdepimpi-646f439eea8e96d6abec0bcd10f4c46abe243f86.tar.bz2 |
Added 22x22 icons for 7x0
-rw-r--r-- | kaddressbook/mainembedded.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index b7d6b2b..c127601 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -10,64 +10,67 @@ #include <kstandarddirs.h> #include <kglobal.h> #include <stdio.h> #include <qdir.h> #include "kaddressbookmain.h" int main( int argc, char **argv ) { #ifndef DESKTOP_VERSION QPEApplication a( argc, argv ); a.setKeepRunning (); #else QApplication a( argc, argv ); QApplication::setStyle( new QPlatinumStyle ()); #endif bool exitHelp = false; if ( argc > 1 ) { QString command = argv[1]; if ( command == "-help" ){ printf("KA/E command line commands:\n"); printf(" no command: Start KA/E in usual way\n"); printf(" -help: This output\n"); printf(" KA/E is exiting now. Bye!\n"); exitHelp = true; } } if ( ! exitHelp ) { KGlobal::setAppName( "kaddressbook" ); #ifndef DESKTOP_VERSION + if ( QApplication::desktop()->width() > 320 ) + KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); + else KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); #else QString fileName ; fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/"; KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); #endif KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); KAddressBookMain* m = new KAddressBookMain(); //US MainWindow m; //US QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& ))); #ifndef DESKTOP_VERSION a.showMainWidget(m ); m->showMaximized(); #else a.setMainWidget(m ); m->show(); //m->resize( 640, 480 ); #endif a.exec(); } qDebug("KA: Bye! "); } /* #include <stdlib.h> #include <qstring.h> #include <kabc/stdaddressbook.h> |