]> git.cworth.org Git - apitrace/commitdiff
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 f221112a16b364f5db64638e4c3f3b82d0975020..f67b654c79171de93a3c80b39260fdff8a696b1e 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()));
     }
 }