projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3acde36
)
Add name of the file in the window bar.
author
Zack Rusin
<zack@kde.org>
Wed, 6 Apr 2011 21:29:39 +0000
(17:29 -0400)
committer
Zack Rusin
<zack@kde.org>
Wed, 6 Apr 2011 21:29:39 +0000
(17:29 -0400)
gui/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/gui/mainwindow.cpp
b/gui/mainwindow.cpp
index
f221112
..
f67b654
100644
(file)
--- 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()));
}
}