From 749a34d8154eff45ca41a0cb9073a6d6e8edeb87 Mon Sep 17 00:00:00 2001 From: RetroPooh Date: Sun, 22 Oct 2017 15:55:08 +0300 Subject: [PATCH] add text labels to post buttons in forums and channels; fix version selector placement --- .../gui/gxschannels/GxsChannelPostsWidget.cpp | 2 ++ .../gui/gxschannels/GxsChannelPostsWidget.ui | 6 ++++++ .../gui/gxsforums/GxsForumThreadWidget.cpp | 3 +++ .../src/gui/gxsforums/GxsForumThreadWidget.ui | 20 +++++++++++++++---- 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.cpp index 56cf042a5..b3f5662b4 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.cpp @@ -75,6 +75,8 @@ GxsChannelPostsWidget::GxsChannelPostsWidget(const RsGxsGroupId &channelId, QWid connect(ui->subscribeToolButton, SIGNAL(subscribe(bool)), this, SLOT(subscribeGroup(bool))); connect(NotifyQt::getInstance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged())); + ui->postButton->setText(tr("Add new post")); + /* add filter actions */ ui->filterLineEdit->addFilter(QIcon(), tr("Title"), FILTER_TITLE, tr("Search Title")); ui->filterLineEdit->addFilter(QIcon(), tr("Message"), FILTER_MSG, tr("Search Message")); diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.ui b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.ui index 47f98bcdf..7e9b478ac 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.ui +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidget.ui @@ -169,6 +169,9 @@ Post to Channel + + Add new post + :/images/mail_send.png:/images/mail_send.png @@ -179,6 +182,9 @@ 16 + + Qt::ToolButtonTextBesideIcon + true diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp index f08b1f61f..2a0f59ceb 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp @@ -210,6 +210,9 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget connect(ui->newmessageButton, SIGNAL(clicked()), this, SLOT(replytoforummessage())); connect(ui->newthreadButton, SIGNAL(clicked()), this, SLOT(createthread())); + ui->newmessageButton->setText(tr("Reply")); + ui->newthreadButton->setText(tr("New thread")); + connect(ui->threadTreeWidget, SIGNAL(itemSelectionChanged()), this, SLOT(changedThread())); connect(ui->threadTreeWidget, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this, SLOT(clickedThread(QTreeWidgetItem*,int))); connect(ui->viewBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changedViewBox())); diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.ui b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.ui index 789616228..571e99c01 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.ui +++ b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.ui @@ -84,6 +84,9 @@ Start new Thread for Selected Forum + + New Thread + :/images/mail_new.png:/images/mail_new.png @@ -94,6 +97,9 @@ 16 + + Qt::ToolButtonTextBesideIcon + true @@ -306,8 +312,8 @@ - 24 - 24 + 16777215 + 16777215 @@ -316,10 +322,16 @@ Reply Message + + Reply + :/images/mail_reply.png:/images/mail_reply.png + + Qt::ToolButtonTextBesideIcon + true @@ -358,7 +370,7 @@ - + Qt::Vertical @@ -471,7 +483,7 @@ - +