You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
latte-dock/app/settings/actionsdialog/actionlistwidgetitem.h

34 lines
695 B
C++

/*
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef ACTIONLISTWIDGETITEM_H
#define ACTIONLISTWIDGETITEM_H
// Qt
#include <QListWidgetItem>
namespace Latte {
namespace Settings {
namespace ActionsDialog {
class ActionListWidgetItem : public QListWidgetItem
{
public:
enum ActionUserRoles
{
IDROLE = Qt::UserRole + 1,
ORDERROLE
};
ActionListWidgetItem(const QIcon &icon, const QString &text, const int &order, const QString &id, QListWidget *parent = nullptr, int type = QListWidgetItem::Type);
bool operator<(const QListWidgetItem &other) const override;
};
}
}
}
#endif