Ticket #44526: patch-cmdline.diff

File patch-cmdline.diff, 1.9 KB (added by RJVB (René Bertin), 10 years ago)
  • src/cmdline.cpp

    diff -r b193168bad98 src/cmdline.cpp
     
    289289     "Sets the X display (default is $DISPLAY)."
    290290   },
    291291   { "style", 0, true, 's',
    292      "Sets the application GUI style. Possible values are motif, windows, "
    293      "and platinum. "
    294    },
     292     "Sets the application GUI style. Possible values are fusion, windows, "
     293     "or QtCurve when that style has been installed. "
     294   },
     295   { "platform", 0, true, 'x',
     296      "Sets the platform plugin to be used. For instance, on OS X one can use "
     297      "cocoa or xcb as platform plugins."
     298   },
    295299   { "geometry", 0, true, 'g',
    296300     "Sets the client geometry of the main widget."
    297301   },
     
    339343//------------------------------------------------------------------------------
    340344//
    341345XxCmdline::XxCmdline() :
     346   _forcePlatform( false ),
    342347   _forceStyle( false ),
    343348   _forceGeometry( false ),
    344349   _forceFont( false ),
     
    642647         } break;
    643648
    644649         case 'd':
    645          case 's':
     650         case 's':  // --style
     651         case 'x':  // --platform
    646652         case 'G':
    647653         case 'g':
    648654         case 'F':
     
    771777      if ( strncmp( _qtOptions[ ii ], "-style", 6 ) == 0 ) {
    772778         _forceStyle = true;
    773779      }
     780      else if ( strncmp( _qtOptions[ ii ], "-platform", 9 ) == 0 ) {
     781         _forcePlatform = true;
     782      }
    774783      else if ( strncmp( _qtOptions[ ii ], "-geometry", 9 ) == 0 ) {
    775784         _forceGeometry = true;
    776785      }
  • src/cmdline.h

    diff -r b193168bad98 src/cmdline.h
     
    117117   /*----- data members -----*/
    118118
    119119   // Cmdline-related variables.
     120   bool          _forcePlatform;
    120121   bool          _forceStyle;
    121122   bool          _forceGeometry;
    122123   bool          _forceFont;