From 709b323b03a423657330aaa5a8443a1a410baf50 Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 24 Oct 2020 14:19:34 +0200 Subject: [PATCH] improved layout in channel post widget --- .../gui/gxschannels/CreateGxsChannelMsg.cpp | 5 +-- .../gui/gxschannels/CreateGxsChannelMsg.ui | 33 ++++++++----------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp b/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp index d0ef0d7aa..6c0a81e3b 100644 --- a/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp +++ b/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp @@ -83,7 +83,6 @@ CreateGxsChannelMsg::CreateGxsChannelMsg(const RsGxsGroupId &cId, RsGxsMessageId channelpostButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/icons/png/comment.png")); attachmentsButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/icons/png/attachements.png")); addThumbnailButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/icons/png/add-image.png")); - //addfilepushButton->setIcon(FilesDefs::getIconFromQtResourcePath(":/icons/png/add-file.png")); aspectRatio_CB->setItemIcon(0,FilesDefs::getIconFromQtResourcePath(":/icons/svg/ratio-auto.svg")); aspectRatio_CB->setItemIcon(1,FilesDefs::getIconFromQtResourcePath(":/icons/svg/ratio-1-1.svg")); @@ -160,13 +159,15 @@ void CreateGxsChannelMsg::changeAspectRatio(int s) break; } } + void CreateGxsChannelMsg::reject() { - if(QMessageBox::warning(nullptr,tr("Close this window?"),tr("Do you really want to discard your post?"),QMessageBox::Ok,QMessageBox::Cancel) == QMessageBox::Cancel) + if(QMessageBox::warning(nullptr,tr("Close this window?"),tr("Do you really want to discard your post?"),QMessageBox::Yes,QMessageBox::No) == QMessageBox::No) return; QDialog::reject(); } + void CreateGxsChannelMsg::contextMenu(QPoint /*point*/) { QList links ; diff --git a/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.ui b/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.ui index 36c70e2a7..bc8574587 100644 --- a/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.ui +++ b/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.ui @@ -82,7 +82,7 @@ false - 1 + 0 @@ -246,6 +246,19 @@ p, li { white-space: pre-wrap; } + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -288,12 +301,6 @@ p, li { white-space: pre-wrap; } :/icons/png/add-file.png:/icons/png/add-file.png - - - 24 - 24 - - @@ -320,12 +327,6 @@ p, li { white-space: pre-wrap; } :/icons/png/copy.png:/icons/png/copy.png - - - 24 - 24 - - @@ -352,12 +353,6 @@ p, li { white-space: pre-wrap; } :/icons/png/cancel.png:/icons/png/cancel.png - - - 24 - 24 - -