forked from qt-creator/qt-creator
OutputPane: Use setter for display name
Change-Id: I2e89fbd052330c9e7124272c2f2fa81a0db94de9 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -20,6 +20,7 @@ const char zoomSettingsKey[] = "Core/MessageOutput/Zoom";
|
||||
|
||||
MessageOutputWindow::MessageOutputWindow()
|
||||
{
|
||||
setDisplayName(Tr::tr("General Messages"));
|
||||
m_widget = new OutputWindow(Context(Constants::C_GENERAL_OUTPUT_PANE), zoomSettingsKey);
|
||||
m_widget->setReadOnly(true);
|
||||
|
||||
@@ -65,11 +66,6 @@ QWidget *MessageOutputWindow::outputWidget(QWidget *parent)
|
||||
return m_widget;
|
||||
}
|
||||
|
||||
QString MessageOutputWindow::displayName() const
|
||||
{
|
||||
return Tr::tr("General Messages");
|
||||
}
|
||||
|
||||
void MessageOutputWindow::append(const QString &text)
|
||||
{
|
||||
m_widget->appendMessage(text, Utils::GeneralMessageFormat);
|
||||
|
||||
Reference in New Issue
Block a user