summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp11
-rw-r--r--library/qpeapplication.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 852671a..b26933b 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -105,2 +105,3 @@ public:
int kbgrabber;
+ QString kbgrabber_appname;
QPoint presspos;
@@ -1066,2 +1067,4 @@ void QPEApplication::systemMessage( const QCString& msg, const QByteArray& data
d->kbgrabber = 2;
+
+ d-> kbgrabber_appname = who;
}
@@ -1626,2 +1629,10 @@ bool QPEApplication::keyboardGrabbed() const
+/*!
+ \internal
+*/
+QString QPEApplication::keyboardGrabbedBy() const
+{
+ return d->kbgrabber_appname;
+}
+
diff --git a/library/qpeapplication.h b/library/qpeapplication.h
index 86affa6..f712077 100644
--- a/library/qpeapplication.h
+++ b/library/qpeapplication.h
@@ -36,2 +36,3 @@ class QWSKeyEvent;
+
class QPEApplication : public QApplication
@@ -84,2 +85,3 @@ public:
bool keyboardGrabbed() const;
+ QString keyboardGrabbedBy ( ) const;