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.
38 lines
725 B
C++
38 lines
725 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef NAMEDELEGATE_H
|
|
#define NAMEDELEGATE_H
|
|
|
|
// Qt
|
|
#include <QPainter>
|
|
#include <QStyledItemDelegate>
|
|
|
|
class QModelIndex;
|
|
class QWidget;
|
|
class QVariant;
|
|
|
|
namespace Latte {
|
|
namespace Settings {
|
|
namespace View {
|
|
namespace Delegate {
|
|
|
|
class NameDelegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
NameDelegate(QObject *parent);
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|