Changeset 6085

Show
Ignore:
Timestamp:
03/04/08 04:38:04 (9 months ago)
Author:
flynd
Message:

Kde4-gui doesn't allow setting style so hide the command line option.

Location:
trunk/qt4-gui/src/core
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/licqgui.cpp

    r6080 r6085  
    3333#include <QLocale> 
    3434#include <QSessionManager> 
    35 #include <QStyle> 
    36 #include <QStyleFactory> 
    3735#include <QTranslator> 
    3836 
     
    4139#include <KDE/KToolInvocation> 
    4240#include <KDE/KUrl> 
     41#else 
     42# include <QStyle> 
     43# include <QStyleFactory> 
    4344#endif 
    4445 
     
    150151  myInstance = this; 
    151152 
     153#ifndef USE_KDE 
    152154  char styleName[32] = ""; 
     155#endif 
    153156  int i = 1; 
    154157 
     
    162165 
    163166  // parse command line for arguments 
     167#ifdef USE_KDE 
     168  while ((i = getopt(argc, argv, "hs:i:e:dD")) > 0) 
     169#else 
    164170  while ((i = getopt(argc, argv, "hs:i:e:g:dD")) > 0) 
     171#endif 
    165172  { 
    166173    switch (i) 
     
    178185        break; 
    179186 
     187#ifndef USE_KDE 
    180188      case 'g':   // gui style 
    181189        strncpy(styleName, optarg, sizeof(styleName)); 
    182190        styleName[sizeof(styleName) - 1] = '\0'; 
    183191        break; 
     192#endif 
    184193 
    185194      case 'd':   // dock icon 
     
    635644#endif /* defined(Q_WS_X11) */ 
    636645 
     646#ifndef USE_KDE 
    637647QStyle* LicqGui::createStyle(const char* name) 
    638648{ 
     
    645655  return s; 
    646656} 
     657#endif 
    647658 
    648659void LicqGui::changeStatus(unsigned long status, bool invisible) 
  • trunk/qt4-gui/src/core/plugin.cpp

    r6048 r6085  
    6060{ 
    6161  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" 
    6367    " -h : this help screen\n" 
    6468    " -d : start hidden (dock icon only)\n" 
     
    6670    " -s : set the skin to use (must be in %2%3%4)\n" 
    6771    " -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    ) 
    7077    .arg(PLUGIN_NAME) 
    7178    .arg(BASE_DIR) 
     
    7481    .arg(ICONS_DIR) 
    7582    .arg(EXTICONS_DIR) 
    76     .arg(QStyleFactory::keys().join(" | ")); 
     83#ifndef USE_KDE 
     84    .arg(QStyleFactory::keys().join(" | ")) 
     85#endif 
     86    ; 
    7787 
    7888  return usage.toLatin1().constData();