summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSocapex <philippe_groarke@yahoo.ca>2013-03-12 15:25:03 -0400
committerAndrei Karas <akaras@inbox.ru>2013-03-12 23:22:27 +0300
commit72d99267699fa38d3af1ea8e538eacc4e5d42acc (patch)
treec751c15af71c64c0fde4fe4ce5656fbf4580849d
parent6bed41eceeca254491fdc30215930e2e78140ac6 (diff)
downloadmanaverse-72d99267699fa38d3af1ea8e538eacc4e5d42acc.tar.gz
manaverse-72d99267699fa38d3af1ea8e538eacc4e5d42acc.tar.bz2
manaverse-72d99267699fa38d3af1ea8e538eacc4e5d42acc.tar.xz
manaverse-72d99267699fa38d3af1ea8e538eacc4e5d42acc.zip
Added close button to Did You Know window.
-rw-r--r--data/themes/jewelry/didyouknow.xml6
-rw-r--r--src/gui/didyouknowwindow.cpp1
2 files changed, 4 insertions, 3 deletions
diff --git a/data/themes/jewelry/didyouknow.xml b/data/themes/jewelry/didyouknow.xml
index aaa7d6c63..3bc11247e 100644
--- a/data/themes/jewelry/didyouknow.xml
+++ b/data/themes/jewelry/didyouknow.xml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<skinset name="Default" image="window.png">
<widget type="Window" xpos="260" ypos="0">
- <option name="captionoffsetx" value="20" />
+ <option name="captionoffsetx" value="20" />
<option name="captionoffsety" value="7" />
<option name="titlebarHeight" value="35" />
<option name="titlebarBold" value="1" />
<option name="padding" value="10" />
- <option name="stickySpacing" value="24" />
+ <option name="stickySpacing" value="6" />
<!-- Top Row -->
<part type="top-left-corner" xpos="0" ypos="0" width="30" height="53" />
@@ -26,6 +26,6 @@
<part type="closeImage" xpos="-163" ypos="0" width="22" height="22" />
<part type="closeImageHighlighted" xpos="-138" ypos="0" width="22" height="22" />
<part type="stickyImageUp" xpos="-130" ypos="51" width="19" height="22" />
- <part type="stickyImageDown" xpos="-115" ypos="51" width="19" height="22" />
+ <part type="stickyImageDown" xpos="-99" ypos="51" width="19" height="22" />
</widget>
</skinset>
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index 8589a0a9a..c9a3fcad7 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -61,6 +61,7 @@ DidYouKnowWindow::DidYouKnowWindow():
setMinHeight(220);
setContentSize(455, 350);
setWindowName("DidYouKnow");
+ setCloseButton(true);
setResizable(true);
setStickyButtonLock(true);