mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
30 lines
813 B
C++
30 lines
813 B
C++
#include "wordpart.h"
|
|
#include "word.h"
|
|
|
|
WordPart::WordPart(Word &word, int x, int y, const QString ©Text,
|
|
bool allowTrailingSpace)
|
|
: 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)
|
|
, m_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)
|
|
, m_copyText(copyText)
|
|
, m_x(x)
|
|
, m_y(y)
|
|
, m_width(width)
|
|
, m_height(height)
|
|
, m_trailingSpace(word.hasTrailingSpace() & allowTrailingSpace)
|
|
, m_text(customText)
|
|
{
|
|
}
|