@@ -1288,10 +1288,10 @@ void ConfigInfoView::contextMenuEvent(QContextMenuEvent *e)
1288
1288
Parent::contextMenuEvent (e);
1289
1289
}
1290
1290
1291
- ConfigSearchWindow::ConfigSearchWindow (ConfigMainWindow* parent, const char *name )
1291
+ ConfigSearchWindow::ConfigSearchWindow (ConfigMainWindow *parent )
1292
1292
: Parent(parent), result(NULL )
1293
1293
{
1294
- setObjectName (name );
1294
+ setObjectName (" search " );
1295
1295
setWindowTitle (" Search Config" );
1296
1296
1297
1297
QVBoxLayout* layout1 = new QVBoxLayout (this );
@@ -1312,35 +1312,33 @@ ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow* parent, const char *nam
1312
1312
1313
1313
split = new QSplitter (this );
1314
1314
split->setOrientation (Qt::Vertical);
1315
- list = new ConfigView (split, name );
1315
+ list = new ConfigView (split, " search " );
1316
1316
list->list ->mode = listMode;
1317
- info = new ConfigInfoView (split, name );
1317
+ info = new ConfigInfoView (split, " search " );
1318
1318
connect (list->list , SIGNAL (menuChanged (struct menu *)),
1319
1319
info, SLOT (setInfo (struct menu *)));
1320
1320
connect (list->list , SIGNAL (menuChanged (struct menu *)),
1321
1321
parent, SLOT (setMenuLink (struct menu *)));
1322
1322
1323
1323
layout1->addWidget (split);
1324
1324
1325
- if (name) {
1326
- QVariant x, y;
1327
- int width, height;
1328
- bool ok;
1325
+ QVariant x, y;
1326
+ int width, height;
1327
+ bool ok;
1329
1328
1330
- configSettings->beginGroup (name);
1331
- width = configSettings->value (" /window width" , parent->width () / 2 ).toInt ();
1332
- height = configSettings->value (" /window height" , parent->height () / 2 ).toInt ();
1333
- resize (width, height);
1334
- x = configSettings->value (" /window x" );
1335
- y = configSettings->value (" /window y" );
1336
- if ((x.isValid ())&&(y.isValid ()))
1337
- move (x.toInt (), y.toInt ());
1338
- QList<int > sizes = configSettings->readSizes (" /split" , &ok);
1339
- if (ok)
1340
- split->setSizes (sizes);
1341
- configSettings->endGroup ();
1342
- connect (configApp, SIGNAL (aboutToQuit ()), SLOT (saveSettings ()));
1343
- }
1329
+ configSettings->beginGroup (" search" );
1330
+ width = configSettings->value (" /window width" , parent->width () / 2 ).toInt ();
1331
+ height = configSettings->value (" /window height" , parent->height () / 2 ).toInt ();
1332
+ resize (width, height);
1333
+ x = configSettings->value (" /window x" );
1334
+ y = configSettings->value (" /window y" );
1335
+ if (x.isValid () && y.isValid ())
1336
+ move (x.toInt (), y.toInt ());
1337
+ QList<int > sizes = configSettings->readSizes (" /split" , &ok);
1338
+ if (ok)
1339
+ split->setSizes (sizes);
1340
+ configSettings->endGroup ();
1341
+ connect (configApp, SIGNAL (aboutToQuit ()), SLOT (saveSettings ()));
1344
1342
}
1345
1343
1346
1344
void ConfigSearchWindow::saveSettings (void )
@@ -1642,7 +1640,7 @@ void ConfigMainWindow::saveConfigAs(void)
1642
1640
void ConfigMainWindow::searchConfig (void )
1643
1641
{
1644
1642
if (!searchWindow)
1645
- searchWindow = new ConfigSearchWindow (this , " search " );
1643
+ searchWindow = new ConfigSearchWindow (this );
1646
1644
searchWindow->show ();
1647
1645
}
1648
1646
0 commit comments