From 33ca5716dd3bb93caf87bce65de15986dde86c63 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 11 Mar 2011 13:41:42 +0000 Subject: Huge improvements on 'keyboard-only' use. --- client/widgets/frame.h | 2 ++ client/widgets/groupbox.h | 2 ++ client/widgets/label.h | 2 ++ client/widgets/textedit.cc | 4 ++++ client/widgets/window.h | 2 ++ 5 files changed, 12 insertions(+) (limited to 'client/widgets') diff --git a/client/widgets/frame.h b/client/widgets/frame.h index fe57a0f..219ecf8 100644 --- a/client/widgets/frame.h +++ b/client/widgets/frame.h @@ -43,6 +43,8 @@ public: void setWdgValid(bool) {} + bool setKeyboardFocus() { return false; } + private: QFrame *frame; }; diff --git a/client/widgets/groupbox.h b/client/widgets/groupbox.h index bf12765..22aa644 100644 --- a/client/widgets/groupbox.h +++ b/client/widgets/groupbox.h @@ -43,6 +43,8 @@ public: void setWdgValid(bool) {} + bool setKeyboardFocus() { return false; } + private: QGroupBox *groupbox; }; diff --git a/client/widgets/label.h b/client/widgets/label.h index 529a79e..b4e352c 100644 --- a/client/widgets/label.h +++ b/client/widgets/label.h @@ -44,6 +44,8 @@ public: void setWdgValid(bool) {} + bool setKeyboardFocus() { return false; } + private: QLabel *label; }; diff --git a/client/widgets/textedit.cc b/client/widgets/textedit.cc index c597359..757a353 100644 --- a/client/widgets/textedit.cc +++ b/client/widgets/textedit.cc @@ -85,6 +85,10 @@ bool TextEdit::eventFilter(QObject *, QEvent *event) { if (event->type() == QEvent::KeyPress) { QKeyEvent *keyEvent = static_cast(event); + if(keyEvent->text() == "\t") { + event->ignore(); + return true; + } if(keyEvent->text() != "") emit wasChanged(); } return false; diff --git a/client/widgets/window.h b/client/widgets/window.h index b7098d6..2214b16 100644 --- a/client/widgets/window.h +++ b/client/widgets/window.h @@ -40,6 +40,8 @@ public: void setValue(QString, QString) {} void setWdgValid(bool) {} + + bool setKeyboardFocus() { return false; } }; #endif/*__PRACRO_WINDOW_H__*/ -- cgit v1.2.3