From 2ad4236f10fb845195a80897e3f9f2f9709ba4c0 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 15 Aug 2020 19:13:50 +0200 Subject: [PATCH] fixed compilation --- src/widgets/listview/GenericItemDelegate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/listview/GenericItemDelegate.cpp b/src/widgets/listview/GenericItemDelegate.cpp index 467de27d8..191e8649b 100644 --- a/src/widgets/listview/GenericItemDelegate.cpp +++ b/src/widgets/listview/GenericItemDelegate.cpp @@ -1,6 +1,6 @@ -#include "widgets/dialogs/switcher/GenericItemDelegate.hpp" +#include "widgets/listview/GenericItemDelegate.hpp" -#include "widgets/dialogs/switcher/AbstractSwitcherItem.hpp" +#include "widgets/listview/GenericListItem.hpp" namespace chatterino { @@ -17,7 +17,7 @@ void SwitcherItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { - auto *item = AbstractSwitcherItem::fromVariant(index.data()); + auto *item = GenericListItem::fromVariant(index.data()); if (item) { @@ -35,7 +35,7 @@ void SwitcherItemDelegate::paint(QPainter *painter, QSize SwitcherItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const { - auto *item = AbstractSwitcherItem::fromVariant(index.data()); + auto *item = GenericListItem::fromVariant(index.data()); if (item) {