diff --git a/retroshare-gui/src/gui/Posted/PostedListDialog.cpp b/retroshare-gui/src/gui/Posted/PostedListDialog.cpp index 59a420876..55c0b5bcd 100644 --- a/retroshare-gui/src/gui/Posted/PostedListDialog.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListDialog.cpp @@ -75,6 +75,13 @@ PostedListDialog::PostedListDialog(QWidget *parent) mLastSortMethod = RsPosted::TopRankType; // to be different. mPostIndex = 0; mPostShow = POSTED_DEFAULT_LISTING_LENGTH; + + /* Initialize group tree */ + QToolButton *newTopicButton = new QToolButton(this); + newTopicButton->setIcon(QIcon(":/images/posted_add_24.png")); + newTopicButton->setToolTip(tr("Create New Topic")); + connect(newTopicButton, SIGNAL(clicked()), this, SLOT(newTopic())); + ui.groupTreeWidget->addToolButton(newTopicButton); /* create posted tree */ yourTopics = ui.groupTreeWidget->addCategoryItem(tr("My Topics"), QIcon(IMAGE_FOLDER), true); @@ -84,7 +91,6 @@ PostedListDialog::PostedListDialog(QWidget *parent) ui.hotSortButton->setChecked(true); - connect(ui.newTopicButton, SIGNAL(clicked()), this, SLOT(newTopic())); connect(ui.submitPostButton, SIGNAL(clicked()), this, SLOT(newPost())); } diff --git a/retroshare-gui/src/gui/Posted/PostedListDialog.ui b/retroshare-gui/src/gui/Posted/PostedListDialog.ui index 99bf37f33..917dc9602 100644 --- a/retroshare-gui/src/gui/Posted/PostedListDialog.ui +++ b/retroshare-gui/src/gui/Posted/PostedListDialog.ui @@ -24,31 +24,7 @@ - - - - Qt::Horizontal - - - - 36 - 21 - - - - - - - - New Topic - - - - :/images/posted_add_32.png:/images/posted_add_32.png - - - - + diff --git a/retroshare-gui/src/gui/Posted/Posted_images.qrc b/retroshare-gui/src/gui/Posted/Posted_images.qrc index 05e5d2315..c32ba0b3b 100644 --- a/retroshare-gui/src/gui/Posted/Posted_images.qrc +++ b/retroshare-gui/src/gui/Posted/Posted_images.qrc @@ -5,6 +5,7 @@ images/posted_32.png images/posted_48.png images/posted_64.png + images/posted_add_24.png images/posted_add_32.png images/posted_add_64.png images/hot_24.png diff --git a/retroshare-gui/src/gui/Posted/images/posted_add_24.png b/retroshare-gui/src/gui/Posted/images/posted_add_24.png new file mode 100644 index 000000000..87ecdde14 Binary files /dev/null and b/retroshare-gui/src/gui/Posted/images/posted_add_24.png differ