Changeset 6085
- Timestamp:
- 03/04/08 04:38:04 (9 months ago)
- Location:
- trunk/qt4-gui/src/core
- Files:
-
- 2 modified
-
licqgui.cpp (modified) (7 diffs)
-
plugin.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/core/licqgui.cpp
r6080 r6085 33 33 #include <QLocale> 34 34 #include <QSessionManager> 35 #include <QStyle>36 #include <QStyleFactory>37 35 #include <QTranslator> 38 36 … … 41 39 #include <KDE/KToolInvocation> 42 40 #include <KDE/KUrl> 41 #else 42 # include <QStyle> 43 # include <QStyleFactory> 43 44 #endif 44 45 … … 150 151 myInstance = this; 151 152 153 #ifndef USE_KDE 152 154 char styleName[32] = ""; 155 #endif 153 156 int i = 1; 154 157 … … 162 165 163 166 // parse command line for arguments 167 #ifdef USE_KDE 168 while ((i = getopt(argc, argv, "hs:i:e:dD")) > 0) 169 #else 164 170 while ((i = getopt(argc, argv, "hs:i:e:g:dD")) > 0) 171 #endif 165 172 { 166 173 switch (i) … … 178 185 break; 179 186 187 #ifndef USE_KDE 180 188 case 'g': // gui style 181 189 strncpy(styleName, optarg, sizeof(styleName)); 182 190 styleName[sizeof(styleName) - 1] = '\0'; 183 191 break; 192 #endif 184 193 185 194 case 'd': // dock icon … … 635 644 #endif /* defined(Q_WS_X11) */ 636 645 646 #ifndef USE_KDE 637 647 QStyle* LicqGui::createStyle(const char* name) 638 648 { … … 645 655 return s; 646 656 } 657 #endif 647 658 648 659 void LicqGui::changeStatus(unsigned long status, bool invisible) -
trunk/qt4-gui/src/core/plugin.cpp
r6048 r6085 60 60 { 61 61 static QString usage = QString( 62 "Usage: Licq [options] -p %1 -- [-hdD] [-s skinname] [-i iconpack] [-e extendediconpack] [-g guistyle]\n" 62 "Usage: Licq [options] -p %1 -- [-hdD] [-s skinname] [-i iconpack] [-e extendediconpack]" 63 #ifndef USE_KDE 64 " [-g guistyle]" 65 #endif 66 "\n" 63 67 " -h : this help screen\n" 64 68 " -d : start hidden (dock icon only)\n" … … 66 70 " -s : set the skin to use (must be in %2%3%4)\n" 67 71 " -i : set the icons to use (must be in %2%3%5)\n" 68 " -e : set the extended icons to use (must be in %2%3%6)\n" 69 " -g : set the gui style (%7, or 'default' to follow global Qt settings), ignored by KDE support") 72 " -e : set the extended icons to use (must be in %2%3%6)" 73 #ifndef USE_KDE 74 "\n -g : set the gui style (%7, or 'default' to follow global Qt settings), ignored by KDE support" 75 #endif 76 ) 70 77 .arg(PLUGIN_NAME) 71 78 .arg(BASE_DIR) … … 74 81 .arg(ICONS_DIR) 75 82 .arg(EXTICONS_DIR) 76 .arg(QStyleFactory::keys().join(" | ")); 83 #ifndef USE_KDE 84 .arg(QStyleFactory::keys().join(" | ")) 85 #endif 86 ; 77 87 78 88 return usage.toLatin1().constData();
