Kirigami-addons
abstractkirigamiapplication.cpp
50static QList<KCommandBarModel::ActionGroup> actionCollectionToActionGroup(const QList<KirigamiActionCollection *> &actionCollections)
96 const auto actionNames = cg.readEntry(QStringLiteral("CommandBarLastUsedActions"), QStringList());
144 auto openKCommandBarAction = d->collection->addAction(actionName, this, &AbstractKirigamiApplication::openKCommandBarAction);
149 d->collection->setDefaultShortcut(openKCommandBarAction, QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_I));
160 auto keyBindingsAction = KStandardActions::keyBindings(this, &AbstractKirigamiApplication::shortcutsEditorAction, this);
166 auto action = d->collection->addAction(actionName, this, &AbstractKirigamiApplication::openAboutPage);
173 auto action = d->collection->addAction(actionName, this, &AbstractKirigamiApplication::openAboutKDEPage);
212 mainCollection()->addAction(d->openConfigurationViewAction->objectName(), d->openConfigurationViewAction);
void configurationViewChanged()
Changed signal for the configurationView property.
void setConfigurationView(QObject *configurationView)
Setter for the configurationView property.
Definition abstractkirigamiapplication.cpp:193
void readSettings()
Read the configured settings for the action.
Definition abstractkirigamiapplication.cpp:74
void openAboutKDEPage()
KirigamiActionCollection * mainCollection() const
Return the main action collection.
Definition abstractkirigamiapplication.cpp:135
Q_INVOKABLE QAction * action(const QString &actionName)
Get the named action.
Definition abstractkirigamiapplication.cpp:113
QAbstractListModel * shortcutsModel
Definition abstractkirigamiapplication.h:85
void shortcutsEditorAction()
QML_ELEMENTQSortFilterProxyModel * actionsModel
Definition abstractkirigamiapplication.h:82
void openKCommandBarAction()
void openAboutPage()
QObject * configurationView
This property holds the configurationView of the application.
Definition abstractkirigamiapplication.h:91
virtual QList< KirigamiActionCollection * > actionCollections() const
Return the list of KirigamiActionCollection setup in your application.
Definition abstractkirigamiapplication.cpp:128
virtual void setupActions()
Entry points to declare your actions.
Definition abstractkirigamiapplication.cpp:140
virtual ~AbstractKirigamiApplication()
Default destructor of AbstractKirigamiApplication.
Definition abstractkirigamiapplication.cpp:36
AbstractKirigamiApplication(QObject *parent=nullptr)
Default constructor of AbstractKirigamiApplication.
Definition abstractkirigamiapplication.cpp:29
static KAboutData applicationData()
static Q_INVOKABLE bool authorizeAction(const QString &action)
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
A container for a set of QAction objects.
Definition kirigamiactioncollection.h:44
Q_INVOKABLE QAction * addAction(const QString &name, QAction *action)
Add an action under the given name to the collection.
Definition kirigamiactioncollection.cpp:173
void readSettings(KConfigGroup *config=nullptr)
Read all key associations from config.
Definition kirigamiactioncollection.cpp:338
QString i18n(const char *text, const TYPE &arg...)
void setIcon(const QIcon &icon)
void setText(const QString &text)
void setVisible(bool)
QIcon fromTheme(const QString &name)
void append(QList< T > &&value)
void reserve(qsizetype size)
qsizetype size() const const
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
Q_EMITQ_EMIT
objectName
QObject * parent() const const
QueuedConnection
DisplayRole
Key_I
CTRL
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.