From 0153e8fa499b7bbdd712339bfb3921ead15a37a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 02:23:16 +0300 Subject: Add palette inheritance to label class. --- src/gui/specialswindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/specialswindow.cpp') diff --git a/src/gui/specialswindow.cpp b/src/gui/specialswindow.cpp index b1d105aeb..05aea6b96 100644 --- a/src/gui/specialswindow.cpp +++ b/src/gui/specialswindow.cpp @@ -210,16 +210,16 @@ SpecialEntry::SpecialEntry(SpecialInfo *const info) : add(mIcon); if (info) - mNameLabel = new Label(info->name); + mNameLabel = new Label(this, info->name); else - mNameLabel = new Label(""); + mNameLabel = new Label(this, ""); mNameLabel->setPosition(35, 0); add(mNameLabel); if (info && info->hasLevel) { - mLevelLabel = new Label(toString(info->level)); + mLevelLabel = new Label(this, toString(info->level)); mLevelLabel->setPosition(getWidth() - mLevelLabel->getWidth(), 0); add(mLevelLabel); } -- cgit v1.2.3-70-g09d2