Merge pull request #2148 from defnax/ui-fix-2

GUI fixes
This commit is contained in:
csoler 2020-12-09 23:03:29 +01:00 committed by GitHub
commit a8ca7a559f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 14 deletions

View File

@ -35,6 +35,7 @@
#include "gui/MainWindow.h"
#include "gui/Identity/IdDialog.h"
#include "PhotoView.h"
#include "gui/Posted/PostedDialog.h"
#include "ui_PostedItem.h"
#include <retroshare/rsposted.h>
@ -266,14 +267,14 @@ void BasePostedItem::loadComments()
if (mFeedHolder)
{
QString title = QString::fromUtf8(mPost.mMeta.mMsgName.c_str());
/* window will destroy itself! */
PostedDialog *postedDialog = dynamic_cast<PostedDialog*>(MainWindow::getPage(MainWindow::Posted));
#warning (csoler) Posted item versions not handled yet. When it is the case, start here.
if (!postedDialog)
return ;
QVector<RsGxsMessageId> post_versions ;
post_versions.push_back(mPost.mMeta.mMsgId) ;
mFeedHolder->openComments(0, mPost.mMeta.mGroupId, post_versions,mPost.mMeta.mMsgId, title);
MainWindow::showWindow(MainWindow::Posted);
postedDialog->navigate(mPost.mMeta.mGroupId, mPost.mMeta.mMsgId) ;
}
}
void BasePostedItem::readToggled(bool checked)
@ -740,4 +741,5 @@ void PostedItem::toggleNotes()
ui->frame_notes->hide();
}
emit sizeChanged(this);
}

View File

@ -611,6 +611,9 @@
<height>600</height>
</size>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
@ -662,6 +665,9 @@
</item>
<item row="2" column="0">
<widget class="QFrame" name="frame_notes">
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
@ -686,6 +692,9 @@
</property>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="notes">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>

View File

@ -10,6 +10,9 @@
<height>262</height>
</rect>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="PeerItemGLayout">
<property name="leftMargin">
<number>1</number>
@ -32,7 +35,7 @@
</sizepolicy>
</property>
<property name="autoFillBackground">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
@ -494,7 +497,7 @@
</layout>
<action name="actionNew_Message">
<property name="icon">
<iconset resource="../images.qrc">
<iconset>
<normaloff>:/images/mail_send.png</normaloff>:/images/mail_send.png</iconset>
</property>
<property name="text">

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1196</width>
<height>491</height>
<width>1015</width>
<height>246</height>
</rect>
</property>
<layout class="QGridLayout">
@ -32,7 +32,7 @@
</sizepolicy>
</property>
<property name="autoFillBackground">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
@ -165,6 +165,9 @@
</item>
<item row="1" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QToolButton" name="friendRequesttoolButton">
<property name="focusPolicy">
@ -277,7 +280,7 @@
<string>Start Chat</string>
</property>
<property name="icon">
<iconset resource="../images.qrc">
<iconset>
<normaloff>:/images/chat_24.png</normaloff>:/images/chat_24.png</iconset>
</property>
<property name="toolButtonStyle">
@ -556,7 +559,7 @@
</layout>
<action name="actionNew_Message">
<property name="icon">
<iconset resource="../images.qrc">
<iconset>
<normaloff>:/images/mail_send.png</normaloff>:/images/mail_send.png</iconset>
</property>
<property name="text">

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>1231</width>
<width>701</width>
<height>529</height>
</rect>
</property>