コード例 #1
0
ファイル: Button.cpp プロジェクト: DamnCoder/YAOMEV
	void CButton::setText(const std::string& text, float x, float y){
		_text = text;
		_position.x = x;
		_position.y = y;
		emitTextChanged();
		emitChangedPosition();
	}
コード例 #2
0
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()));
}
コード例 #3
0
ファイル: Button.cpp プロジェクト: DamnCoder/YAOMEV
	void CButton::setFont(const std::string& fontName) {
		_fontName = fontName;
		emitTextChanged();
	}
コード例 #4
0
ファイル: Button.cpp プロジェクト: DamnCoder/YAOMEV
	void CButton::setFontSize(const int size) {
		_fontSize = size;
		emitTextChanged();
	}