2017-01-11 01:08:20 +01:00
|
|
|
#include "wordpart.h"
|
|
|
|
#include "word.h"
|
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
WordPart::WordPart(Word &word, int x, int y, const QString ©Text,
|
|
|
|
bool allowTrailingSpace)
|
2017-01-11 01:08:20 +01:00
|
|
|
: m_word(word)
|
|
|
|
, m_copyText(copyText)
|
|
|
|
, m_x(x)
|
|
|
|
, m_y(y)
|
|
|
|
, m_width(word.width())
|
|
|
|
, m_height(word.height())
|
|
|
|
, m_trailingSpace(word.hasTrailingSpace() & allowTrailingSpace)
|
2017-01-15 16:38:30 +01:00
|
|
|
, m_text(word.isText() ? m_word.getText() : QString())
|
2017-01-11 01:08:20 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-01-15 16:38:30 +01:00
|
|
|
WordPart::WordPart(Word &word, int x, int y, int width, int height,
|
|
|
|
const QString ©Text, const QString &customText,
|
|
|
|
bool allowTrailingSpace)
|
|
|
|
: m_word(word)
|
|
|
|
, m_copyText(copyText)
|
|
|
|
, m_x(x)
|
|
|
|
, m_y(y)
|
|
|
|
, m_width(width)
|
|
|
|
, m_height(height)
|
|
|
|
, m_trailingSpace(word.hasTrailingSpace() & allowTrailingSpace)
|
|
|
|
, m_text(customText)
|
2017-01-11 01:08:20 +01:00
|
|
|
{
|
|
|
|
}
|