- Timestamp:
- May 6, 2006, 11:11:57 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/gui/qt_gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/gui/qt_gui/gui_audio.cc
r7549 r7551 44 44 { 45 45 QtGuiCheckBox* fullscreen = new QtGuiCheckBox("Enabled", true); 46 layout->addWidget(fullscreen, 0, 0);46 layout->addWidget(fullscreen, 0, 1); 47 47 48 QtGuiCheckBox* wireframe = new QtGuiCheckBox("Test");49 layout->addWidget(wireframe, 1, 0);50 48 49 QLabel* soundCardLabel = new QLabel("Soundcard"); 50 layout->addWidget(soundCardLabel, 1,1); 51 51 QtGuiComboBox* soundCard = new QtGuiComboBox("SoundCard"); 52 layout->addWidget(soundCard, 2, 0);52 layout->addWidget(soundCard, 2, 1); 53 53 54 QtGuiSlider* channels = new QtGuiSlider("Channels"); 55 layout->addWidget(channels, 3, 0); 54 QtGuiSlider* channels = new QtGuiSlider("Channels", Qt::Vertical); 55 layout->addWidget(channels, 0, 0, 3, 1); 56 QLabel* channelsLabel = new QLabel("Channels"); 57 layout->addWidget(channelsLabel, 3,0); 56 58 59 60 QLabel* musicLabel = new QLabel("Music Volume"); 61 layout->addWidget(musicLabel, 0, 2); 57 62 QtGuiSlider* musicVolume = new QtGuiSlider("Music-Volume"); 58 layout->addWidget(musicVolume,0, 1); 63 layout->addWidget(musicVolume, 1, 2); 64 65 66 QLabel* effectsLabel = new QLabel("Effects Volume"); 67 layout->addWidget(effectsLabel, 2,2); 59 68 QtGuiSlider* effectVolume = new QtGuiSlider("Effects-Volume"); 60 layout->addWidget(effectVolume, 0, 2);69 layout->addWidget(effectVolume, 3, 2); 61 70 } 62 71 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.cc
r7549 r7551 47 47 48 48 49 QtGuiSlider::QtGuiSlider(const std::string& name )50 : QSlider( ), Saveable(name)49 QtGuiSlider::QtGuiSlider(const std::string& name, Qt::Orientation orientation) 50 : QSlider(orientation), Saveable(name) 51 51 { 52 52 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui_elements.h
r7549 r7551 48 48 49 49 public: 50 QtGuiSlider(const std::string& name );50 QtGuiSlider(const std::string& name, Qt::Orientation orientation = Qt::Horizontal); 51 51 virtual ~QtGuiSlider(); 52 52
Note: See TracChangeset
for help on using the changeset viewer.