- Timestamp:
- May 25, 2006, 3:49:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/qt_gui/gui_audio.cc
r7855 r7856 50 50 51 51 QLabel* soundCardLabel = new QLabel("Soundcard"); 52 layout->addWidget(soundCardLabel, 0,1);52 layout->addWidget(soundCardLabel, 1,0); 53 53 QtGuiComboBox* soundCard = new QtGuiComboBox(CONFIG_NAME_SOUNDCARD, this, ""); 54 layout->addWidget(soundCard, 0, 2);54 layout->addWidget(soundCard, 1, 1, 1, 2); 55 55 soundCard->addItem("Not supportet yet"); 56 56 … … 58 58 59 59 QtGuiSlider* channels = new QtGuiSlider(CONFIG_NAME_AUDIO_CHANNELS, this, 16, Qt::Vertical); 60 layout->addWidget(channels, 0, 3, 2, 1);60 layout->addWidget(channels, 1, 3, 3, 1); 61 61 QLabel* channelsLabel = new QLabel("Channels"); 62 layout->addWidget(channelsLabel, 3,3);62 layout->addWidget(channelsLabel, 5,3); 63 63 QLCDNumber* channelNumber = new QLCDNumber(); 64 64 connect(channels, SIGNAL(valueChanged(int)), channelNumber, SLOT(display(int))); 65 layout->addWidget(channelNumber, 2,3);65 layout->addWidget(channelNumber, 4, 3); 66 66 67 67 68 68 QLabel* musicLabel = new QLabel("Music Volume"); 69 layout->addWidget(musicLabel, 1, 0);69 layout->addWidget(musicLabel, 2, 0); 70 70 QtGuiSlider* musicVolume = new QtGuiSlider(CONFIG_NAME_MUSIC_VOLUME, this, 80); 71 layout->addWidget(musicVolume, 2, 0, 1, 2); 71 layout->addWidget(musicVolume, 3, 0, 1, 2); 72 73 QLCDNumber* musicNumber = new QLCDNumber(); 74 connect(musicVolume, SIGNAL(valueChanged(int)), musicNumber, SLOT(display(int))); 75 layout->addWidget(musicNumber, 2, 1); 76 72 77 73 78 74 79 QLabel* effectsLabel = new QLabel("Effects Volume"); 75 layout->addWidget(effectsLabel, 3, 0);80 layout->addWidget(effectsLabel, 4, 0); 76 81 QtGuiSlider* effectVolume = new QtGuiSlider(CONFIG_NAME_EFFECTS_VOLUME, this, 80); 77 layout->addWidget(effectVolume, 4, 0, 1, 2); 82 layout->addWidget(effectVolume, 5, 0, 1, 2); 83 84 QLCDNumber* effectsNumber = new QLCDNumber(); 85 connect(effectVolume, SIGNAL(valueChanged(int)), effectsNumber, SLOT(display(int))); 86 layout->addWidget(effectsNumber, 4, 1); 87 78 88 } 79 89
Note: See TracChangeset
for help on using the changeset viewer.