diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 02:07:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 4c7a11b639ec94c8a32a9a52e99652c464745037 (patch) | |
tree | b17c6a46a06eb00f385347c8147a00cded21c3b6 /src/gui/widgets/widget2.h | |
parent | 376c7e4a46c2c18d117db49b143a3f138d6a81c7 (diff) | |
download | manaplus-4c7a11b639ec94c8a32a9a52e99652c464745037.tar.gz manaplus-4c7a11b639ec94c8a32a9a52e99652c464745037.tar.bz2 manaplus-4c7a11b639ec94c8a32a9a52e99652c464745037.tar.xz manaplus-4c7a11b639ec94c8a32a9a52e99652c464745037.zip |
Add palette inheritance to other shortcutcontainer classes.
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r-- | src/gui/widgets/widget2.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |