void CButton::setText(const std::string& text, float x, float y){ _text = text; _position.x = x; _position.y = y; emitTextChanged(); emitChangedPosition(); }
CPlainWriteDisplay::CPlainWriteDisplay(CWriteWindow* parentWindow, QWidget* parent) : QTextEdit(parentWindow ? parentWindow : parent), CWriteDisplay(parentWindow) { setAcceptRichText(false); setAcceptDrops(true); viewport()->setAcceptDrops(true); connect(this, SIGNAL(textChanged()), connectionsProxy(), SLOT(emitTextChanged())); }
void CButton::setFont(const std::string& fontName) { _fontName = fontName; emitTextChanged(); }
void CButton::setFontSize(const int size) { _fontSize = size; emitTextChanged(); }