mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed compilation
This commit is contained in:
parent
c5aa3bd90f
commit
2ad4236f10
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue