mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
00ff1e72e2
This is a flavour thing btw, but if you do it with some variables you should do it with all of them. This helps avoid variable name clashes too that often happens in constructors
25 lines
499 B
C++
25 lines
499 B
C++
#include "word.h"
|
|
|
|
Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip)
|
|
{
|
|
this->m_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->m_image = NULL;
|
|
this->m_text = text;
|
|
m_isImage = false;
|
|
m_type = type;
|
|
m_copyText = copytext;
|
|
m_tooltip = tooltip;
|
|
}
|
|
|
|
Word::~Word()
|
|
{
|
|
}
|