-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index c747dfd..37e7d0d 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp | |||
@@ -57,6 +57,6 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
57 | mPopUp->insertItem( "Next Days!", this, SLOT ( showKO() ) ); | 57 | mPopUp->insertItem( "Next Days!", this, SLOT ( showKO() ) ); |
58 | mPopUp->insertSeparator(); | 58 | mPopUp->insertSeparator(); |
59 | //mPopUp->insertItem( "Todo List", this, SLOT ( showTodo() ) ); | 59 | mPopUp->insertItem( "Todo List", this, SLOT ( showTodo() ) ); |
60 | //mPopUp->insertSeparator(); | 60 | mPopUp->insertSeparator(); |
61 | mPopUp->insertItem( "Addresses", this, SLOT ( showAdd() ) ); | 61 | mPopUp->insertItem( "Addresses", this, SLOT ( showAdd() ) ); |
62 | mPopUp->insertSeparator(); | 62 | mPopUp->insertSeparator(); |
@@ -110,4 +110,6 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
110 | mBeepPopUp->insertItem( "1", 1 ); | 110 | mBeepPopUp->insertItem( "1", 1 ); |
111 | mBeepPopUp->insertItem( "Off", 0 ); | 111 | mBeepPopUp->insertItem( "Off", 0 ); |
112 | mBeepPopUp->insertSeparator(); | ||
113 | mBeepPopUp->insertItem( "Simulate", 1000 ); | ||
112 | mBeepPopUp->setCheckable( true ); | 114 | mBeepPopUp->setCheckable( true ); |
113 | mPopUp->insertSeparator(); | 115 | mPopUp->insertSeparator(); |
@@ -115,6 +117,6 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
115 | mPopUp->insertSeparator(); | 117 | mPopUp->insertSeparator(); |
116 | mPopUp->insertItem( "Timer", mTimerPopUp ); | 118 | mPopUp->insertItem( "Timer", mTimerPopUp ); |
117 | mPopUp->insertSeparator(); | 119 | //mPopUp->insertSeparator(); |
118 | mPopUp->insertItem( "Simulate", this, SLOT ( simulate() ) ); | 120 | //mPopUp->insertItem( "Simulate", this, SLOT ( simulate() ) ); |
119 | 121 | ||
120 | mPopUp->resize( mPopUp->sizeHint() ); | 122 | mPopUp->resize( mPopUp->sizeHint() ); |
@@ -257,4 +259,8 @@ void SimpleAlarmDaemonImpl::confSound( int num ) | |||
257 | void SimpleAlarmDaemonImpl::slotPlayBeep( int num ) | 259 | void SimpleAlarmDaemonImpl::slotPlayBeep( int num ) |
258 | { | 260 | { |
261 | if ( num == 1000 ) { | ||
262 | simulate(); | ||
263 | return; | ||
264 | } | ||
259 | mBeepPopUp->setItemChecked ( mPlayBeeps,false ); | 265 | mBeepPopUp->setItemChecked ( mPlayBeeps,false ); |
260 | mPlayBeeps = num; | 266 | mPlayBeeps = num; |