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:
@@ -42,6 +42,8 @@ TerminalPane::TerminalPane(QObject *parent)
|
||||
{
|
||||
setId("Terminal");
|
||||
setDisplayName(Tr::tr("Terminal"));
|
||||
setPriorityInStatusBar(20);
|
||||
|
||||
setupContext(m_selfContext, &m_tabWidget);
|
||||
setZoomButtonsEnabled(true);
|
||||
|
||||
@@ -350,11 +352,6 @@ QList<QWidget *> TerminalPane::toolBarWidgets() const
|
||||
return widgets << m_openSettingsButton << m_lockKeyboardButton << m_escSettingButton;
|
||||
}
|
||||
|
||||
int TerminalPane::priorityInStatusBar() const
|
||||
{
|
||||
return 50;
|
||||
}
|
||||
|
||||
void TerminalPane::clearContents()
|
||||
{
|
||||
if (const auto t = currentTerminal())
|
||||
|
||||
@@ -27,7 +27,6 @@ public:
|
||||
|
||||
QWidget *outputWidget(QWidget *parent) override;
|
||||
QList<QWidget *> toolBarWidgets() const override;
|
||||
int priorityInStatusBar() const override;
|
||||
void clearContents() override;
|
||||
void visibilityChanged(bool visible) override;
|
||||
void setFocus() override;
|
||||
|
||||
Reference in New Issue
Block a user