author | zautrix <zautrix> | 2005-04-25 13:36:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-25 13:36:57 (UTC) |
commit | 3978688cbe832e2b72c8048b96c9a7c43ce11bc9 (patch) (side-by-side diff) | |
tree | 8c459ecc1bb64b5ff67433461618492cbcc2ac4a /kalarmd | |
parent | 119181e56ffd7987ae57749bde85935e29482955 (diff) | |
download | kdepimpi-3978688cbe832e2b72c8048b96c9a7c43ce11bc9.zip kdepimpi-3978688cbe832e2b72c8048b96c9a7c43ce11bc9.tar.gz kdepimpi-3978688cbe832e2b72c8048b96c9a7c43ce11bc9.tar.bz2 |
alarm fix
-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 ) mPopUp->insertItem( "Next Days!", this, SLOT ( showKO() ) ); mPopUp->insertSeparator(); - //mPopUp->insertItem( "Todo List", this, SLOT ( showTodo() ) ); - //mPopUp->insertSeparator(); + mPopUp->insertItem( "Todo List", this, SLOT ( showTodo() ) ); + mPopUp->insertSeparator(); mPopUp->insertItem( "Addresses", this, SLOT ( showAdd() ) ); mPopUp->insertSeparator(); @@ -110,4 +110,6 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) mBeepPopUp->insertItem( "1", 1 ); mBeepPopUp->insertItem( "Off", 0 ); + mBeepPopUp->insertSeparator(); + mBeepPopUp->insertItem( "Simulate", 1000 ); mBeepPopUp->setCheckable( true ); mPopUp->insertSeparator(); @@ -115,6 +117,6 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) mPopUp->insertSeparator(); mPopUp->insertItem( "Timer", mTimerPopUp ); - mPopUp->insertSeparator(); - mPopUp->insertItem( "Simulate", this, SLOT ( simulate() ) ); + //mPopUp->insertSeparator(); + //mPopUp->insertItem( "Simulate", this, SLOT ( simulate() ) ); mPopUp->resize( mPopUp->sizeHint() ); @@ -257,4 +259,8 @@ void SimpleAlarmDaemonImpl::confSound( int num ) void SimpleAlarmDaemonImpl::slotPlayBeep( int num ) { + if ( num == 1000 ) { + simulate(); + return; + } mBeepPopUp->setItemChecked ( mPlayBeeps,false ); mPlayBeeps = num; |