diff options
| author | deva <deva> | 2005-05-23 19:30:36 +0000 | 
|---|---|---|
| committer | deva <deva> | 2005-05-23 19:30:36 +0000 | 
| commit | 764d85a9a398cb37e7b5c3eb2e4e5bfc9ff26cd3 (patch) | |
| tree | b61dc339d4161d5b67273357f30aaddb8117cfc5 /src/mainwindow.cc | |
| parent | 6afe92e834bebe7fa3cbc441444652f917419df6 (diff) | |
Made some cleanup in the status bar.
Diffstat (limited to 'src/mainwindow.cc')
| -rw-r--r-- | src/mainwindow.cc | 14 | 
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 496817b..4acf391 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -31,6 +31,9 @@  /*   * $Log$ + * Revision 1.27  2005/05/23 19:30:36  deva + * Made some cleanup in the status bar. + *   * Revision 1.26  2005/05/16 16:00:56  deva   *   * Lots of stuff! @@ -263,8 +266,12 @@ void MainWindow::createGui()    status->setSizeGripEnabled(FALSE);    g0->addMultiCellWidget(status, 4, 4, 0, 1); +  lbl_recordtime = createLabel("", 18, 1); +  lbl_recordtime->setFixedWidth(265); +  status->addWidget(lbl_recordtime, 0, TRUE); +    lbl_version = createLabel("MIaV-Grab v" VERSION, 18, 1); -  lbl_version->setFixedWidth(300); +  lbl_version->setFixedWidth(265);    status->addWidget(lbl_version, 0, TRUE);    status->message( TXT_READY ); @@ -296,8 +303,8 @@ void MainWindow::taskbar_update()    char msg[256];    int l = camera->getQueueLength(); -  sprintf(msg, "Recording time: %d:%d:%d - Queue length: %d", h, m, s, l); -  message(msg); +  sprintf(msg, TXT_TIME " %.02d:%.02d:%.02d " TXT_QUEUELENGTH " %d", h, m, s, l); +  lbl_recordtime->setText(msg);  }  #define GREY 160 @@ -329,7 +336,6 @@ QLabel *MainWindow::createLabel(char *caption, int width, int height)  void MainWindow::message(char *msg)  { -  //  lbl_status->setText(msg);    status->message(msg);  }  | 
