style nits

This commit is contained in:
Adam Higerd 2022-02-19 14:19:55 -06:00
parent 2529ea6da4
commit 93a7ae395b
2 changed files with 2 additions and 4 deletions

View File

@ -16,8 +16,7 @@ CheckBoxDelegate::CheckBoxDelegate(QObject* parent)
// initializers only // initializers only
} }
void CheckBoxDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const void CheckBoxDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const {
{
QAbstractItemView* view = qobject_cast<QAbstractItemView*>(option.styleObject); QAbstractItemView* view = qobject_cast<QAbstractItemView*>(option.styleObject);
if (view && (index.flags() & Qt::ItemIsUserCheckable)) { if (view && (index.flags() & Qt::ItemIsUserCheckable)) {
// Set up style options // Set up style options

View File

@ -9,8 +9,7 @@
namespace QGBA { namespace QGBA {
class CheckBoxDelegate : public QStyledItemDelegate class CheckBoxDelegate : public QStyledItemDelegate {
{
public: public:
CheckBoxDelegate(QObject* parent = nullptr); CheckBoxDelegate(QObject* parent = nullptr);