コード例 #1
0
	void MsgFormatterWidget::handleParaAlignment ()
	{
		Qt::Alignment alignment = static_cast<Qt::Alignment> (sender ()->
					property ("Alignment").toInt ());
		BlockFormatActor ([alignment] (QTextBlockFormat* fmt)
				{ fmt->setAlignment (alignment); });
	}
コード例 #2
0
	void MsgFormatterWidget::handleParaAlignment ()
	{
		Qt::Alignment alignment = static_cast<Qt::Alignment> (sender ()->
					property ("Alignment").toInt ());
		BlockFormatActor (boost::bind (&QTextBlockFormat::setAlignment,
						_1,
						alignment));
	}