Add name of the file in the window bar.
authorZack Rusin <zack@kde.org>
Wed, 6 Apr 2011 21:29:39 +0000 (17:29 -0400)
committerZack Rusin <zack@kde.org>
Wed, 6 Apr 2011 21:29:39 +0000 (17:29 -0400)
gui/mainwindow.cpp

index f221112..f67b654 100644 (file)
@@ -160,9 +160,13 @@ void MainWindow::newTraceFile(const QString &fileName)
     if (m_traceFileName.isEmpty()) {
         m_ui.actionReplay->setEnabled(false);
         m_ui.actionLookupState->setEnabled(false);
+        setWindowTitle(tr("QApiTrace"));
     } else {
+        QFileInfo info(fileName);
         m_ui.actionReplay->setEnabled(true);
         m_ui.actionLookupState->setEnabled(true);
+        setWindowTitle(
+            tr("QApiTrace - %1").arg(info.fileName()));
     }
 }