Commit fd12a0b2 authored by Benjamin Meyer's avatar Benjamin Meyer

Remove clock in statusbar

svn path=/trunk/kdegames/lskat/; revision=330956
parent 09400ec8
......@@ -47,7 +47,6 @@
#define ACTION(x) (actionCollection()->action(x))
#define ID_STATUS_MSG 1003
#define ID_STATUS_MOVER 1002
#define ID_STATUS_TIME 1001
LSkatApp::LSkatApp() : KMainWindow(0)
{
......@@ -256,17 +255,11 @@ void LSkatApp::initStatusBar()
// STATUSBAR
// statusBar()->setInsertOrder(KStatusBar::RightToLeft);
statusBar()->insertItem(i18n("This leaves space for the mover"),ID_STATUS_MOVER,0,true);
statusBar()->insertItem(i18n("23:45"),ID_STATUS_TIME,0,true);
statusBar()->insertItem(i18n("Ready"), ID_STATUS_MSG);
slotStatusTime();
slotStatusMover(i18n("(c) Martin Heni "));
slotStatusMsg(i18n("Welcome to Lieutenant Skat"));
// status bar clock
statusTimer=new QTimer(this);
connect(statusTimer,SIGNAL(timeout()),this,SLOT(slotStatusTimer()));
statusTimer->start(10000,false);
// computer move timer
procTimer=new QTimer(this);
connect(procTimer,SIGNAL(timeout()),this,SLOT(slotProcTimer()));
......@@ -624,21 +617,6 @@ void LSkatApp::slotStatusMover(const QString &text)
statusBar()->changeItem(text, ID_STATUS_MOVER);
}
void LSkatApp::slotStatusTime()
{
///////////////////////////////////////////////////////////////////
// change status time permanently
QString s;
QTime now;
now=QTime::currentTime();
s=now.toString();
s.truncate(5);
statusBar()->clear();
statusBar()->changeItem(s, ID_STATUS_TIME);
}
void LSkatApp::slotStatusHelpMsg(const QString &text)
{
......@@ -659,10 +637,6 @@ void LSkatApp::slotProcTimer(void)
*/
}
/** Triggers the status timer */
void LSkatApp::slotStatusTimer(void){
slotStatusTime();
}
/** Set the names in the mover field */
void LSkatApp::slotStatusNames(){
......
......@@ -189,7 +189,6 @@ class LSkatApp : public KMainWindow
/** Set the names in the mover field */
void slotStatusNames();
void slotStatusMover(const QString &text);
void slotStatusTime();
void slotLevel();
void slotStartplayer();
......@@ -199,8 +198,6 @@ class LSkatApp : public KMainWindow
void slotPlayer2By();
void slotOptionsNames();
void slotOptionsCardDeck();
/** Triggers the status timer */
void slotStatusTimer(void);
/** Triggers the process timer */
void slotProcTimer(void);
......@@ -210,7 +207,6 @@ protected: // Protected attributes
/** */
/** Counts the time in the status bar */
QTimer * statusTimer;
QTimer * procTimer;
KEInput *mInput;
QString mGrafix;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment