author | zecke <zecke> | 2004-03-24 00:06:20 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-24 00:06:20 (UTC) |
commit | dbde00826e485c509471961a15f95395a81b3b72 (patch) (side-by-side diff) | |
tree | 92ac26cc77cb6f9df4c49606b2b791adedb1ba48 /libopie2/opieui | |
parent | c8acbf192ca4aa64ed66306ca872cb3860590b3c (diff) | |
download | opie-dbde00826e485c509471961a15f95395a81b3b72.zip opie-dbde00826e485c509471961a15f95395a81b3b72.tar.gz opie-dbde00826e485c509471961a15f95395a81b3b72.tar.bz2 |
Ideas from Mickey. Install eventFilter for a widget as well and then
send a signal
-rw-r--r-- | libopie2/opieui/okeyconfigwidget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h index d76ea46..bcbb579 100644 --- a/libopie2/opieui/okeyconfigwidget.h +++ b/libopie2/opieui/okeyconfigwidget.h @@ -54,43 +54,52 @@ private: class OKeyConfig : public QObject { Q_OBJECT public: OKeyConfig(Opie::Core::OConfig *conf = 0, bool grabkeyboard); ~OKeyConfig(); void load(); void save(); OKeyConfigItem handleKeyEvent( QKeyEvent* ); QString handleKeyEventString( QKeyEvent* ); void addKeyConfig( const OKeyConfigItem& ); void removeKeyConfig( const OKeyConfigItem& ); + + void handleWidget( QWidget* ); signals: void keyConfigChanged( OKeyConfig* ); + void actionActivated( QWidget*, QKeyEvent*, const OKeyConfigItem& ); private: OKeyConfigItemList m_keys; + QValueList<QWidget*> m_widgets; + class Private; + Private *d; }; class OKeyConfigWidget : public QHBox { Q_OBJECT public: enum ChangeMode { Imediate, Queu }; OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); OKeyConfigWidget( OKeyConfig *, QWidget* parent = 0, const char* = 0, WFlags = 0 ); ~OKeyConfigWidget(); void setChangeMode( enum ChangeMode ); ChangeMode changeMode()const; void reload(); +private: + class Private; + Private *d; }; } } #endif |