aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qtmips_gui/peripheralsview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtmips_gui/peripheralsview.cpp b/qtmips_gui/peripheralsview.cpp
index 8ce82fc..6c1208d 100644
--- a/qtmips_gui/peripheralsview.cpp
+++ b/qtmips_gui/peripheralsview.cpp
@@ -7,6 +7,10 @@ PeripheralsView::PeripheralsView(QWidget *parent) :
{
ui->setupUi(this);
+ ui->dialRed->setStyleSheet("QDial { background-color: red }");
+ ui->dialGreen->setStyleSheet("QDial { background-color: green }");
+ ui->dialBlue->setStyleSheet("QDial { background-color: blue }");
+
connect(ui->dialRed, SIGNAL(valueChanged(int)), ui->spinRed, SLOT(setValue(int)));
connect(ui->dialGreen, SIGNAL(valueChanged(int)), ui->spinGreen, SLOT(setValue(int)));
connect(ui->dialBlue, SIGNAL(valueChanged(int)), ui->spinBlue, SLOT(setValue(int)));