From 8004c51ed2535cb3f336dbad561e2a76a494d622 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 27 Nov 2018 23:16:02 -0500 Subject: [PATCH] Hide configuration for heartbeat. --- Configuration.ui | 132 ++++++++++++++++++++++++++++++----------------- mainwindow.cpp | 14 ++--- 2 files changed, 92 insertions(+), 54 deletions(-) diff --git a/Configuration.ui b/Configuration.ui index c68e5cc..703becf 100644 --- a/Configuration.ui +++ b/Configuration.ui @@ -278,9 +278,9 @@ 0 - -26 + 0 724 - 479 + 410 @@ -632,7 +632,61 @@ text message. - + + + Idle Watchdog + + + + + + + + Disable automatic transmissions: + + + tx_watchdog_spin_box + + + + + + + <html><head/><body><p>Number of minutes before unattended heartbeat transmissions are aborted.</p></body></html> + + + Disabled + + + minutes of inactivity + + + after + + + 0 + + + 1440 + + + 1 + + + 60 + + + + + + + + + + + + false + Heartbeat (HB) @@ -683,48 +737,6 @@ text message. - - - - - - Heartbeat idle watchdog timer: - - - tx_watchdog_spin_box - - - - - - - <html><head/><body><p>Number of minutes before unattended heartbeat transmissions are aborted.</p></body></html> - - - Disabled - - - minutes - - - after - - - 0 - - - 1440 - - - 1 - - - 60 - - - - - @@ -745,6 +757,19 @@ text message. + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -1986,9 +2011,9 @@ both here. 0 - 0 + -23 746 - 548 + 525 @@ -2385,6 +2410,19 @@ for assessing propagation and system performance. + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/mainwindow.cpp b/mainwindow.cpp index 87cc08a..9b97089 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6534,13 +6534,13 @@ void MainWindow::on_clearAction_triggered(QObject * sender){ void MainWindow::buildRepeatMenu(QMenu *menu, QPushButton * button, int * interval){ QList> items = { - {"Do Not Repeat", 0}, - {"Every 1 minute", 1}, - {"Every 5 minutes", 5}, - {"Every 10 minutes", 10}, - {"Every 15 minutes", 15}, - {"Every 30 minutes", 30}, - {"Every 60 minutes", 60} + {"Do not repeat", 0}, + {"Repeat every 1 minute", 1}, + {"Repeat every 5 minutes", 5}, + {"Repeat every 10 minutes", 10}, + {"Repeat every 15 minutes", 15}, + {"Repeat every 30 minutes", 30}, + {"Repeat every 60 minutes", 60}, }; QActionGroup * group = new QActionGroup(menu);