From 7a910ba14e55268df7c81b638a1bcff2e2d4e5c7 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Fri, 13 Apr 2018 23:07:24 -0400 Subject: [PATCH] Use QLineEdit's built-in clear button instead of our own in SelectProductDialog. - Clear button was introduced in Qt 5.2 --- glabels/SelectProductDialog.cpp | 9 -------- glabels/SelectProductDialog.h | 1 - glabels/ui/SelectProductDialog.ui | 37 ++----------------------------- translations/glabels_C.ts | 22 +++++++++--------- 4 files changed, 13 insertions(+), 56 deletions(-) diff --git a/glabels/SelectProductDialog.cpp b/glabels/SelectProductDialog.cpp index 2a406a6..990b9fc 100644 --- a/glabels/SelectProductDialog.cpp +++ b/glabels/SelectProductDialog.cpp @@ -130,15 +130,6 @@ namespace glabels } - /// - /// Search Entry Text Changed Slot - /// - void SelectProductDialog::onSearchClearButtonClicked() - { - searchEntry->setText( "" ); - } - - /// /// Page Size Check Clicked Slot /// diff --git a/glabels/SelectProductDialog.h b/glabels/SelectProductDialog.h index 3806b30..90539ff 100644 --- a/glabels/SelectProductDialog.h +++ b/glabels/SelectProductDialog.h @@ -57,7 +57,6 @@ namespace glabels private slots: void onModeTabChanged(); void onSearchEntryTextChanged(); - void onSearchClearButtonClicked(); void onPageSizeCheckClicked(); void onCategoryRadioClicked(); void onCategoryCheckClicked(); diff --git a/glabels/ui/SelectProductDialog.ui b/glabels/ui/SelectProductDialog.ui index f8426b2..b7f8c48 100644 --- a/glabels/ui/SelectProductDialog.ui +++ b/glabels/ui/SelectProductDialog.ui @@ -63,31 +63,14 @@ - 180 + 220 0 Search - - - - - - - - - - :/icons/16x16/actions/edit-clear.svg:/icons/16x16/actions/edit-clear.svg - - - - 16 - 16 - - - + true @@ -386,22 +369,6 @@ - - searchClearButton - clicked() - SelectProductDialog - onSearchClearButtonClicked() - - - 231 - 103 - - - 190 - 7 - - - searchEntry textChanged(QString) diff --git a/translations/glabels_C.ts b/translations/glabels_C.ts index 665f97a..967ea58 100644 --- a/translations/glabels_C.ts +++ b/translations/glabels_C.ts @@ -697,57 +697,57 @@ - + 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