summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/VButton.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/VButton.cpp b/src/VButton.cpp
index c5763ab..9dffe26 100644
--- a/src/VButton.cpp
+++ b/src/VButton.cpp
@@ -71,15 +71,9 @@ void VButton::setColor(const TQColor &color)
// Need to set TQColorGroup::Button color as well, otherwise the actual
// color of the key does not change until the next restart of the application.
TQPalette plt = palette();
- TQColorGroup cg = plt.active();
- cg.setColor(TQColorGroup::Button, color);
- plt.setActive(cg);
- cg = plt.inactive();
- cg.setColor(TQColorGroup::Button, color);
- plt.setInactive(cg);
- cg = plt.disabled();
- cg.setColor(TQColorGroup::Button, color);
- plt.setDisabled(cg);
+ plt.setColor(TQPalette::Active, TQColorGroup::Button, color);
+ plt.setColor(TQPalette::Inactive, TQColorGroup::Button, color);
+ plt.setColor(TQPalette::Disabled, TQColorGroup::Button, color);
setPalette(plt);
}