summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 02:55:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit4356b56d927afc83685897f0e6482f576a0ae09a (patch)
treeba04d4e8d2f33559b9385a89b9be528079289871 /src/gui/widgets
parent4f20c92940b9cbb8e87d0765860a81eb3f7d2733 (diff)
downloadmanaplus-4356b56d927afc83685897f0e6482f576a0ae09a.tar.gz
manaplus-4356b56d927afc83685897f0e6482f576a0ae09a.tar.bz2
manaplus-4356b56d927afc83685897f0e6482f576a0ae09a.tar.xz
manaplus-4356b56d927afc83685897f0e6482f576a0ae09a.zip
Add palette inheritance to textpreview class.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/textpreview.cpp5
-rw-r--r--src/gui/widgets/textpreview.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/textpreview.cpp b/src/gui/widgets/textpreview.cpp
index 92ab9e4b9..47cd71dfa 100644
--- a/src/gui/widgets/textpreview.cpp
+++ b/src/gui/widgets/textpreview.cpp
@@ -33,9 +33,10 @@
float TextPreview::mAlpha = 1.0;
-TextPreview::TextPreview(const std::string &text) :
+TextPreview::TextPreview(const Widget2 *const widget,
+ const std::string &text) :
gcn::Widget(),
- Widget2(),
+ Widget2(widget),
mFont(gui->getFont()),
mText(text),
mTextColor(&getThemeColor(Theme::TEXT)),
diff --git a/src/gui/widgets/textpreview.h b/src/gui/widgets/textpreview.h
index c2a46930e..5e84900ff 100644
--- a/src/gui/widgets/textpreview.h
+++ b/src/gui/widgets/textpreview.h
@@ -38,7 +38,7 @@ class TextPreview final : public gcn::Widget,
public Widget2
{
public:
- TextPreview(const std::string &text);
+ TextPreview(const Widget2 *const widget, const std::string &text);
A_DELETE_COPY(TextPreview)