Warning, file /plasma/latte-dock/app/settings/actionsdialog/actionlistwidgetitem.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef ACTIONLISTWIDGETITEM_H
0007 #define ACTIONLISTWIDGETITEM_H
0008 
0009 // Qt
0010 #include <QListWidgetItem>
0011 
0012 namespace Latte {
0013 namespace Settings {
0014 namespace ActionsDialog {
0015 
0016 class ActionListWidgetItem : public QListWidgetItem
0017 {
0018 public:
0019     enum ActionUserRoles
0020     {
0021         IDROLE = Qt::UserRole + 1,
0022         ORDERROLE
0023     };
0024 
0025     ActionListWidgetItem(const QIcon &icon, const QString &text, const int &order, const QString &id, QListWidget *parent = nullptr, int type = QListWidgetItem::Type);
0026 
0027     bool operator<(const QListWidgetItem &other) const override;
0028 };
0029 
0030 }
0031 }
0032 }
0033 #endif