Fixes to speed alarm and poi alerts. Added flicker effect. Some new fields to text...
[jspeed] / src / themeschedulersettings.cpp
index f736626..d03a449 100644 (file)
@@ -58,9 +58,9 @@ QDialog(parent), currentWidget_(0), addDialog_(0), itemList_(0)
     loadItems();
 
     ButtonBox* buttons = new ButtonBox;
-    buttons->addButton(tr("Save"), this, SLOT(saveSettings()), QDialogButtonBox::AcceptRole);
-    buttons->addButton(tr("Add new theme"), this, SLOT(openAddDialog()), QDialogButtonBox::ActionRole);
-    buttons->addButton(tr("Clear scheduler"), this, SLOT(clearScheduler()), QDialogButtonBox::ActionRole);
+    connect(buttons->addButton(tr("Save"), QDialogButtonBox::AcceptRole), SIGNAL(clicked(bool)), this, SLOT(saveSettings()));
+    connect(buttons->addButton(tr("Add new theme"), QDialogButtonBox::ActionRole), SIGNAL(clicked(bool)), this, SLOT(openAddDialog()));
+    connect(buttons->addButton(tr("Clear scheduler"), QDialogButtonBox::ActionRole), SIGNAL(clicked(bool)), this, SLOT(clearScheduler()));
 
     layout->addLayout(layout_, Qt::AlignLeft);
     layout->addWidget(buttons);
@@ -84,7 +84,7 @@ void ThemeSchedulerSettings::openAddDialog()
         themePicker_ = new ThemePicker(tr("Theme"));
 
         ButtonBox* buttons = new ButtonBox;
-        buttons->addButton(tr("Add"), this, SLOT(addScheduledTheme()));
+        connect(buttons->addButton(tr("Add"), QDialogButtonBox::AcceptRole), SIGNAL(clicked(bool)), this, SLOT(addScheduledTheme()));
 
         left->addWidget(timeButton_);
         left->addWidget(themePicker_);