From 93a7ae395b4d5c0450c88013742b6c65b751ce6a Mon Sep 17 00:00:00 2001 From: Adam Higerd Date: Sat, 19 Feb 2022 14:19:55 -0600 Subject: [PATCH] style nits --- src/platform/qt/CheckBoxDelegate.cpp | 3 +-- src/platform/qt/CheckBoxDelegate.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/platform/qt/CheckBoxDelegate.cpp b/src/platform/qt/CheckBoxDelegate.cpp index 3596cf7a9..bd6854ebe 100644 --- a/src/platform/qt/CheckBoxDelegate.cpp +++ b/src/platform/qt/CheckBoxDelegate.cpp @@ -16,8 +16,7 @@ CheckBoxDelegate::CheckBoxDelegate(QObject* parent) // 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(option.styleObject); if (view && (index.flags() & Qt::ItemIsUserCheckable)) { // Set up style options diff --git a/src/platform/qt/CheckBoxDelegate.h b/src/platform/qt/CheckBoxDelegate.h index 53c7d938e..94ab228b6 100644 --- a/src/platform/qt/CheckBoxDelegate.h +++ b/src/platform/qt/CheckBoxDelegate.h @@ -9,8 +9,7 @@ namespace QGBA { -class CheckBoxDelegate : public QStyledItemDelegate -{ +class CheckBoxDelegate : public QStyledItemDelegate { public: CheckBoxDelegate(QObject* parent = nullptr);