forked from qt-creator/qt-creator
Taskwindow: Allow for Keyboard shortcuts in actions
Allow to trigger TaskHandler actions by keyboard shortcut. Simplify the code while doing so. As a side effect the default handler is now listed in the context menu, which makes it more discoverable. Change-Id: I41183e5a5ef77be57360f29f289e327cadfaa7d1 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Eike Ziller
parent
a28f48366c
commit
432de3a198
@@ -55,6 +55,8 @@ public:
|
||||
TaskWindow(ProjectExplorer::TaskHub *taskHub);
|
||||
virtual ~TaskWindow();
|
||||
|
||||
void delayedInitialization();
|
||||
|
||||
int taskCount(const Core::Id &category = Core::Id()) const;
|
||||
int warningTaskCount(const Core::Id &category = Core::Id()) const;
|
||||
int errorTaskCount(const Core::Id &category = Core::Id()) const;
|
||||
@@ -92,16 +94,15 @@ private slots:
|
||||
void openTask(unsigned int id);
|
||||
void clearTasks(const Core::Id &categoryId);
|
||||
void setCategoryVisibility(const Core::Id &categoryId, bool visible);
|
||||
void currentChanged(const QModelIndex &index);
|
||||
|
||||
void triggerDefaultHandler(const QModelIndex &index);
|
||||
void showContextMenu(const QPoint &position);
|
||||
void contextMenuEntryTriggered(QAction *);
|
||||
void actionTriggered();
|
||||
void setShowWarnings(bool);
|
||||
void updateCategoriesMenu();
|
||||
void filterCategoryTriggered(QAction *action);
|
||||
|
||||
private:
|
||||
void cleanContextMenu();
|
||||
int sizeHintForColumn(int column) const;
|
||||
|
||||
TaskWindowPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user