diff --git a/CMakeLists.txt b/CMakeLists.txt index df08e23..0ce7dfd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -867,6 +867,9 @@ set (QT_MKSPECS_DIR ${QT_DATA_DIR}/mkspecs) set (CMAKE_AUTOMOC ON) include_directories (${CMAKE_CURRENT_BINARY_DIR}) +# Tell CMake to run rcc when necessary +set (CMAKE_AUTORCC ON) + # don't use Qt "keywords" signal, slot, emit in generated files to # avoid compatability issue with other libraries # ADD_DEFINITIONS (-DQT_NO_KEYWORDS) diff --git a/artwork/down.png b/artwork/down.png index 233e185..98206eb 100644 Binary files a/artwork/down.png and b/artwork/down.png differ diff --git a/artwork/up.png b/artwork/up.png index cbe53e1..643b4d8 100644 Binary files a/artwork/up.png and b/artwork/up.png differ diff --git a/images.qrc b/images.qrc index f215a51..3edc439 100644 --- a/images.qrc +++ b/images.qrc @@ -1,6 +1,6 @@ - artwork/up.png - artwork/down.png + artwork/up.png + artwork/down.png diff --git a/mainwindow.cpp b/mainwindow.cpp index 7ae3980..5d9b59e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include "revision_utils.hpp" #include "qt_helpers.hpp" @@ -1581,6 +1582,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, gridButtonLayout->setColumnStretch(1, 1); gridButtonLayout->setColumnStretch(2, 1); + // dial up and down buttons sizes + ui->dialFreqUpButton->setFixedSize(30, 24); + ui->dialFreqDownButton->setFixedSize(30, 24); // Prepare spotting configuration... prepareSpotting(); @@ -3620,6 +3624,14 @@ void MainWindow::on_labDialFreq_clicked() //dialFrequency ui->bandComboBox->setFocus(); } +void MainWindow::on_dialFreqUpButton_clicked(){ + setRig(m_freqNominal + 250); +} + +void MainWindow::on_dialFreqDownButton_clicked(){ + setRig(m_freqNominal - 250); +} + void MainWindow::on_stopButton_clicked() //stopButton { monitor (false); diff --git a/mainwindow.h b/mainwindow.h index b534cc1..dc5b8dd 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -212,6 +212,8 @@ private slots: void resetPushButtonToggleText(QPushButton *btn); void on_monitorTxButton_clicked(); void on_stopTxButton_clicked(); + void on_dialFreqUpButton_clicked(); + void on_dialFreqDownButton_clicked(); void on_stopButton_clicked(); void on_actionAdd_Log_Entry_triggered(); void on_actionRelease_Notes_triggered (); diff --git a/mainwindow.ui b/mainwindow.ui index 551ccf3..5188054 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -238,6 +238,9 @@ + + 0 + 0 @@ -245,57 +248,72 @@ - 0 - 0 + 30 + 24 30 - 30 + 24 + + PointingHandCursor + false QPushButton { background-color:#000; - background-image:url("/images/up.png"); + background-image:url(":/images/artwork/up.png"); background-position: center center; - background-repeate:no-repeat; + background-repeat:no-repeat; + border:1px solid; + border-radius:2px; +} + +QPushButton:pressed { + background-color:#222; } - - - - - true - + + + 30 + 24 + + 30 - 30 + 24 + + PointingHandCursor + + + false + QPushButton { background-color:#000; - background-image:url("/images/down.png"); + background-image:url(":/images/artwork/down.png"); background-position: center center; - background-repeate:no-repeat; + background-repeat:no-repeat; + border:1px solid; + border-radius:2px; +} + +QPushButton:pressed { + background-color:#222; } - - - - - true -