From a31c8ad914e72b874062dcb31e72476aca735bb0 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 02 Apr 2004 06:43:42 +0000 Subject: Add OKeyConfigWidget to the .pro file and also allow single character shortcuts --- (limited to 'libopie2') diff --git a/libopie2/opieui/okeyconfigwidget.cpp b/libopie2/opieui/okeyconfigwidget.cpp index 8967d77..ef6d713 100644 --- a/libopie2/opieui/okeyconfigwidget.cpp +++ b/libopie2/opieui/okeyconfigwidget.cpp @@ -1188,12 +1188,13 @@ void OKeyChooserConfigDialog::keyPressEvent( QKeyEvent* ev ) { default: break; } - if (mod ) + if (mod ) { m_mod |= mod; - else + key = 0; + }else m_key = key; - if ( ( !mod || m_key ) && !m_timer->isActive() ) + if ( ( !mod || m_key || key ) && !m_timer->isActive() ) m_timer->start( 150, true ); m_keyPair = OKeyPair( m_key, m_mod ); diff --git a/libopie2/opieui/opieui.pro b/libopie2/opieui/opieui.pro index 0749f7d..e97e82c 100644 --- a/libopie2/opieui/opieui.pro +++ b/libopie2/opieui/opieui.pro @@ -5,6 +5,7 @@ HEADERS = oclickablelabel.h \ odialog.h \ ofontselector.h \ oimageeffect.h \ + okeyconfigwidget.h \ olistview.h \ opixmapeffect.h \ opopupmenu.h \ @@ -25,6 +26,7 @@ SOURCES = oclickablelabel.cpp \ odialog.cpp \ ofontselector.cpp \ oimageeffect.cpp \ + okeyconfigwidget.cpp \ olistview.cpp \ opixmapeffect.cpp \ opopupmenu.cpp \ -- cgit v0.9.0.2