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) {