ui listener
This commit is contained in:
parent
fc75a7c558
commit
b565dd7eff
|
@ -6,9 +6,48 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
ui(new Ui::MainWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setFixedSize(400,360);
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::setLablePowerCold(void){
|
||||
|
||||
ui->labelPowerCold->setText("Test");
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::on_BtnIncreaseBrightness_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::on_BtnDecreaseBrightness_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::on_BtnIncreaseTemperatur_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::on_BtnDecreaseTemperatur_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::on_BtnSetBrightness_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::on_BtnSetTemperatur_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -14,6 +14,22 @@ class MainWindow : public QMainWindow
|
|||
public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
void setLablePowerCold(void);
|
||||
|
||||
private slots:
|
||||
void on_pushButton_clicked();
|
||||
|
||||
void on_BtnIncreaseBrightness_clicked();
|
||||
|
||||
void on_BtnDecreaseBrightness_clicked();
|
||||
|
||||
void on_BtnIncreaseTemperatur_clicked();
|
||||
|
||||
void on_BtnDecreaseTemperatur_clicked();
|
||||
|
||||
void on_BtnSetBrightness_clicked();
|
||||
|
||||
void on_BtnSetTemperatur_clicked();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
<string>Temperature</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="spinBox">
|
||||
<widget class="QSpinBox" name="spinBoxBrightness">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
|
@ -70,7 +70,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="spinBox_2">
|
||||
<widget class="QSpinBox" name="spinBoxTemperatur">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
|
@ -80,7 +80,7 @@
|
|||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<widget class="QPushButton" name="BtnIncreaseBrightness">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
|
@ -93,7 +93,7 @@
|
|||
<string>Increase</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton_2">
|
||||
<widget class="QPushButton" name="BtnDecreaseBrightness">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>100</x>
|
||||
|
@ -106,7 +106,7 @@
|
|||
<string>Decrease</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton_3">
|
||||
<widget class="QPushButton" name="BtnIncreaseTemperatur">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
|
@ -119,7 +119,7 @@
|
|||
<string>Increase</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton_4">
|
||||
<widget class="QPushButton" name="BtnDecreaseTemperatur">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>310</x>
|
||||
|
@ -132,7 +132,7 @@
|
|||
<string>Decrease</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton_5">
|
||||
<widget class="QPushButton" name="BtnSetBrightness">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>110</x>
|
||||
|
@ -145,7 +145,7 @@
|
|||
<string>Set</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="pushButton_6">
|
||||
<widget class="QPushButton" name="BtnSetTemperatur">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>320</x>
|
||||
|
@ -210,6 +210,32 @@
|
|||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="labelPowerCold">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>220</y>
|
||||
<width>131</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Output Power Cold:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="labelPowerWarm">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>250</y>
|
||||
<width>131</width>
|
||||
<height>18</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Output Power Warm:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="enabled">
|
||||
|
|
Loading…
Reference in New Issue