summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2004-04-02 06:43:42 (UTC)
committer zecke <zecke>2004-04-02 06:43:42 (UTC)
commita31c8ad914e72b874062dcb31e72476aca735bb0 (patch) (unidiff)
tree2db1bfd49893369c4ab71bec0e546527c01d6bcd /libopie2
parentfbe21a008888cef12eb863151b4aaee1e75f0f22 (diff)
downloadopie-a31c8ad914e72b874062dcb31e72476aca735bb0.zip
opie-a31c8ad914e72b874062dcb31e72476aca735bb0.tar.gz
opie-a31c8ad914e72b874062dcb31e72476aca735bb0.tar.bz2
Add OKeyConfigWidget to the .pro file
and also allow single character shortcuts
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/okeyconfigwidget.cpp7
-rw-r--r--libopie2/opieui/opieui.pro2
2 files changed, 6 insertions, 3 deletions
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
@@ -1179,30 +1179,31 @@ void OKeyChooserConfigDialog::keyPressEvent( QKeyEvent* ev ) {
1179 case Qt::Key_Control: 1179 case Qt::Key_Control:
1180 mod = Qt::ControlButton; 1180 mod = Qt::ControlButton;
1181 break; 1181 break;
1182 case Qt::Key_Shift: 1182 case Qt::Key_Shift:
1183 mod = Qt::ShiftButton; 1183 mod = Qt::ShiftButton;
1184 break; 1184 break;
1185 case Qt::Key_Alt: 1185 case Qt::Key_Alt:
1186 mod = Qt::AltButton; 1186 mod = Qt::AltButton;
1187 break; 1187 break;
1188 default: 1188 default:
1189 break; 1189 break;
1190 } 1190 }
1191 if (mod ) 1191 if (mod ) {
1192 m_mod |= mod; 1192 m_mod |= mod;
1193 else 1193 key = 0;
1194 }else
1194 m_key = key; 1195 m_key = key;
1195 1196
1196 if ( ( !mod || m_key ) && !m_timer->isActive() ) 1197 if ( ( !mod || m_key || key ) && !m_timer->isActive() )
1197 m_timer->start( 150, true ); 1198 m_timer->start( 150, true );
1198 1199
1199 m_keyPair = OKeyPair( m_key, m_mod ); 1200 m_keyPair = OKeyPair( m_key, m_mod );
1200 } 1201 }
1201 1202
1202 m_lbl->setText( Opie::Ui::Private::keyToString( m_keyPair ) ); 1203 m_lbl->setText( Opie::Ui::Private::keyToString( m_keyPair ) );
1203 1204
1204} 1205}
1205 1206
1206void OKeyChooserConfigDialog::keyReleaseEvent( QKeyEvent* ev ) { 1207void OKeyChooserConfigDialog::keyReleaseEvent( QKeyEvent* ev ) {
1207 m_timer->stop(); 1208 m_timer->stop();
1208 QDialog::keyPressEvent( ev ); 1209 QDialog::keyPressEvent( ev );
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
@@ -1,39 +1,41 @@
1TEMPLATE = lib 1TEMPLATE = lib
2CONFIG += qt warn_on 2CONFIG += qt warn_on
3DESTDIR = $(OPIEDIR)/lib 3DESTDIR = $(OPIEDIR)/lib
4HEADERS = oclickablelabel.h \ 4HEADERS = oclickablelabel.h \
5 odialog.h \ 5 odialog.h \
6 ofontselector.h \ 6 ofontselector.h \
7 oimageeffect.h \ 7 oimageeffect.h \
8 okeyconfigwidget.h \
8 olistview.h \ 9 olistview.h \
9 opixmapeffect.h \ 10 opixmapeffect.h \
10 opopupmenu.h \ 11 opopupmenu.h \
11 opixmapprovider.h \ 12 opixmapprovider.h \
12 oselector.h \ 13 oselector.h \
13 oseparator.h \ 14 oseparator.h \
14 otabinfo.h \ 15 otabinfo.h \
15 otabbar.h \ 16 otabbar.h \
16 otabwidget.h \ 17 otabwidget.h \
17 otaskbarapplet.h \ 18 otaskbarapplet.h \
18 oticker.h \ 19 oticker.h \
19 otimepicker.h \ 20 otimepicker.h \
20 oversatileview.h \ 21 oversatileview.h \
21 oversatileviewitem.h \ 22 oversatileviewitem.h \
22 owait.h 23 owait.h
23 24
24SOURCES = oclickablelabel.cpp \ 25SOURCES = oclickablelabel.cpp \
25 odialog.cpp \ 26 odialog.cpp \
26 ofontselector.cpp \ 27 ofontselector.cpp \
27 oimageeffect.cpp \ 28 oimageeffect.cpp \
29 okeyconfigwidget.cpp \
28 olistview.cpp \ 30 olistview.cpp \
29 opixmapeffect.cpp \ 31 opixmapeffect.cpp \
30 opopupmenu.cpp \ 32 opopupmenu.cpp \
31 opixmapprovider.cpp \ 33 opixmapprovider.cpp \
32 oselector.cpp \ 34 oselector.cpp \
33 oseparator.cpp \ 35 oseparator.cpp \
34 otabbar.cpp \ 36 otabbar.cpp \
35 otabwidget.cpp \ 37 otabwidget.cpp \
36 otaskbarapplet.cpp \ 38 otaskbarapplet.cpp \
37 oticker.cpp \ 39 oticker.cpp \
38 otimepicker.cpp \ 40 otimepicker.cpp \
39 oversatileview.cpp \ 41 oversatileview.cpp \