diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-07 22:09:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-07 22:09:11 +0300 |
commit | b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (patch) | |
tree | ee27a5a1ace7e5dbc588466dc623013e4d5cea99 /src/gui/setup_audio.cpp | |
parent | 7d3059516fc25134d0d29b497e546f2846162399 (diff) | |
download | mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.gz mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.bz2 mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.xz mv-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.zip |
Improve constructors in some classes.
Diffstat (limited to 'src/gui/setup_audio.cpp')
-rw-r--r-- | src/gui/setup_audio.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/setup_audio.cpp b/src/gui/setup_audio.cpp index b649bc23d..27fceee92 100644 --- a/src/gui/setup_audio.cpp +++ b/src/gui/setup_audio.cpp @@ -39,7 +39,8 @@ class SoundsModel : public NamesModel { public: - SoundsModel() + SoundsModel() : + NamesModel() { mNames.push_back(gettext("(no sound)")); Theme::fillSoundsList(mNames); @@ -49,7 +50,10 @@ public: { } }; -Setup_Audio::Setup_Audio() +Setup_Audio::Setup_Audio() : + SetupTabScroll(), + mSoundModel(new SoundsModel()), + mChannelsList(new SetupItemNames()) { setName(_("Audio")); @@ -58,8 +62,6 @@ Setup_Audio::Setup_Audio() ContainerPlacer place = h.getPlacer(0, 0); place(0, 0, mScroll, 10, 10); - mSoundModel = new SoundsModel(); - new SetupItemLabel(_("Basic settings"), "", this); new SetupItemCheckBox(_("Enable Audio"), "", "sound", this, "soundEvent"); @@ -82,7 +84,6 @@ Setup_Audio::Setup_Audio() new SetupItemIntTextField(_("Audio frequency"), "", "audioFrequency", this, "audioFrequencyEvent", 14000, 192000); - mChannelsList = new SetupItemNames(); mChannelsList->push_back(_("mono")); mChannelsList->push_back(_("stereo")); mChannelsList->push_back(_("surround")); |