diff options
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r-- | client/mainwindow.cc | 16 |
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; |