mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
21 lines
489 B
C++
21 lines
489 B
C++
|
#include "widgets/dialogs/switcher/AbstractSwitcherItem.hpp"
|
||
|
|
||
|
#include "Application.hpp"
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
const QSize AbstractSwitcherItem::ICON_SIZE(32, 32);
|
||
|
|
||
|
AbstractSwitcherItem *AbstractSwitcherItem::fromVariant(const QVariant &variant)
|
||
|
{
|
||
|
// See https://stackoverflow.com/a/44503822 .
|
||
|
return static_cast<AbstractSwitcherItem *>(variant.value<void *>());
|
||
|
}
|
||
|
|
||
|
AbstractSwitcherItem::AbstractSwitcherItem(const QIcon &icon)
|
||
|
: icon_(icon)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
} // namespace chatterino
|