summaryrefslogtreecommitdiff
path: root/src/guichan
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-17 20:39:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-17 20:41:27 +0300
commit5a9a9d113f88ab4e3f9e570397a744760d4520c1 (patch)
tree68d5b87dbb37f556ad74b23d09d073c41a73c6c5 /src/guichan
parent098901c3c49ddaed12ecdcf1739a5f680b457dfe (diff)
downloadmanaverse-5a9a9d113f88ab4e3f9e570397a744760d4520c1.tar.gz
manaverse-5a9a9d113f88ab4e3f9e570397a744760d4520c1.tar.bz2
manaverse-5a9a9d113f88ab4e3f9e570397a744760d4520c1.tar.xz
manaverse-5a9a9d113f88ab4e3f9e570397a744760d4520c1.zip
Extend radio button theming.
New options: padding - padding from all sides except left imagePadding - padding from left before image imageSize - image size for computation width spacing - space between image and text width = imagePadding + imageSize + spacing + text width + padding height = padding + text height + padding
Diffstat (limited to 'src/guichan')
-rw-r--r--src/guichan/widgets/radiobutton.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/guichan/widgets/radiobutton.cpp b/src/guichan/widgets/radiobutton.cpp
index 9f19b00a7..8cca3feac 100644
--- a/src/guichan/widgets/radiobutton.cpp
+++ b/src/guichan/widgets/radiobutton.cpp
@@ -183,9 +183,5 @@ namespace gcn
void RadioButton::adjustSize()
{
- const int height = getFont()->getHeight();
-
- setHeight(height);
- setWidth(getFont()->getWidth(getCaption()) + height + height / 2);
}
}