From 943bd9b50e8e69d7fae81ad0190414faa025cd91 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 6 Sep 2020 17:27:33 +0200 Subject: [PATCH] removed explicit maximum size that is not needed anymore and causes a bug on some Qt implementations --- .../gui/gxschannels/GxsChannelPostThumbnail.cpp | 6 ------ .../gxschannels/GxsChannelPostsWidgetWithModel.cpp | 14 +++++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.cpp index 4c1c782ee..66dc02e34 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.cpp @@ -140,14 +140,8 @@ void ChannelPostThumbnailView::init(const RsGxsChannelPost& post) font.setBold(true); mPostTitle->setFont(font); - mPostTitle->setMaximumWidth(W); - mPostTitle->setMaximumHeight(3*fm.height()); mPostTitle->setWordWrap(true); - mPostTitle->adjustSize(); - - setMinimumHeight(H + mPostTitle->height() + 0.5*fm.height()); - setMaximumHeight(H + mPostTitle->height() + 0.5*fm.height()); } setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::MinimumExpanding); diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp index 72e18684e..8bc1c0250 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp @@ -145,13 +145,13 @@ void ChannelPostDelegate::paint(QPainter * painter, const QStyleOptionViewItem & pixmap = pixmap.copy(QRect(0,0,w.actualSize().width(),w.actualSize().height())); -// if(index.row()==0 && index.column()==0) -// { -// QFile file("yourFile.png"); -// file.open(QIODevice::WriteOnly); -// pixmap.save(&file, "PNG"); -// file.close(); -// } +// if(index.row()==0 && index.column()==0) +// { +// QFile file("yourFile.png"); +// file.open(QIODevice::WriteOnly); +// pixmap.save(&file, "PNG"); +// file.close(); +// } if(mUseGrid || index.column()==0) {