forked from qt-creator/qt-creator
OutputPane: Use setter for priority and fix default visibility
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>
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
virtual const QList<OutputWindow *> outputWindows() const { return {}; }
|
||||
virtual void ensureWindowVisible(OutputWindow *) { }
|
||||
|
||||
virtual int priorityInStatusBar() const = 0;
|
||||
int priorityInStatusBar() const;
|
||||
|
||||
virtual void clearContents() = 0;
|
||||
virtual void visibilityChanged(bool visible);
|
||||
@@ -84,6 +84,7 @@ signals:
|
||||
protected:
|
||||
void setId(const Utils::Id &id);
|
||||
void setDisplayName(const QString &name);
|
||||
void setPriorityInStatusBar(int priority);
|
||||
|
||||
void setupFilterUi(const Utils::Key &historyKey);
|
||||
QString filterText() const;
|
||||
@@ -110,6 +111,7 @@ private:
|
||||
|
||||
Utils::Id m_id;
|
||||
QString m_displayName;
|
||||
int m_priority = -1;
|
||||
Core::CommandButton * const m_zoomInButton;
|
||||
Core::CommandButton * const m_zoomOutButton;
|
||||
QAction *m_filterActionRegexp = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user