diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-04-07 21:14:51 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-04-09 19:06:29 +0000 |
commit | b5ff7aa3a5adf5e03ea1e1190b720158fc4a97a8 (patch) | |
tree | d7783e8d9daf31e02960f266eeb1b0a61f842fe9 /src/gui/windowmenu.cpp | |
parent | cbab9d6d4c3a38ece9bd97ac866b28c4d83ecc1a (diff) | |
download | manaplus-b5ff7aa3a5adf5e03ea1e1190b720158fc4a97a8.tar.gz manaplus-b5ff7aa3a5adf5e03ea1e1190b720158fc4a97a8.tar.bz2 manaplus-b5ff7aa3a5adf5e03ea1e1190b720158fc4a97a8.tar.xz manaplus-b5ff7aa3a5adf5e03ea1e1190b720158fc4a97a8.zip |
Fix all alignment warnings/errors.
Other addButton sections intentionally left misaligned as a test for future fix in nsiqcppstyle.
.. why does it not complain about every such block?
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 7cf4980a6..2e1474bd1 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -56,8 +56,9 @@ WindowMenu::WindowMenu(const Widget2 *const widget) : ActionListener(), SelectionListener(), MouseListener(), - mSkin(theme != nullptr ? theme->load("windowmenu.xml", "", - true, Theme::getThemePath()) : nullptr), + mSkin(theme != nullptr + ? theme->load("windowmenu.xml", "", true, Theme::getThemePath()) + : nullptr), mImageSet(nullptr), mPadding(mSkin != nullptr ? mSkin->getPadding() : 1), mSpacing(mSkin != nullptr ? mSkin->getOption("spacing", 3) : 3), @@ -82,42 +83,47 @@ WindowMenu::WindowMenu(const Widget2 *const widget) : // TRANSLATORS: short button name for who is online window. addButton(N_("ONL"), - 13, - // TRANSLATORS: long button name for who is online window. - _("Who is online"), x, h, InputAction::WINDOW_ONLINE, - Visible_true); + 13, + // TRANSLATORS: long button name for who is online window. + _("Who is online"), x, h, InputAction::WINDOW_ONLINE, + Visible_true); + // TRANSLATORS: short button name for help window. addButton(N_("HLP"), - 0, - // TRANSLATORS: long button name for help window. - _("Help"), x, h, InputAction::WINDOW_HELP, - Visible_true); + 0, + // TRANSLATORS: long button name for help window. + _("Help"), x, h, InputAction::WINDOW_HELP, + Visible_true); + // TRANSLATORS: short button name for quests window. addButton(N_("QE"), - 12, - // TRANSLATORS: long button name for quests window. - _("Quests"), x, h, InputAction::WINDOW_QUESTS, - Visible_true); + 12, + // TRANSLATORS: long button name for quests window. + _("Quests"), x, h, InputAction::WINDOW_QUESTS, + Visible_true); + // TRANSLATORS: short button name for kill stats window. addButton(N_("KS"), - 16, - // TRANSLATORS: long button name for kill stats window. - _("Kill stats"), x, h, InputAction::WINDOW_KILLS, - Visible_true); + 16, + // TRANSLATORS: long button name for kill stats window. + _("Kill stats"), x, h, InputAction::WINDOW_KILLS, + Visible_true); + addButton(":-)", 6, // TRANSLATORS: long button name for emotes window. _("Smilies"), x, h, InputAction::WINDOW_EMOTE_SHORTCUT, Visible_true); + // TRANSLATORS: short button name for chat window. addButton(N_("CH"), - 20, - // TRANSLATORS: longt button name for chat window. - _("Chat"), x, h, InputAction::WINDOW_CHAT, + 20, + // TRANSLATORS: longt button name for chat window. + _("Chat"), x, h, InputAction::WINDOW_CHAT, #ifdef ANDROID - Visible_true); + Visible_true); #else // ANDROID - Visible_false); + Visible_false); #endif // ANDROID // TRANSLATORS: short button name for status window. |