diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-26 21:50:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-26 21:50:46 +0300 |
commit | 03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (patch) | |
tree | e60a1fd194180fea9dd37553c97ab2e28f4cdfc7 /src/gui/widgets/tabs/setup_theme.cpp | |
parent | 6d95f9aeff5dcfc791520e0ffb10cc34ecc348a0 (diff) | |
download | manaverse-03f4d4beaaa2ea4ac99aa746460283d4ca644a3f.tar.gz manaverse-03f4d4beaaa2ea4ac99aa746460283d4ca644a3f.tar.bz2 manaverse-03f4d4beaaa2ea4ac99aa746460283d4ca644a3f.tar.xz manaverse-03f4d4beaaa2ea4ac99aa746460283d4ca644a3f.zip |
Remove default parameters from dropdown.
Diffstat (limited to 'src/gui/widgets/tabs/setup_theme.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_theme.cpp | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp index e8baed86f..6f4e237a6 100644 --- a/src/gui/widgets/tabs/setup_theme.cpp +++ b/src/gui/widgets/tabs/setup_theme.cpp @@ -62,57 +62,69 @@ Setup_Theme::Setup_Theme(const Widget2 *const widget) : // TRANSLATORS: theme settings label mThemeLabel(new Label(this, _("Gui theme"))), mThemesModel(new ThemesModel), - mThemeDropDown(new DropDown(this, mThemesModel)), + mThemeDropDown(new DropDown(this, mThemesModel, + false, Modal_false, nullptr, std::string())), mTheme(config.getStringValue("theme")), mInfo(Theme::loadInfo(mTheme)), mFontsModel(new FontsModel), // TRANSLATORS: theme settings label mFontLabel(new Label(this, _("Main Font"))), - mFontDropDown(new DropDown(this, mFontsModel)), + mFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mFont(config.getStringValue("font")), mLangListModel(new LangListModel), // TRANSLATORS: theme settings label mLangLabel(new Label(this, _("Language"))), - mLangDropDown(new DropDown(this, mLangListModel, true)), + mLangDropDown(new DropDown(this, mLangListModel, + true, Modal_false, nullptr, std::string())), mLang(config.getStringValue("lang")), // TRANSLATORS: theme settings label mBoldFontLabel(new Label(this, _("Bold font"))), - mBoldFontDropDown(new DropDown(this, mFontsModel)), + mBoldFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mBoldFont(config.getStringValue("boldFont")), // TRANSLATORS: theme settings label mParticleFontLabel(new Label(this, _("Particle font"))), - mParticleFontDropDown(new DropDown(this, mFontsModel)), + mParticleFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mParticleFont(config.getStringValue("particleFont")), // TRANSLATORS: theme settings label mHelpFontLabel(new Label(this, _("Help font"))), - mHelpFontDropDown(new DropDown(this, mFontsModel)), + mHelpFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mHelpFont(config.getStringValue("helpFont")), // TRANSLATORS: theme settings label mSecureFontLabel(new Label(this, _("Secure font"))), - mSecureFontDropDown(new DropDown(this, mFontsModel)), + mSecureFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mSecureFont(config.getStringValue("secureFont")), // TRANSLATORS: theme settings label mNpcFontLabel(new Label(this, _("Npc font"))), - mNpcFontDropDown(new DropDown(this, mFontsModel)), + mNpcFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mNpcFont(config.getStringValue("npcFont")), // TRANSLATORS: theme settings label mJapanFontLabel(new Label(this, _("Japanese font"))), - mJapanFontDropDown(new DropDown(this, mFontsModel)), + mJapanFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mJapanFont(config.getStringValue("japanFont")), // TRANSLATORS: theme settings label mChinaFontLabel(new Label(this, _("Chinese font"))), - mChinaFontDropDown(new DropDown(this, mFontsModel)), + mChinaFontDropDown(new DropDown(this, mFontsModel, + false, Modal_false, nullptr, std::string())), mChinaFont(config.getStringValue("chinaFont")), mFontSizeListModel(new FontSizeChoiceListModel), // TRANSLATORS: theme settings label mFontSizeLabel(new Label(this, _("Font size"))), mFontSize(config.getIntValue("fontSize")), - mFontSizeDropDown(new DropDown(this, mFontSizeListModel)), + mFontSizeDropDown(new DropDown(this, mFontSizeListModel, + false, Modal_false, nullptr, std::string())), mNpcFontSizeListModel(new FontSizeChoiceListModel), // TRANSLATORS: theme settings label mNpcFontSizeLabel(new Label(this, _("Npc font size"))), mNpcFontSize(config.getIntValue("npcfontSize")), - mNpcFontSizeDropDown(new DropDown(this, mNpcFontSizeListModel)), + mNpcFontSizeDropDown(new DropDown(this, mNpcFontSizeListModel, + false, Modal_false, nullptr, std::string())), // TRANSLATORS: button name with information about selected theme mInfoButton(new Button(this, _("i"), ACTION_INFO, this)), mThemeInfo() |