summaryrefslogtreecommitdiff
path: root/src/cprquerydialog.cc
diff options
context:
space:
mode:
authordeva <deva>2005-05-23 19:30:36 +0000
committerdeva <deva>2005-05-23 19:30:36 +0000
commit764d85a9a398cb37e7b5c3eb2e4e5bfc9ff26cd3 (patch)
treeb61dc339d4161d5b67273357f30aaddb8117cfc5 /src/cprquerydialog.cc
parent6afe92e834bebe7fa3cbc441444652f917419df6 (diff)
Made some cleanup in the status bar.
Diffstat (limited to 'src/cprquerydialog.cc')
-rw-r--r--src/cprquerydialog.cc11
1 files changed, 7 insertions, 4 deletions
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();
}