connect(buttons[5], SIGNAL(clicked(bool)), &irCtrl, SLOT(sendCmd5(bool)));
this->setLayout(layout);
+ this->setAttribute(Qt::WA_TranslucentBackground);
}
+ void MainWidget::paintEvent(QPaintEvent *event)
+ {
+ QPainter p(this);
+ p.setBrush(QColor(0, 0, 0, 128));
+ p.setPen(Qt::NoPen);
+ p.drawRoundRect(rect(), 10, 20);
+ p.end();
+ }
+
void MainWidget::showSettingsDialog()
{
- bool isOk;
- QString newText = QInputDialog::getText(this, tr("New Text"),
- tr("Please enter a new text:"), QLineEdit::Normal,
- "foo", &isOk);
- // if (isOk)
- // setText(newText);
+ SettingsDlg dlg(this);
+ if (dlg.exec() == QDialog::Accepted)
+ {
+ irCtrl.setRemoteName(dlg.getRemoteName());
+ }
}