mirror of https://github.com/mgba-emu/mgba.git
style nits
This commit is contained in:
parent
2529ea6da4
commit
93a7ae395b
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue