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