From 85d42838d511ab068194ce2b2113b1fe0c287fb0 Mon Sep 17 00:00:00 2001 From: q5sys Date: Mon, 5 Jun 2017 12:15:58 -0400 Subject: add quit and clear shortcuts to calculator --- src-qt5/desktop-utils/lumina-calculator/mainUI.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src-qt5/desktop-utils/lumina-calculator/mainUI.h') diff --git a/src-qt5/desktop-utils/lumina-calculator/mainUI.h b/src-qt5/desktop-utils/lumina-calculator/mainUI.h index f05365f3..308eab30 100644 --- a/src-qt5/desktop-utils/lumina-calculator/mainUI.h +++ b/src-qt5/desktop-utils/lumina-calculator/mainUI.h @@ -11,6 +11,7 @@ #include #include #include +#include namespace Ui{ class mainUI; @@ -53,6 +54,8 @@ private slots: void saveHistory(); + void on_quitShortcut_Triggered(); + private: Ui::mainUI *ui; QMenu *advMenu; @@ -61,5 +64,8 @@ private: double performSciOperation(QString func, double arg); double strToNumber(QString str); //this is highly-recursive QString getHistory(int number = -1); + + QShortcut *quitShortcut, *escShortcut; + }; #endif -- cgit