From 764d85a9a398cb37e7b5c3eb2e4e5bfc9ff26cd3 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 23 May 2005 19:30:36 +0000 Subject: Made some cleanup in the status bar. --- src/cprquerydialog.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/cprquerydialog.cc') diff --git a/src/cprquerydialog.cc b/src/cprquerydialog.cc index 0da4101..c683cf4 100644 --- a/src/cprquerydialog.cc +++ b/src/cprquerydialog.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.12 2005/05/23 19:30:36 deva + * Made some cleanup in the status bar. + * * Revision 1.11 2005/05/23 18:08:02 deva * Name is now overwritten if non-valid cpr is used. * @@ -366,7 +369,7 @@ void CPRQueryDialog::cprSocket_error(int errnum) break; } - if(statusbar) statusbar->message(msg); + if(statusbar) statusbar->message(msg, 5000); MessageBox(this, "Fejl", msg, TYPE_OK, ICON_ERROR).exec(); accept(); } @@ -387,7 +390,7 @@ void CPRQueryDialog::cprSocket_readyRead() if (!cprSocket->canReadLine()) return; QString msg = QString("Recieving name from cpr database..."); - if(statusbar) statusbar->message(msg); + if(statusbar) statusbar->message(msg, 5000); timer->stop(); while(cprSocket->canReadLine()) { @@ -428,7 +431,7 @@ void CPRQueryDialog::cprSocket_readyRead() void CPRQueryDialog::cprSocket_connected() { QString msg = QString("Connected to cpr database, sending cpr number..."); - if(statusbar) statusbar->message(msg); + if(statusbar) statusbar->message(msg, 5000); timer->stop(); cprSocket->writeBlock(internalCpr, 10); @@ -466,7 +469,7 @@ void CPRQueryDialog::cprSocket_timeout() break; } - if(statusbar) statusbar->message(msg); + if(statusbar) statusbar->message(msg, 5000); MessageBox(this, "Fejl", msg, TYPE_OK, ICON_ERROR).exec(); accept(); } -- cgit v1.2.3