Fixed mainwidget. Now it can be compiled.
authorJari Jarvi <t7jaja00@students.oamk.fi>
Mon, 24 May 2010 14:28:47 +0000 (17:28 +0300)
committerJari Jarvi <t7jaja00@students.oamk.fi>
Mon, 24 May 2010 14:28:47 +0000 (17:28 +0300)
src/mainwidget.cpp

index a5c9c07..e81581b 100644 (file)
@@ -4,6 +4,7 @@
 #include <QPainter>
 #include <QGridLayout>
 #include <QToolButton>
+#include <QSettings>
 
 #include "settingsdlg.h"
 
@@ -28,18 +29,18 @@ MainWidget::MainWidget (QWidget *parent)
         QToolButton *button = new QToolButton(this);
         button->setIcon(QIcon(QString(
             settings.value(QString("buttonIcon") + QString::number(i),
-                iconNames[i])))); 
+                iconNames[i]).toString()))); 
         buttons[i] = button;
         button->setPalette(QPalette(QColor(0, 0, 0, 192)));
         layout->addWidget(button, i%2, i/2);
     }
 
-    connect(buttons[0], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd0(bool)));
-    connect(buttons[1], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd1(bool)));
-    connect(buttons[2], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd2(bool)));
-    connect(buttons[3], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd3(bool)));
-    connect(buttons[4], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd4(bool)));
-    connect(buttons[5], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd5(bool)));
+    connect(buttons[0], SIGNAL(clicked()), &irCtrl, SLOT(sendCmd0()));
+    connect(buttons[1], SIGNAL(clicked()), &irCtrl, SLOT(sendCmd1()));
+    connect(buttons[2], SIGNAL(clicked()), &irCtrl, SLOT(sendCmd2()));
+    connect(buttons[3], SIGNAL(clicked()), &irCtrl, SLOT(sendCmd3()));
+    connect(buttons[4], SIGNAL(clicked()), &irCtrl, SLOT(sendCmd4()));
+    connect(buttons[5], SIGNAL(clicked()), &irCtrl, SLOT(sendCmd5()));
 
     this->setContentsMargins(0, 0, 0, 0);
     layout->setContentsMargins(0, 0, 0, 0);