Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7856 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
May 25, 2006, 3:49:16 PM (19 years ago)
Author:
bensch
Message:

trunk: qt_gui: more as sugested by patrick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/qt_gui/gui_audio.cc

    r7855 r7856  
    5050
    5151      QLabel* soundCardLabel = new QLabel("Soundcard");
    52       layout->addWidget(soundCardLabel, 0,1);
     52      layout->addWidget(soundCardLabel, 1,0);
    5353      QtGuiComboBox* soundCard = new QtGuiComboBox(CONFIG_NAME_SOUNDCARD, this, "");
    54       layout->addWidget(soundCard, 0, 2);
     54      layout->addWidget(soundCard, 1, 1, 1, 2);
    5555      soundCard->addItem("Not supportet yet");
    5656
     
    5858
    5959      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);
    6161      QLabel* channelsLabel = new QLabel("Channels");
    62       layout->addWidget(channelsLabel, 3,3);
     62      layout->addWidget(channelsLabel, 5,3);
    6363      QLCDNumber* channelNumber = new QLCDNumber();
    6464      connect(channels, SIGNAL(valueChanged(int)), channelNumber, SLOT(display(int)));
    65       layout->addWidget(channelNumber, 2,3);
     65      layout->addWidget(channelNumber, 4, 3);
    6666
    6767
    6868      QLabel* musicLabel = new QLabel("Music Volume");
    69       layout->addWidget(musicLabel, 1, 0);
     69      layout->addWidget(musicLabel, 2, 0);
    7070      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
    7277
    7378
    7479      QLabel* effectsLabel = new QLabel("Effects Volume");
    75       layout->addWidget(effectsLabel, 3, 0);
     80      layout->addWidget(effectsLabel, 4, 0);
    7681      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
    7888    }
    7989
Note: See TracChangeset for help on using the changeset viewer.