From 7d547a29164cf9318a7eca918705bbc30e93b81d Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 24 May 2006 09:15:57 +0000 Subject: *** empty log message *** --- client/mainwindow.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'client/mainwindow.cc') 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; -- cgit v1.2.3