redesign Create Blog Msg Publisher with html Formating features and fixed textSize formating for Message Composer

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2388 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-22 14:20:40 +00:00
parent e6678bdf9a
commit 9e584e6723
11 changed files with 1668 additions and 557 deletions

View file

@ -783,9 +783,12 @@ void ChanMsgDialog::textFamily(const QString &f)
void ChanMsgDialog::textSize(const QString &p)
{
QTextCharFormat fmt;
fmt.setFontPointSize(p.toFloat());
mergeFormatOnWordOrSelection(fmt);
qreal pointSize = p.toFloat();
if (p.toFloat() > 0) {
QTextCharFormat fmt;
fmt.setFontPointSize(pointSize);
mergeFormatOnWordOrSelection(fmt);
}
}
void ChanMsgDialog::textStyle(int styleIndex)