fixed compilation

This commit is contained in:
fourtf 2020-08-15 19:13:50 +02:00
parent c5aa3bd90f
commit 2ad4236f10

View file

@ -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 { namespace chatterino {
@ -17,7 +17,7 @@ void SwitcherItemDelegate::paint(QPainter *painter,
const QStyleOptionViewItem &option, const QStyleOptionViewItem &option,
const QModelIndex &index) const const QModelIndex &index) const
{ {
auto *item = AbstractSwitcherItem::fromVariant(index.data()); auto *item = GenericListItem::fromVariant(index.data());
if (item) if (item)
{ {
@ -35,7 +35,7 @@ void SwitcherItemDelegate::paint(QPainter *painter,
QSize SwitcherItemDelegate::sizeHint(const QStyleOptionViewItem &option, QSize SwitcherItemDelegate::sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const const QModelIndex &index) const
{ {
auto *item = AbstractSwitcherItem::fromVariant(index.data()); auto *item = GenericListItem::fromVariant(index.data());
if (item) if (item)
{ {