summaryrefslogtreecommitdiffstats
path: root/src/gui/dtmfform.h
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-05 15:18:11 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-05 15:18:11 +0200
commit83682370bdf2e50fd83bc005b1505213a9612ab4 (patch)
treecca0ac05322db2af6993036fa083e31ad00caf28 /src/gui/dtmfform.h
parentb62f8a7e002fc48ae7a397d9d2b718367eb84834 (diff)
downloadtwinkle-83682370bdf2e50fd83bc005b1505213a9612ab4.tar
twinkle-83682370bdf2e50fd83bc005b1505213a9612ab4.tar.gz
twinkle-83682370bdf2e50fd83bc005b1505213a9612ab4.tar.lz
twinkle-83682370bdf2e50fd83bc005b1505213a9612ab4.tar.xz
twinkle-83682370bdf2e50fd83bc005b1505213a9612ab4.zip
Visual DTMF feedback, clipboard support (fixes #4 and #5)
Diffstat (limited to 'src/gui/dtmfform.h')
-rw-r--r--src/gui/dtmfform.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/dtmfform.h b/src/gui/dtmfform.h
index a9c6b45..82ad117 100644
--- a/src/gui/dtmfform.h
+++ b/src/gui/dtmfform.h
@@ -3,6 +3,7 @@
#include <QDialog>
#include <QKeyEvent>
+#include <QTimer>
#include "ui_dtmfform.h"
class DtmfForm : public QDialog, private Ui::DtmfForm
@@ -30,10 +31,16 @@ public slots:
void dtmfB();
void dtmfC();
void dtmfD();
- void keyPressEvent(QKeyEvent* e);
+ void insertNextKey();
+
+protected:
+ void keyPressEvent(QKeyEvent* e);
signals:
void digits(const QString&);
+private:
+ QTimer m_insertTimer;
+ QString m_remainingKeys;
};
#endif // DTMFFORM_H