#include "wordpart.h" #include "word.h" WordPart::WordPart(Word &word, int x, int y, const QString ©Text, bool allowTrailingSpace) : m_word(word) , copyText(copyText) , x(x) , y(y) , width(word.getWidth()) , height(word.getHeight()) , _trailingSpace(word.hasTrailingSpace() & allowTrailingSpace) , text(word.isText() ? m_word.getText() : QString()) { } WordPart::WordPart(Word &word, int x, int y, int width, int height, const QString ©Text, const QString &customText, bool allowTrailingSpace) : m_word(word) , copyText(copyText) , x(x) , y(y) , width(width) , height(height) , _trailingSpace(word.hasTrailingSpace() & allowTrailingSpace) , text(customText) { }