From 4c7a11b639ec94c8a32a9a52e99652c464745037 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 02:07:55 +0300 Subject: Add palette inheritance to other shortcutcontainer classes. --- src/gui/widgets/widget2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/widget2.h') diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index 02107b3c1..9911d48f6 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -36,7 +36,7 @@ class Widget2 { } - ~Widget2() + virtual ~Widget2() { } @@ -56,7 +56,7 @@ class Widget2 return Palette::BLACK; } - void setWidget2(const Widget2 *const widget) + virtual void setWidget2(const Widget2 *const widget) { mPalette = widget ? widget->mPalette : 1; } -- cgit v1.2.3-70-g09d2