diff options
| author | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:43 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:43 -0700 |
| commit | 393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (patch) | |
| tree | 6a6e8a56ace360795e1cf1a310d5652bb23f1386 /qmap/displaytext.cpp | |
| parent | 6a285ab382ebff18c88e52bec75dc1773ac33b74 (diff) | |
New upstream version 2.7.0~rc2+repackupstream/2.7.0_rc2+repack
Diffstat (limited to 'qmap/displaytext.cpp')
| -rwxr-xr-x | qmap/displaytext.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qmap/displaytext.cpp b/qmap/displaytext.cpp new file mode 100755 index 00000000..4f2ac0b6 --- /dev/null +++ b/qmap/displaytext.cpp @@ -0,0 +1,15 @@ +#include "displaytext.h"
+#include <QDebug>
+#include <QMouseEvent>
+
+DisplayText::DisplayText(QWidget *parent) :
+ QTextBrowser(parent)
+{
+}
+
+void DisplayText::mouseDoubleClickEvent(QMouseEvent *e)
+{
+ bool ctrl = (e->modifiers() & 0x4000000);
+ emit(selectCallsign(ctrl));
+ QTextBrowser::mouseDoubleClickEvent(e);
+}
|
