Krita Source Code Documentation
Loading...
Searching...
No Matches
katecommandbar.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Waqar Ahmed <waqar.17a@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#include <QList>
7#include <QMenu>
8
9class QTreeView;
10class QLineEdit;
11class CommandModel;
12class QAction;
15
16#include <kritawidgetutils_export.h>
17
18class KRITAWIDGETUTILS_EXPORT KateCommandBar : public QMenu
19{
20 Q_OBJECT
21public:
22 KateCommandBar(QWidget *parent = nullptr);
23
24 void updateBar(const QList<KisKActionCollection *> &actions, int totalActions);
25
26 void updateViewGeometry();
27
28protected:
29 bool eventFilter(QObject *obj, QEvent *event) override;
30
31private Q_SLOTS:
32 void slotReturnPressed();
33 void reselectFirst();
34
35private:
36 QTreeView *m_treeView;
37 QLineEdit *m_lineEdit;
41};
CommandModel * m_model
QTreeView * m_treeView
CommandBarFilterModel * m_proxyModel
QLineEdit * m_lineEdit
QVector< KisKActionCollection * > m_disposableActionCollections
A container for a set of QAction objects.