aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-calculator/EqValidator.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-11-01 08:22:38 -0400
committerKen Moore <ken@ixsystems.com>2016-11-01 08:22:38 -0400
commitefbf100822f8a50abdcfb061b7b1bf1be06b868c (patch)
tree29d5767ed1a773d138ac2be42515df8afe01bfc7 /src-qt5/desktop-utils/lumina-calculator/EqValidator.h
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-efbf100822f8a50abdcfb061b7b1bf1be06b868c.tar.gz
lumina-efbf100822f8a50abdcfb061b7b1bf1be06b868c.tar.bz2
lumina-efbf100822f8a50abdcfb061b7b1bf1be06b868c.zip
Another update to the calculator:
1) Add buttons to clear/save the history (saves as plaintext to a file) 2) Tag each result with a number (#1), and allow the usage of #<number> to recall a history item 3) When recalling history, see if the result looks like it was rounded using the double->text routine for display. If so, substitute the equation, otherwise just use the result (tries to ensure no rounding error-continuity by using previous results).
Diffstat (limited to 'src-qt5/desktop-utils/lumina-calculator/EqValidator.h')
-rw-r--r--src-qt5/desktop-utils/lumina-calculator/EqValidator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-calculator/EqValidator.h b/src-qt5/desktop-utils/lumina-calculator/EqValidator.h
index 8218efdf..ab9bcc22 100644
--- a/src-qt5/desktop-utils/lumina-calculator/EqValidator.h
+++ b/src-qt5/desktop-utils/lumina-calculator/EqValidator.h
@@ -7,10 +7,10 @@
#ifndef _LUMINA_CALCULATOR_VALIDATOR_H
#define _LUMINA_CALCULATOR_VALIDATOR_H
-#define VALIDCHARS QString("x*+-/^%eE().0123456789")
+#define VALIDCHARS QString("x*+-/^%eE().0123456789#")
#define NOSTARTCHARS QString("x*/^%)eE.")
-#define NOENDCHARS QString("x*/^(eE.")
-#define NOCHANGE QString("().")
+#define NOENDCHARS QString("x*/^(eE.#")
+#define NOCHANGE QString("().#")
#include <QValidator>
#include <QString>
bgstack15