From cee3477734ed73d53e4a6943d4934a0f5c9cc592 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 30 Mar 2016 17:06:34 +0200 Subject: [PATCH] Fixed the default splitter expanding of People Dialog --- retroshare-gui/src/gui/Identity/IdDialog.cpp | 9 ++- retroshare-gui/src/gui/Identity/IdDialog.ui | 78 ++++++++++++++++---- 2 files changed, 68 insertions(+), 19 deletions(-) diff --git a/retroshare-gui/src/gui/Identity/IdDialog.cpp b/retroshare-gui/src/gui/Identity/IdDialog.cpp index 8b0c58fb9..7f8a8824c 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdDialog.cpp @@ -199,12 +199,13 @@ IdDialog::IdDialog(QWidget *parent) : ui->headerTextLabel->setText(tr("People")); /* Initialize splitter */ - ui->splitter->setStretchFactor(0, 1); - ui->splitter->setStretchFactor(1, 0); - + ui->splitter->setStretchFactor(0, 0); + ui->splitter->setStretchFactor(1, 1); + + /*remove QList sizes; sizes << width() << 500; // Qt calculates the right sizes - ui->splitter->setSizes(sizes); + ui->splitter->setSizes(sizes);*/ /* Add filter types */ ui->filterComboBox->addItem(tr("All"), RSID_FILTER_ALL); diff --git a/retroshare-gui/src/gui/Identity/IdDialog.ui b/retroshare-gui/src/gui/Identity/IdDialog.ui index 921dc7891..70746c5f0 100644 --- a/retroshare-gui/src/gui/Identity/IdDialog.ui +++ b/retroshare-gui/src/gui/Identity/IdDialog.ui @@ -19,8 +19,20 @@ - - + + + 0 + + + 0 + + + 0 + + + 0 + + @@ -35,7 +47,16 @@ QFrame::Sunken - + + 2 + + + 2 + + + 2 + + 2 @@ -56,7 +77,7 @@ - :/images/user/friends24.png + :/images/user/friends24.png true @@ -96,7 +117,7 @@ Qt::NoFocus - + :/icons/help_64.png:/icons/help_64.png @@ -110,7 +131,7 @@ - + Qt::Horizontal @@ -126,7 +147,16 @@ QFrame::Sunken - + + 2 + + + 2 + + + 2 + + 2 @@ -153,7 +183,7 @@ New ID - + :/images/identity/identity_create_32.png:/images/identity/identity_create_32.png @@ -222,7 +252,7 @@ Reputation - AlignLeft|AlignVCenter + AlignLeading|AlignVCenter @@ -295,7 +325,16 @@ - + + 6 + + + 6 + + + 6 + + 6 @@ -469,7 +508,16 @@ - + + 6 + + + 6 + + + 6 + + 6 @@ -654,7 +702,7 @@ p, li { white-space: pre-wrap; } - + :/images/edit_16.png:/images/edit_16.png @@ -666,7 +714,7 @@ p, li { white-space: pre-wrap; } - + :/images/delete.png:/images/delete.png @@ -675,7 +723,7 @@ p, li { white-space: pre-wrap; } - + :/images/toaster/chat.png:/images/toaster/chat.png @@ -712,7 +760,7 @@ p, li { white-space: pre-wrap; } idTreeWidget - +