#include "mainwidget.h"
-#include <QtGui/qinputdialog.h>
+#include <QInputDialog>
+#include <QPainter>
#include <QGridLayout>
#include <QPushButton>
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()
{
SettingsDlg dlg(this);