improved icons in forums and removed - button because it is not useful

This commit is contained in:
csoler 2018-12-09 21:22:18 +01:00
parent 27264cea0a
commit 983ac7dda9
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 30 additions and 29 deletions

View File

@ -365,7 +365,9 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
connect(ui->threadTreeWidget->selectionModel(), SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)), this, SLOT(changedSelection(const QModelIndex&,const QModelIndex&))); connect(ui->threadTreeWidget->selectionModel(), SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)), this, SLOT(changedSelection(const QModelIndex&,const QModelIndex&)));
connect(ui->viewBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changedViewBox())); connect(ui->viewBox, SIGNAL(currentIndexChanged(int)), this, SLOT(changedViewBox()));
connect(ui->expandButton, SIGNAL(clicked()), this, SLOT(togglethreadview())); //connect(ui->expandButton, SIGNAL(clicked()), this, SLOT(togglethreadview()));
ui->expandButton->hide();
connect(ui->previousButton, SIGNAL(clicked()), this, SLOT(previousMessage())); connect(ui->previousButton, SIGNAL(clicked()), this, SLOT(previousMessage()));
connect(ui->nextButton, SIGNAL(clicked()), this, SLOT(nextMessage())); connect(ui->nextButton, SIGNAL(clicked()), this, SLOT(nextMessage()));
connect(ui->nextUnreadButton, SIGNAL(clicked()), this, SLOT(nextUnreadMessage())); connect(ui->nextUnreadButton, SIGNAL(clicked()), this, SLOT(nextUnreadMessage()));
@ -940,15 +942,15 @@ void GxsForumThreadWidget::togglethreadview()
void GxsForumThreadWidget::togglethreadview_internal() void GxsForumThreadWidget::togglethreadview_internal()
{ {
if (ui->expandButton->isChecked()) { // if (ui->expandButton->isChecked()) {
ui->postText->setVisible(true); ui->postText->setVisible(true);
ui->expandButton->setIcon(QIcon(QString(":/images/edit_remove24.png"))); ui->expandButton->setIcon(QIcon(QString(":/images/edit_remove24.png")));
ui->expandButton->setToolTip(tr("Hide")); ui->expandButton->setToolTip(tr("Hide"));
} else { // } else {
ui->postText->setVisible(false); // ui->postText->setVisible(false);
ui->expandButton->setIcon(QIcon(QString(":/images/edit_add24.png"))); // ui->expandButton->setIcon(QIcon(QString(":/images/edit_add24.png")));
ui->expandButton->setToolTip(tr("Expand")); // ui->expandButton->setToolTip(tr("Expand"));
} // }
} }
void GxsForumThreadWidget::changedVersion() void GxsForumThreadWidget::changedVersion()

View File

@ -239,7 +239,7 @@
</item> </item>
<item> <item>
<layout class="QGridLayout" name="postLayout"> <layout class="QGridLayout" name="postLayout">
<item row="0" column="5"> <item row="0" column="6">
<widget class="QToolButton" name="downloadButton"> <widget class="QToolButton" name="downloadButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -294,7 +294,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="15"> <item row="0" column="16">
<widget class="QPushButton" name="expandButton"> <widget class="QPushButton" name="expandButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -320,21 +320,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="6"> <item row="0" column="10">
<widget class="Line" name="lineLeft">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="0" column="9">
<widget class="Line" name="lineRight"> <widget class="Line" name="lineRight">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="12"> <item row="0" column="13">
<spacer name="postHSpacer"> <spacer name="postHSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -426,31 +419,38 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="11"> <item row="0" column="12">
<widget class="GxsIdLabel" name="by_label"> <widget class="GxsIdLabel" name="by_label">
<property name="text"> <property name="text">
<string notr="true"/> <string notr="true"/>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="10"> <item row="0" column="7">
<widget class="QLabel" name="by_text_label"> <widget class="Line" name="lineLeft">
<property name="text"> <property name="orientation">
<string>By </string> <enum>Qt::Vertical</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="8"> <item row="0" column="9">
<widget class="QComboBox" name="versions_CB"/> <widget class="QComboBox" name="versions_CB"/>
</item> </item>
<item row="0" column="7"> <item row="0" column="8">
<widget class="QLabel" name="time_label"> <widget class="QLabel" name="time_label">
<property name="text"> <property name="text">
<string notr="true"/> <string notr="true"/>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="13"> <item row="0" column="11">
<widget class="QLabel" name="by_text_label">
<property name="text">
<string>By </string>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QToolButton" name="nextUnreadButton"> <widget class="QToolButton" name="nextUnreadButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
@ -465,8 +465,8 @@
<string notr="true"/> <string notr="true"/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../WikiPoos/Wiki_images.qrc"> <iconset resource="../images.qrc">
<normaloff>:/images/arrow-right.png</normaloff>:/images/arrow-right.png</iconset> <normaloff>:/images/start.png</normaloff>:/images/start.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
@ -550,7 +550,6 @@
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../icons.qrc"/> <include location="../icons.qrc"/>
<include location="../WikiPoos/Wiki_images.qrc"/>
<include location="../images.qrc"/> <include location="../images.qrc"/>
</resources> </resources>
<connections/> <connections/>