configure_audio: Move combo box index setting to their own functions

Keeps the individual behaviors in their own functions, and cleanly
separate. We can also do a little better by converting the relevant IDs
within the core to a QString only once, instead of converting every
string into a std::string.
This commit is contained in:
Lioncash
2018-10-02 20:17:14 -04:00
parent 57e47bae32
commit 1c7c798e9e
2 changed files with 25 additions and 11 deletions

View File

@ -26,6 +26,8 @@ public slots:
private:
void setConfiguration();
void setOutputSinkFromSinkID();
void setAudioDeviceFromDeviceID();
void setVolumeIndicatorText(int percentage);
std::unique_ptr<Ui::ConfigureAudio> ui;