miscGroupBox = new QGroupBox(tr("Miscellaneous"));
QGridLayout *layout = new QGridLayout();
- showMapPushButton = new QPushButton(tr("Show &map"));
+ showMapPushButton = new QCheckBox(tr("Show &map"));
showMapPushButton->setShortcut(tr("m"));
- layout->addWidget(showMapPushButton, 0, 0, 1, 2);
+ layout->addWidget(showMapPushButton, 0, 0);
+ obstacleSimulationCheckBox = new QCheckBox(tr("&Obstacle simulation"));
+ obstacleSimulationCheckBox->setShortcut(tr("o"));
+ layout->addWidget(obstacleSimulationCheckBox);
+
miscGroupBox->setLayout(layout);
}
sharpSensorsLayout = new QVBoxLayout();
QGridLayout *layout3 = new QGridLayout();
- obstacleSimulationCheckBox = new QCheckBox(tr("&Obstacle simulation"));
-
- obstacleSimulationCheckBox->setShortcut(tr("o"));
-
- layout3->addWidget(obstacleSimulationCheckBox, 0, 1);
-
sharpSensorsLayout->addLayout(layout3);
}
connect(mapTimer, SIGNAL(timeout()), this, SLOT(paintMap()));
mapTimer->start(200);
- showMapPushButton->setText(tr("Show Playground"));
- showMapPushButton->setShortcut(tr("p"));
disconnect(showMapPushButton, SIGNAL(clicked()), this, SLOT(showMap()));
connect(showMapPushButton, SIGNAL(clicked()),
this, SLOT(showPlayground()));
mapTimer->stop();
disconnect(mapTimer, SIGNAL(timeout()), this, SLOT(paintMap()));
- /* FIXME: */
-
- showMapPushButton->setText(tr("Show &map"));
- showMapPushButton->setShortcut(tr("m"));
disconnect(showMapPushButton, SIGNAL(clicked()),
this, SLOT(showPlayground()));
connect(showMapPushButton, SIGNAL(clicked()), this, SLOT(showMap()));