mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
d93c56a355
commit
f44de1146a
@ -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;
|
||||
|
@ -126,6 +126,7 @@ private:
|
||||
void setupEditActions();
|
||||
void setupViewActions();
|
||||
void setupInsertActions();
|
||||
void setupFormatActions();
|
||||
|
||||
bool load(const QString &f);
|
||||
bool maybeSave();
|
||||
|
Loading…
Reference in New Issue
Block a user