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:
Eike Ziller
2023-09-14 09:40:56 +02:00
parent 053c6253b8
commit b0043ed1ac
29 changed files with 51 additions and 94 deletions

View File

@@ -28,6 +28,8 @@ TodoOutputPane::TodoOutputPane(TodoItemsModel *todoItemsModel, const Settings *s
{
setId("To-DoEntries");
setDisplayName(Tr::tr("To-Do Entries"));
setPriorityInStatusBar(10);
createTreeView();
createScopeButtons();
setScanningScope(ScanningScopeCurrentFile); // default
@@ -61,11 +63,6 @@ QList<QWidget*> TodoOutputPane::toolBarWidgets() const
return widgets;
}
int TodoOutputPane::priorityInStatusBar() const
{
return 1;
}
void TodoOutputPane::clearContents()
{
clearKeywordFilter();