@@ -139,9 +139,6 @@ void ConfigItem::updateMenu(void)
139139
140140 if (!sym_is_changeable (sym) && list->optMode == normalOpt) {
141141 setIcon (promptColIdx, QIcon ());
142- setText (noColIdx, QString ());
143- setText (modColIdx, QString ());
144- setText (yesColIdx, QString ());
145142 break ;
146143 }
147144 expr = sym_get_tristate_value (sym);
@@ -151,29 +148,20 @@ void ConfigItem::updateMenu(void)
151148 setIcon (promptColIdx, choiceYesIcon);
152149 else
153150 setIcon (promptColIdx, symbolYesIcon);
154- setText (yesColIdx, " Y" );
155151 ch = ' Y' ;
156152 break ;
157153 case mod:
158154 setIcon (promptColIdx, symbolModIcon);
159- setText (modColIdx, " M" );
160155 ch = ' M' ;
161156 break ;
162157 default :
163158 if (sym_is_choice_value (sym) && type == S_BOOLEAN)
164159 setIcon (promptColIdx, choiceNoIcon);
165160 else
166161 setIcon (promptColIdx, symbolNoIcon);
167- setText (noColIdx, " N" );
168162 ch = ' N' ;
169163 break ;
170164 }
171- if (expr != no)
172- setText (noColIdx, sym_tristate_within_range (sym, no) ? " _" : 0 );
173- if (expr != mod)
174- setText (modColIdx, sym_tristate_within_range (sym, mod) ? " _" : 0 );
175- if (expr != yes)
176- setText (yesColIdx, sym_tristate_within_range (sym, yes) ? " _" : 0 );
177165
178166 setText (dataColIdx, QChar (ch));
179167 break ;
@@ -310,7 +298,7 @@ void ConfigItemDelegate::setModelData(QWidget *editor,
310298ConfigList::ConfigList (QWidget *parent, const char *name)
311299 : QTreeWidget(parent),
312300 updateAll(false ),
313- showName(false ), showRange( false ), mode(singleMode), optMode(normalOpt),
301+ showName(false ), mode(singleMode), optMode(normalOpt),
314302 rootEntry(0 ), headerPopup(0 )
315303{
316304 setObjectName (name);
@@ -320,15 +308,14 @@ ConfigList::ConfigList(QWidget *parent, const char *name)
320308 setVerticalScrollMode (ScrollPerPixel);
321309 setHorizontalScrollMode (ScrollPerPixel);
322310
323- setHeaderLabels (QStringList () << " Option" << " Name" << " N " << " M " << " Y " << " Value" );
311+ setHeaderLabels (QStringList () << " Option" << " Name" << " Value" );
324312
325313 connect (this , SIGNAL (itemSelectionChanged (void )),
326314 SLOT (updateSelection (void )));
327315
328316 if (name) {
329317 configSettings->beginGroup (name);
330318 showName = configSettings->value (" /showName" , false ).toBool ();
331- showRange = configSettings->value (" /showRange" , false ).toBool ();
332319 optMode = (enum optionMode)configSettings->value (" /optionMode" , 0 ).toInt ();
333320 configSettings->endGroup ();
334321 connect (configApp, SIGNAL (aboutToQuit ()), SLOT (saveSettings ()));
@@ -361,18 +348,10 @@ bool ConfigList::menuSkip(struct menu *menu)
361348
362349void ConfigList::reinit (void )
363350{
364- hideColumn (yesColIdx);
365- hideColumn (modColIdx);
366- hideColumn (noColIdx);
367351 hideColumn (nameColIdx);
368352
369353 if (showName)
370354 showColumn (nameColIdx);
371- if (showRange) {
372- showColumn (noColIdx);
373- showColumn (modColIdx);
374- showColumn (yesColIdx);
375- }
376355
377356 updateListAll ();
378357}
@@ -394,7 +373,6 @@ void ConfigList::saveSettings(void)
394373 if (!objectName ().isEmpty ()) {
395374 configSettings->beginGroup (objectName ());
396375 configSettings->setValue (" /showName" , showName);
397- configSettings->setValue (" /showRange" , showRange);
398376 configSettings->setValue (" /optionMode" , (int )optMode);
399377 configSettings->endGroup ();
400378 }
@@ -841,15 +819,6 @@ void ConfigList::mouseReleaseEvent(QMouseEvent* e)
841819 }
842820 }
843821 break ;
844- case noColIdx:
845- setValue (item, no);
846- break ;
847- case modColIdx:
848- setValue (item, mod);
849- break ;
850- case yesColIdx:
851- setValue (item, yes);
852- break ;
853822 case dataColIdx:
854823 changeValue (item);
855824 break ;
@@ -925,15 +894,6 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
925894 action, SLOT (setChecked (bool )));
926895 action->setChecked (showName);
927896 headerPopup->addAction (action);
928-
929- action = new QAction (" Show Range" , this );
930- action->setCheckable (true );
931- connect (action, SIGNAL (toggled (bool )),
932- SLOT (setShowRange (bool )));
933- connect (this , SIGNAL (showRangeChanged (bool )),
934- action, SLOT (setChecked (bool )));
935- action->setChecked (showRange);
936- headerPopup->addAction (action);
937897 }
938898
939899 headerPopup->exec (e->globalPos ());
@@ -950,16 +910,6 @@ void ConfigList::setShowName(bool on)
950910 emit showNameChanged (on);
951911}
952912
953- void ConfigList::setShowRange (bool on)
954- {
955- if (showRange == on)
956- return ;
957-
958- showRange = on;
959- reinit ();
960- emit showRangeChanged (on);
961- }
962-
963913QList<ConfigList *> ConfigList::allLists;
964914QAction *ConfigList::showNormalAction;
965915QAction *ConfigList::showAllAction;
@@ -1457,10 +1407,6 @@ ConfigMainWindow::ConfigMainWindow(void)
14571407 connect (showNameAction, SIGNAL (toggled (bool )), configList, SLOT (setShowName (bool )));
14581408 showNameAction->setChecked (configList->showName );
14591409
1460- QAction *showRangeAction = new QAction (" Show Range" , this );
1461- showRangeAction->setCheckable (true );
1462- connect (showRangeAction, SIGNAL (toggled (bool )), configList, SLOT (setShowRange (bool )));
1463-
14641410 QActionGroup *optGroup = new QActionGroup (this );
14651411 optGroup->setExclusive (true );
14661412 connect (optGroup, SIGNAL (triggered (QAction*)), configList,
@@ -1511,7 +1457,6 @@ ConfigMainWindow::ConfigMainWindow(void)
15111457 // create options menu
15121458 menu = menuBar ()->addMenu (" &Option" );
15131459 menu->addAction (showNameAction);
1514- menu->addAction (showRangeAction);
15151460 menu->addSeparator ();
15161461 menu->addActions (optGroup->actions ());
15171462 menu->addSeparator ();
0 commit comments