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/settingsdialog/delegates/checkboxdelegate.h

33 lines
671 B
C

/*
SPDX-FileCopyrightText: 2017-2018 Michail Vourlakos <mvourlakos@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef CHECKBOXDELEGATE_H
#define CHECKBOXDELEGATE_H
// Qt
#include <QStyledItemDelegate>
namespace Latte {
namespace Settings {
namespace Layout {
namespace Delegate {
class CheckBox : public QStyledItemDelegate
{
public:
CheckBox(QObject *parent = 0);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override;
};
}
}
}
}
#endif