summaryrefslogtreecommitdiff
path: root/src/gui/widgets/desktop.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-11 21:05:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-11 23:47:01 +0300
commit4f967c32a2ff7e6e2cebcc3d3f7b6aaad7465c2f (patch)
tree73463ea6cb20a670665de746105419dbf394f926 /src/gui/widgets/desktop.h
parent86b8c903900a59f99b2e1f02232476d600ae5a12 (diff)
downloadmanaplus-4f967c32a2ff7e6e2cebcc3d3f7b6aaad7465c2f.tar.gz
manaplus-4f967c32a2ff7e6e2cebcc3d3f7b6aaad7465c2f.tar.bz2
manaplus-4f967c32a2ff7e6e2cebcc3d3f7b6aaad7465c2f.tar.xz
manaplus-4f967c32a2ff7e6e2cebcc3d3f7b6aaad7465c2f.zip
Show copyright at background.
Diffstat (limited to 'src/gui/widgets/desktop.h')
-rw-r--r--src/gui/widgets/desktop.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/widgets/desktop.h b/src/gui/widgets/desktop.h
index f0fd500ea..f3b0cd371 100644
--- a/src/gui/widgets/desktop.h
+++ b/src/gui/widgets/desktop.h
@@ -24,12 +24,14 @@
#include "gui/widgets/container.h"
+#include "gui/widgets/linkhandler.h"
+
#include "listeners/widgetlistener.h"
#include "localconsts.h"
+class BrowserBox;
class Image;
-class Label;
class Skin;
/**
@@ -46,7 +48,8 @@ class Skin;
* \ingroup GUI
*/
class Desktop final : public Container,
- private WidgetListener
+ public LinkHandler,
+ public WidgetListener
{
public:
explicit Desktop(const Widget2 *const widget);
@@ -66,11 +69,13 @@ class Desktop final : public Container,
void postInit();
+ void handleLink(const std::string &link,
+ MouseEvent *event) override final;
private:
void setBestFittingWallpaper();
Image *mWallpaper;
- Label *mVersionLabel;
+ BrowserBox *mVersionLabel;
Skin *mSkin;
Color mBackgroundColor;
Color mBackgroundGrayColor;