- Moved display button and new forum/channel button into GroupTreeWidget

- Fixed size of display button in FriendsDialog
- Updated english translation

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6645 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-08-29 20:32:14 +00:00
parent 4ee3bec87e
commit 21eed4c956
13 changed files with 137 additions and 265 deletions

View file

@ -21,6 +21,7 @@
#include <QMenu>
#include <QMessageBox>
#include <QToolButton>
#include "GxsForumsDialog.h"
#include "GxsForumGroupDialog.h"
@ -81,7 +82,6 @@ GxsForumsDialog::GxsForumsDialog(QWidget *parent)
// no widget to add yet
connect(ui.forumTreeWidget, SIGNAL(treeCustomContextMenuRequested(QPoint)), this, SLOT(forumListCustomPopupMenu(QPoint)));
connect(ui.newForumButton, SIGNAL(clicked()), this, SLOT(newforum()));
connect(ui.forumTreeWidget, SIGNAL(treeItemActivated(QString)), this, SLOT(changedForum(QString)));
connect(ui.forumTreeWidget->treeWidget(), SIGNAL(signalMouseMiddleButtonClicked(QTreeWidgetItem*)), this, SLOT(forumTreeMiddleButtonClicked(QTreeWidgetItem*)));
connect(ui.threadTabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(threadTabCloseRequested(int)));
@ -92,7 +92,11 @@ GxsForumsDialog::GxsForumsDialog(QWidget *parent)
connect(ui.todoPushButton, SIGNAL(clicked()), this, SLOT(todo()));
/* Initialize group tree */
ui.forumTreeWidget->initDisplayMenu(ui.displayButton);
QToolButton *newForumButton = new QToolButton(this);
newForumButton->setIcon(QIcon(":/images/new_forum16.png"));
newForumButton->setToolTip(tr("Create Forum"));
connect(newForumButton, SIGNAL(clicked()), this, SLOT(newforum()));
ui.forumTreeWidget->addToolButton(newForumButton);
/* Set initial size the splitter */
QList<int> sizes;