From 7b36ab49435d014168d261868414d71687d43235 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Mon, 6 Nov 2017 22:35:59 -0500 Subject: [PATCH] Tweaked layout of SelectProductDialog. - Tweaks to layout so that it resizes without artifacts. - Removed parent window so that window manager will not center dialog on parent, which makes resizing difficult depending on size and location of parent window. --- glabels/File.cpp | 2 +- glabels/ui/SelectProductDialog.ui | 101 ++++++++++++++++-------------- translations/glabels_C.ts | 28 ++++----- 3 files changed, 69 insertions(+), 62 deletions(-) diff --git a/glabels/File.cpp b/glabels/File.cpp index a7c6216..be92437 100644 --- a/glabels/File.cpp +++ b/glabels/File.cpp @@ -46,7 +46,7 @@ namespace glabels /// bool File::newLabel( MainWindow *window ) { - SelectProductDialog dialog( window ); + SelectProductDialog dialog; dialog.exec(); const Template* tmplate = dialog.tmplate(); diff --git a/glabels/ui/SelectProductDialog.ui b/glabels/ui/SelectProductDialog.ui index 7da79b3..f8426b2 100644 --- a/glabels/ui/SelectProductDialog.ui +++ b/glabels/ui/SelectProductDialog.ui @@ -7,12 +7,21 @@ 0 0 997 - 661 + 823 + + + 0 + 0 + + gLabels - Select Product + + true + @@ -95,15 +104,10 @@ - 146 - 87 + 0 + 0 - - - 9 - - false @@ -117,29 +121,33 @@ false - - 3 - - - - ISO sizes + + + 3 - - - - - - US sizes - - - - - - - Other - - + + + + ISO sizes + + + + + + + US sizes + + + + + + + Other + + + + @@ -170,7 +178,16 @@ - + + 0 + + + 0 + + + 0 + + 0 @@ -202,7 +219,7 @@ 20 - 40 + 3 @@ -253,6 +270,12 @@ + + + 140 + 0 + + false @@ -299,22 +322,6 @@ - - pageSizeOtherCheck - clicked() - SelectProductDialog - onPageSizeCheckClicked() - - - 75 - 207 - - - 8 - 168 - - - pageSizeUsCheck clicked() diff --git a/translations/glabels_C.ts b/translations/glabels_C.ts index bd5822d..484a0f4 100644 --- a/translations/glabels_C.ts +++ b/translations/glabels_C.ts @@ -587,72 +587,72 @@ SelectProductDialog - + gLabels - Select Product - + Search all - + Search - + Filter by paper size - + ISO sizes - + US sizes - + Other - + Filter by category - + All - + Selected - + Search entire product database. - + Recent - + Select from recently used products. - + &Cancel