#include <QPainter>
#include <QGridLayout>
#include <QToolButton>
+#include <QSettings>
#include "settingsdlg.h"
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);