This commit is contained in:
fourtf
2017-01-05 20:49:33 +01:00
parent a8006cf68c
commit 4d96dcc5e3
13 changed files with 210 additions and 149 deletions
+6 -6
View File
@@ -1,27 +1,27 @@
#include "word.h"
// Image word
Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip)
Word::Word(LazyLoadedImage* image, Type type, const QString& copytext, const QString& tooltip, const Link& link)
: m_image(image)
, m_text()
, m_isImage(true)
, m_type(type)
, m_copyText(copytext)
, m_tooltip(tooltip)
, m_color()
, m_link(link)
{
}
// Text word
Word::Word(const QString& text, Type type, const QString& copytext, const QString& tooltip)
Word::Word(const QString& text, Type type, const QColor& color, const QString& copytext, const QString& tooltip, const Link& link)
: m_image(nullptr)
, m_text(text)
, m_isImage(true)
, m_type(type)
, m_copyText(copytext)
, m_tooltip(tooltip)
{
}
Word::~Word()
, m_color(color)
, m_link(link)
{
}