void MsgFormatterWidget::handleBold ()
	{
		CharFormatActor (boost::bind (&QTextCharFormat::setFontWeight,
						_1,
						FormatBold_->isChecked () ? QFont::Bold : QFont::Normal));
	}
Esempio n. 2
0
	void MsgFormatterWidget::handleStrikeThrough ()
	{
		CharFormatActor ([this] (QTextCharFormat *fmt)
				{ fmt->setFontStrikeOut (FormatStrikeThrough_->isChecked ()); });
	}
Esempio n. 3
0
	void MsgFormatterWidget::handleItalic ()
	{
		CharFormatActor ([this] (QTextCharFormat *fmt)
				{ fmt->setFontItalic (FormatItalic_->isChecked ()); });
	}
Esempio n. 4
0
	void MsgFormatterWidget::handleUnderline ()
	{
		CharFormatActor ([this] (QTextCharFormat *fmt)
				{ fmt->setFontUnderline (FormatUnderline_->isChecked ()); });
	}
Esempio n. 5
0
	void MsgFormatterWidget::handleBold ()
	{
		CharFormatActor ([this] (QTextCharFormat *fmt)
				{ fmt->setFontWeight (FormatBold_->isChecked () ? QFont::Bold : QFont::Normal); });
	}