mirror-chatterino2/word.cpp
2017-01-05 16:53:13 +01:00

25 lines
493 B
C++

#include "word.h"
Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip)
{
this->image = image;
m_isImage = true;
m_type = type;
m_copyText = copytext;
m_tooltip = tooltip;
}
Word::Word(const QString& text, Type type, const QString& copytext, const QString& tooltip)
{
this->image = NULL;
this->text = text;
m_isImage = false;
m_type = type;
m_copyText = copytext;
m_tooltip = tooltip;
}
Word::~Word()
{
}