From a228d6925ef961df3166dc9ee8f40adb64c553e9 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Wed, 6 Apr 2011 17:29:39 -0400 Subject: [PATCH] Add name of the file in the window bar. --- gui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index f221112..f67b654 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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())); } } -- 2.45.2