~ubuntu-branches/ubuntu/precise/kde-workspace/precise-security

« back to all changes in this revision

Viewing changes to kcontrol/keyboard/kcm_keyboard_widget.cpp

Tags: upstream-4.7.2
Import upstream version 4.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
//static const QString RESET_XKB_OPTIONS("-option");
51
51
 
52
52
static const int TAB_HARDWARE = 0;
53
 
//static const int TAB_LAYOUTS = 1;
 
53
static const int TAB_LAYOUTS = 1;
54
54
static const int TAB_ADVANCED = 2;
55
55
 
56
56
static const int MIN_LOOPING_COUNT = 2;
95
95
void KCMKeyboardWidget::handleParameters(const QVariantList &args)
96
96
{
97
97
    // TODO: improve parameter handling
 
98
        setCurrentIndex(TAB_HARDWARE);
98
99
    foreach(const QVariant& arg, args) {
99
100
          if( arg.type() == QVariant::String ) {
100
101
                  QString str = arg.toString();
101
102
                  if( str == "--tab=layouts" ) {
102
 
                          setCurrentIndex(1);
 
103
                          setCurrentIndex(TAB_LAYOUTS);
103
104
                  }
104
105
                  else if( str == "--tab=advanced" ) {
105
 
                          setCurrentIndex(2);
 
106
                          setCurrentIndex(TAB_ADVANCED);
106
107
                  }
107
108
          }
108
109
    }