added Format Menu entry

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3003 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-25 22:30:25 +00:00
parent d93c56a355
commit f44de1146a
2 changed files with 15 additions and 0 deletions

View File

@ -134,6 +134,8 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WFlags flags)
actionAlignJustify->setShortcut(Qt::CTRL + Qt::Key_J);
actionAlignJustify->setCheckable(true);
setupFormatActions();
/*ui.comboStyle->addItem("Standard");
ui.comboStyle->addItem("Bullet List (Disc)");
ui.comboStyle->addItem("Bullet List (Circle)");
@ -687,6 +689,18 @@ void MessageComposer::setupInsertActions()
}
void MessageComposer::setupFormatActions()
{
QMenu *menu = new QMenu(tr("&Format"), this);
menuBar()->addMenu(menu);
menu->addAction(actionAlignLeft);
menu->addAction(actionAlignCenter);
menu->addAction(actionAlignRight);
menu->addAction(actionAlignJustify);
}
void MessageComposer::textBold()
{
QTextCharFormat fmt;

View File

@ -126,6 +126,7 @@ private:
void setupEditActions();
void setupViewActions();
void setupInsertActions();
void setupFormatActions();
bool load(const QString &f);
bool maybeSave();