forked from qt-creator/qt-creator
Do not show the buttons of output views with priority < 0 (instead of only == -1). Reduce the number of buttons that are shown by default to the essential ones. Change-Id: I5b44f18537b3033ce9d616f044a8b54b76988783 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
44 lines
899 B
C++
44 lines
899 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include "ioutputpane.h"
|
|
|
|
namespace Core {
|
|
class OutputWindow;
|
|
|
|
namespace Internal {
|
|
|
|
class MessageOutputWindow : public IOutputPane
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MessageOutputWindow();
|
|
~MessageOutputWindow() override;
|
|
|
|
QWidget *outputWidget(QWidget *parent) override;
|
|
|
|
void clearContents() override;
|
|
|
|
void append(const QString &text);
|
|
bool canFocus() const override;
|
|
bool hasFocus() const override;
|
|
void setFocus() override;
|
|
|
|
bool canNext() const override;
|
|
bool canPrevious() const override;
|
|
void goToNext() override;
|
|
void goToPrev() override;
|
|
bool canNavigate() const override;
|
|
|
|
private:
|
|
void updateFilter() override;
|
|
|
|
OutputWindow *m_widget;
|
|
};
|
|
|
|
} // namespace Internal
|
|
} // namespace Core
|