From 679237a7300c7c55412b56b6bba96229eda1a1ff Mon Sep 17 00:00:00 2001 From: Fred G Date: Tue, 17 May 2016 00:57:22 +0200 Subject: [PATCH 1/2] Add QScrollArea to support resizing the main window Inspired by this forum request: https://forum.bitcraze.io/viewtopic.php?f=11&t=2002 --- src/cfclient/ui/main.ui | 86 +++++++++++++++++++++++++------ src/cfclient/ui/tabs/flightTab.ui | 14 ++--- 2 files changed, 73 insertions(+), 27 deletions(-) diff --git a/src/cfclient/ui/main.ui b/src/cfclient/ui/main.ui index 8ff7cb2b60..e074a9a4a8 100644 --- a/src/cfclient/ui/main.ui +++ b/src/cfclient/ui/main.ui @@ -26,7 +26,7 @@ - 160 + 140 0 @@ -39,7 +39,7 @@ - 115 + 60 0 @@ -49,7 +49,7 @@ - 115 + 50 0 @@ -79,7 +79,7 @@ - 120 + 30 0 @@ -114,13 +114,13 @@ - 120 + 30 0 - 150 + 100 16777215 @@ -150,23 +150,23 @@ - + - Address: + Address: - - - 120 - 0 - - + + + 120 + 0 + + @@ -186,10 +186,62 @@ - - - -1 + + + false + + + QFrame::StyledPanel + + QFrame::Sunken + + + 1 + + + Qt::ScrollBarAsNeeded + + + true + + + + + 0 + 0 + 848 + 495 + + + + + 0 + 0 + + + + + QLayout::SetNoConstraint + + + 0 + + + + + + 0 + 0 + + + + -1 + + + + + diff --git a/src/cfclient/ui/tabs/flightTab.ui b/src/cfclient/ui/tabs/flightTab.ui index 5653fb7337..84b0ece810 100644 --- a/src/cfclient/ui/tabs/flightTab.ui +++ b/src/cfclient/ui/tabs/flightTab.ui @@ -34,7 +34,7 @@ - 320 + 160 0 @@ -54,16 +54,10 @@ - 150 + 0 0 - - - 150 - 16777215 - - <html><head/><body><p>Select what flightmode to use:</p><p> * Safe prevents crashing</p><p> * Crazy does not prevent crashing :)</p></body></html> @@ -236,7 +230,7 @@ - 320 + 160 0 @@ -347,7 +341,7 @@ - 320 + 160 0 From c0b9cbc54f6a80ccb5a1adbcd7b73aa777de075c Mon Sep 17 00:00:00 2001 From: Fred G Date: Fri, 10 Jun 2016 19:41:02 +0200 Subject: [PATCH 2/2] Add Arnaud's suggestions Make default size big enough to not have scroll bars, make scroll box border invisible --- src/cfclient/ui/main.ui | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cfclient/ui/main.ui b/src/cfclient/ui/main.ui index e074a9a4a8..fe1da098d7 100644 --- a/src/cfclient/ui/main.ui +++ b/src/cfclient/ui/main.ui @@ -7,7 +7,7 @@ 0 0 872 - 641 + 671 @@ -26,7 +26,7 @@ - 140 + 80 0 @@ -191,7 +191,7 @@ false - QFrame::StyledPanel + QFrame::NoFrame QFrame::Sunken @@ -210,8 +210,8 @@ 0 0 - 848 - 495 + 852 + 529 @@ -254,7 +254,7 @@ 0 0 872 - 25 + 20