diff --git a/mainwindow.cpp b/mainwindow.cpp index e4efb88..24ce509 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -14,6 +14,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi ui->setupUi(this); setFixedSize(size()); +#if defined(Q_OS_WIN) + setWindowFlags(windowFlags() | Qt::MSWindowsFixedSizeDialogHint); +#endif ui->txt_address->setText(DEFAULT_ADDRESS); mAddress = ui->txt_address->text(); diff --git a/mainwindow.ui b/mainwindow.ui index e3cd274..f631219 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -6,10 +6,16 @@ 0 0 - 359 - 170 + 373 + 166 + + + 0 + 0 + + Qt::NoContextMenu @@ -19,131 +25,52 @@ false + + true + + + + 0 + 0 + + - - - - Input + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 0 + 0 + - - Qt::AlignBottom|Qt::AlignHCenter + + false + + + + + + On false - - - - 10 - 30 - 80 - 21 - - - - - - - HDMI 1 - - - false - - - HDMI1 - - - - - - 10 - 60 - 80 - 21 - - - - HDMI 2 - - - HDMI2 - - - - - - 10 - 90 - 80 - 21 - - - - HDMI 3 - - - HDMI3 - - - - - - 110 - 30 - 80 - 21 - - - - Spotify - - - Spotify - - - - - - 110 - 60 - 80 - 21 - - - - Airplay - - - IPOD - - - - - - 110 - 90 - 80 - 21 - - - - Audio In - - - AUDIO - - - - - - Address: - - - - + -805 @@ -174,33 +101,7 @@ - - - - false - - - - - - On - - - false - - - - - - - 10.0.0.227 - - - Qt::AlignCenter - - - - + @@ -222,21 +123,166 @@ - - - - Qt::Horizontal + + + + - - QSizePolicy::MinimumExpanding + + Qt::AlignCenter - - - 40 - 20 - + + false - + + + 5 + + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 0 + 0 + + + + + + + HDMI 1 + + + false + + + HDMI1 + + + + + + + + 0 + 0 + + + + Spotify + + + Spotify + + + + + + + + 0 + 0 + + + + HDMI 2 + + + HDMI2 + + + + + + + + 0 + 0 + + + + Airplay + + + IPOD + + + + + + + + 0 + 0 + + + + HDMI 3 + + + HDMI3 + + + + + + + + 0 + 0 + + + + Audio In + + + AUDIO + + + + + + + + + + Address: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + 10.0.0.227 + + + Qt::AlignCenter + + + AV IP + + diff --git a/style.css b/style.css index 4863f2e..035e66b 100644 --- a/style.css +++ b/style.css @@ -23,6 +23,10 @@ QLineEdit { border: 1px solid #0077fd; } +QLineEdit:hover { + border: 1px solid #edf2f4; +} + QLabel { color: #edf2f4; } @@ -39,9 +43,6 @@ QGroupBox::title { padding: 0px 5px 0px 5px; } -QDial:hover { - border: 1px solid #0077fd; -} QLabel#lbl_volume:hover { border: 1px solid #0077fd; }