summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 00:40:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:19 +0300
commitaac2975ea79f75c403cf31ff37ac15c6ba601782 (patch)
tree8886d3193f68c7c5ddc728033d61ed08f2405466 /src/gui/widgets
parent24373c5d2ab784edc253d904be1c10eacced135f (diff)
downloadplus-aac2975ea79f75c403cf31ff37ac15c6ba601782.tar.gz
plus-aac2975ea79f75c403cf31ff37ac15c6ba601782.tar.bz2
plus-aac2975ea79f75c403cf31ff37ac15c6ba601782.tar.xz
plus-aac2975ea79f75c403cf31ff37ac15c6ba601782.zip
move virtual member calls from desktop constuctor into postInit.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/desktop.cpp6
-rw-r--r--src/gui/widgets/desktop.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index 07a49c420..9bbe91cbb 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -57,7 +57,6 @@ Desktop::Desktop(const Widget2 *const widget) :
}
mVersionLabel->setBackgroundColor(getThemeColor(Theme::BACKGROUND, 128));
- add(mVersionLabel, 25, 2);
}
Desktop::~Desktop()
@@ -69,6 +68,11 @@ Desktop::~Desktop()
}
}
+void Desktop::postInit()
+{
+ add(mVersionLabel, 25, 2);
+}
+
void Desktop::reloadWallpaper()
{
Wallpaper::loadWallpapers();
diff --git a/src/gui/widgets/desktop.h b/src/gui/widgets/desktop.h
index d0a853efb..3d7c6bdf5 100644
--- a/src/gui/widgets/desktop.h
+++ b/src/gui/widgets/desktop.h
@@ -62,6 +62,8 @@ class Desktop final : public Container, private gcn::WidgetListener
void draw(gcn::Graphics *graphics) override;
+ void postInit();
+
private:
void setBestFittingWallpaper();