summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-08 20:14:37 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-10 10:27:30 +0100
commit3e5d71923ffa41e2af552024cd929aca93830fd0 (patch)
tree4d3dbf8cadf3eb1306c2edac2c271f523a889d30 /src
parent5fb590efe3f101d2a9d284232b6aa4b54a9d5de4 (diff)
Rename ModListStyledItemDelegated -> ModListStyledItemDelegate.
Diffstat (limited to 'src')
-rw-r--r--src/modlistview.cpp8
-rw-r--r--src/modlistview.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp
index 6b5ae66b..f4f045c6 100644
--- a/src/modlistview.cpp
+++ b/src/modlistview.cpp
@@ -41,13 +41,13 @@ using namespace MOShared;
// handling (e.g. checkbox, edit, etc.), so we also need to override
// the visualRect() function from the mod list view.
//
-class ModListStyledItemDelegated : public QStyledItemDelegate
+class ModListStyledItemDelegate : public QStyledItemDelegate
{
ModListView* m_view;
public:
- ModListStyledItemDelegated(ModListView* view) :
+ ModListStyledItemDelegate(ModListView* view) :
QStyledItemDelegate(view), m_view(view) { }
void initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const override
@@ -144,7 +144,7 @@ ModListView::ModListView(QWidget* parent)
MOBase::setCustomizableColumns(this);
setAutoExpandDelay(750);
- setItemDelegate(new ModListStyledItemDelegated(this));
+ setItemDelegate(new ModListStyledItemDelegate(this));
connect(this, &ModListView::doubleClicked, this, &ModListView::onDoubleClicked);
connect(this, &ModListView::customContextMenuRequested, this, &ModListView::onCustomContextMenuRequested);
@@ -855,7 +855,7 @@ void ModListView::saveState(Settings& s) const
QRect ModListView::visualRect(const QModelIndex& index) const
{
// this shift the visualRect() from QTreeView to match the new actual
- // zone after removing indentation (see the ModListStyledItemDelegated)
+ // zone after removing indentation (see the ModListStyledItemDelegate)
QRect rect = QTreeView::visualRect(index);
if (hasCollapsibleSeparators()
&& index.column() == 0 && index.isValid()
diff --git a/src/modlistview.h b/src/modlistview.h
index 3b64e01b..c9588181 100644
--- a/src/modlistview.h
+++ b/src/modlistview.h
@@ -180,7 +180,7 @@ private:
friend class ModConflictIconDelegate;
friend class ModFlagIconDelegate;
friend class ModContentIconDelegate;
- friend class ModListStyledItemDelegated;
+ friend class ModListStyledItemDelegate;
friend class ModListViewMarkingScrollBar;
void onModPrioritiesChanged(const QModelIndexList& indices);