From 3ae7d2eff3d20c3042ddac4fd4f205812079b94e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Oct 2012 18:31:26 +0300 Subject: Extend checkbox 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 --- src/guichan/widgets/checkbox.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/guichan') diff --git a/src/guichan/widgets/checkbox.cpp b/src/guichan/widgets/checkbox.cpp index 58710409b..dcac59d17 100644 --- a/src/guichan/widgets/checkbox.cpp +++ b/src/guichan/widgets/checkbox.cpp @@ -123,10 +123,6 @@ namespace gcn void CheckBox::adjustSize() { - const int height = getFont()->getHeight(); - - setHeight(height); - setWidth(getFont()->getWidth(mCaption) + height + height / 2); } void CheckBox::toggleSelected() -- cgit v1.2.3-60-g2f50