2017-01-05 16:07:20 +01:00
|
|
|
#include "word.h"
|
|
|
|
|
|
|
|
Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip)
|
|
|
|
{
|
|
|
|
this->image = image;
|
|
|
|
this->text = NULL;
|
|
|
|
m_isImage = true;
|
|
|
|
m_type = type;
|
|
|
|
m_copyText = new QString(copytext);
|
|
|
|
m_tooltip = new QString(tooltip);
|
|
|
|
}
|
|
|
|
|
|
|
|
Word::Word(const QString& text, Type type, const QString& copytext, const QString& tooltip)
|
|
|
|
{
|
|
|
|
this->image = NULL;
|
|
|
|
this->text = new QString(text);
|
|
|
|
m_isImage = false;
|
|
|
|
m_type = type;
|
|
|
|
m_copyText = new QString(copytext);
|
|
|
|
m_tooltip = new QString(tooltip);
|
|
|
|
}
|
|
|
|
|
|
|
|
Word::~Word()
|
|
|
|
{
|
2017-01-05 16:22:55 +01:00
|
|
|
delete text;
|
2017-01-05 16:07:20 +01:00
|
|
|
delete m_copyText;
|
|
|
|
delete m_tooltip;
|
|
|
|
}
|