Commit 1fff13f0 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: fix tracefile extension

Change-Id: If19f71b81bd5a4e9f7e02ae79033c4b46a34739f
Reviewed-on: http://codereview.qt-project.org/6326


Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent d6a68b64
......@@ -626,7 +626,7 @@ void QmlProfilerTool::logError(const QString &msg)
void QmlProfilerTool::showSaveDialog()
{
Core::ICore *core = Core::ICore::instance();
QString filename = QFileDialog::getSaveFileName(core->mainWindow(), tr("Save QML Trace"), QString(), tr("QML traces (%1)").arg(TraceFileExtension));
QString filename = QFileDialog::getSaveFileName(core->mainWindow(), tr("Save QML Trace"), QString(), tr("QML traces (*%1)").arg(TraceFileExtension));
if (!filename.isEmpty()) {
if (!filename.endsWith(QLatin1String(TraceFileExtension)))
filename += QLatin1String(TraceFileExtension);
......@@ -637,7 +637,7 @@ void QmlProfilerTool::showSaveDialog()
void QmlProfilerTool::showLoadDialog()
{
Core::ICore *core = Core::ICore::instance();
QString filename = QFileDialog::getOpenFileName(core->mainWindow(), tr("Load QML Trace"), QString(), tr("QML traces (%1)").arg(TraceFileExtension));
QString filename = QFileDialog::getOpenFileName(core->mainWindow(), tr("Load QML Trace"), QString(), tr("QML traces (*%1)").arg(TraceFileExtension));
if (!filename.isEmpty()) {
// delayed load (prevent graphical artifacts due to long load time)
......
......@@ -41,7 +41,7 @@
namespace QmlProfiler {
namespace Internal {
#define TraceFileExtension "*.qtd"
#define TraceFileExtension ".qtd"
class QmlProfilerTool : public Analyzer::IAnalyzerTool
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment