summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2006-05-24 09:15:57 +0000
committerdeva <deva>2006-05-24 09:15:57 +0000
commit7d547a29164cf9318a7eca918705bbc30e93b81d (patch)
treeb78b9e756c40766d2c85e7dc35aa6c932b7bf747 /client/mainwindow.cc
parentdd8e7832c69a5ef484a2f3b6054a482d29275f85 (diff)
*** empty log message ***
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index da2785b..0e7270d 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -134,6 +134,7 @@ MainWindow::MainWindow(Decoder *d)
statusbar = new QStatusBar(this);
outerlayout->addWidget(statusbar, 1,0, 1,1);
statusbar->showMessage("Ready!");
+ startTimer(100);
show();
// setWindowState(Qt::WindowFullScreen);
@@ -151,6 +152,21 @@ MainWindow::~MainWindow()
MIaV::info->log("MIaV is shut down.");
}
+void MainWindow::timerEvent(QTimerEvent *event)
+{
+ Status s = decoder->status();
+ QString statusmsg;
+
+ for(int cnt = 0; cnt < s.queue_sizes.size(); cnt++) {
+ QString next;
+ next.sprintf("(%d)", s.queue_sizes[cnt]);
+ statusmsg.prepend(next);
+ }
+
+ statusbar->showMessage(statusmsg);
+}
+
+
void MainWindow::about_clicked()
{
AboutWindow about;