From 3a40adfa9157009fec206bfbc36f514bd08b5af8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 3 Oct 2014 12:38:00 -0500 Subject: Fix inability to clear TQPushButton icons once set This resolves Bug 1857 --- src/styles/qcommonstyle.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp index 0bad0a5..8d8c4c7 100644 --- a/src/styles/qcommonstyle.cpp +++ b/src/styles/qcommonstyle.cpp @@ -404,6 +404,9 @@ const QStyleControlElementData &populateControlElementDataFromWidget(const QWidg if (iconSet) { ceData.iconSet = *iconSet; } + else { + ceData.iconSet = QIconSet(); + } if (fgPixmap) { ceData.fgPixmap = *fgPixmap; } @@ -538,6 +541,9 @@ const QStyleControlElementData &populateControlElementDataFromWidget(const QWidg if (iconSet) { ceData.iconSet = *iconSet; } + else { + ceData.iconSet = QIconSet(); + } } } // Complex Controls -- cgit v1.2.1