From 0df4bbcd29ea2842c48d2f7f485deb9ee649b50f Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 7 Jul 2018 00:47:17 -0400 Subject: [PATCH] Added QTH button --- mainwindow.cpp | 4 ++++ mainwindow.h | 1 + mainwindow.ui | 63 ++++++++++++++++++++++++++++++-------------------- 3 files changed, 43 insertions(+), 25 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index a2f1b54..e59bbb8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6565,6 +6565,10 @@ void MainWindow::on_replyMacroButton_clicked(){ } } +void MainWindow::on_qthMacroButton_clicked(){ + addMessageText(m_config.my_grid().left(4)); +} + void MainWindow::on_snrMacroButton_clicked(){ auto items = ui->tableWidgetCalls->selectedItems(); if(!items.isEmpty()){ diff --git a/mainwindow.h b/mainwindow.h index 320cd68..7f100f2 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -234,6 +234,7 @@ private slots: void on_cqMacroButton_clicked(); void on_deMacroButton_clicked(); void on_replyMacroButton_clicked(); + void on_qthMacroButton_clicked(); void on_snrMacroButton_clicked(); void on_macrosMacroButton_clicked(); void on_tableWidgetRXAll_cellClicked(int row, int col); diff --git a/mainwindow.ui b/mainwindow.ui index b57d515..035c32c 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -970,6 +970,19 @@ QTextEdit[readOnly="true"] { 0 + + + + + 0 + 30 + + + + Halt + + + @@ -986,8 +999,8 @@ QTextEdit[readOnly="true"] { - - + + 0 @@ -995,11 +1008,24 @@ QTextEdit[readOnly="true"] { - REPLY + QTH - + + + + + 0 + 30 + + + + Macros + + + + false @@ -1026,8 +1052,8 @@ background:yellow; - - + + 0 @@ -1035,12 +1061,12 @@ background:yellow; - Macros + REPLY - - + + 0 @@ -1048,11 +1074,11 @@ background:yellow; - Halt + DE - + Qt::Horizontal @@ -1068,7 +1094,7 @@ background:yellow; - + @@ -1081,19 +1107,6 @@ background:yellow; - - - - - 0 - 30 - - - - DE - - -