diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
commit | e3b9d60938b1299f2f66e68ff291060654c58d66 (patch) | |
tree | 28425cf579903d6735faa801a6968b56abdc7230 /src/gui/buyselldialog.cpp | |
parent | 10c8e7da87de2219fad19fd899e97257164e4830 (diff) | |
download | plus-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.gz plus-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.bz2 plus-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.xz plus-e3b9d60938b1299f2f66e68ff291060654c58d66.zip |
Move some hardcoded paddings to themes.
Diffstat (limited to 'src/gui/buyselldialog.cpp')
-rw-r--r-- | src/gui/buyselldialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/buyselldialog.cpp b/src/gui/buyselldialog.cpp index 429f62a85..1afcf96a1 100644 --- a/src/gui/buyselldialog.cpp +++ b/src/gui/buyselldialog.cpp @@ -64,7 +64,8 @@ void BuySellDialog::init() { N_("Buy"), N_("Sell"), N_("Cancel"), nullptr }; - int x = 10, y = 10; + const int buttonPadding = getOption("buttonpadding", 10); + int x = buttonPadding, y = buttonPadding; for (const char **curBtn = buttonNames; *curBtn; curBtn++) { @@ -73,7 +74,7 @@ void BuySellDialog::init() mBuyButton = btn; // For focus request btn->setPosition(x, y); add(btn); - x += btn->getWidth() + 10; + x += btn->getWidth() + buttonPadding; } mBuyButton->requestFocus(); |