forked from qt-creator/qt-creator
app_version.h: Make IDE name configurable
Change-Id: I993f452c8d09cf89e9a2958fc8e36b7d2c17ee6f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Eike Ziller
parent
ca959d8063
commit
4ef01c961e
@@ -31,6 +31,7 @@
|
||||
#include "coreconstants.h"
|
||||
#include "icore.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -191,7 +192,7 @@ void WindowList::updateTitle(QWidget *window)
|
||||
QTC_ASSERT(index >= 0, return);
|
||||
QTC_ASSERT(index < m_windowActions.size(), return);
|
||||
QString title = window->windowTitle();
|
||||
if (title.endsWith(QStringLiteral("- Qt Creator")))
|
||||
if (title.endsWith(QStringLiteral("- ") + Constants::IDE_DISPLAY_NAME))
|
||||
title.chop(12);
|
||||
m_windowActions.at(index)->setText(title.trimmed());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user