diff options
author | Simon Rettberg | 2018-03-16 11:02:47 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-16 11:02:47 +0100 |
commit | 945985dc82e16f3244a02868eef502fab145a370 (patch) | |
tree | bef5b6c76ac917769e971960ee68092714edcc4f | |
parent | Move to Qt 5 (diff) | |
download | printergui-23.tar.gz printergui-23.tar.xz printergui-23.zip |
Don't make the return key press the Cancel button...v23
-rw-r--r-- | src/maingui/printergui.cpp | 1 | ||||
-rw-r--r-- | src/maingui/printergui.ui | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/maingui/printergui.cpp b/src/maingui/printergui.cpp index 8bc9133..3c6b224 100644 --- a/src/maingui/printergui.cpp +++ b/src/maingui/printergui.cpp @@ -327,6 +327,7 @@ void PrinterGui::on_printerList_currentItemChanged(QTreeWidgetItem *current, QTr statusBar->showMessage("Dieser Drucker nimmt zur Zeit keine Aufträge an"); } else { ui->buttonPrint->setEnabled(true); + ui->buttonPrint->setDefault(true); statusBar->clearMessage(); } } diff --git a/src/maingui/printergui.ui b/src/maingui/printergui.ui index 047c5ac..3af65a6 100644 --- a/src/maingui/printergui.ui +++ b/src/maingui/printergui.ui @@ -230,6 +230,9 @@ <property name="text"> <string>Abbrechen</string> </property> + <property name="autoDefault"> + <bool>false</bool> + </property> </widget> </item> <item> @@ -246,6 +249,9 @@ <property name="text"> <string>Drucken</string> </property> + <property name="default"> + <bool>true</bool> + </property> </widget> </item> </layout> |