const& params++, no need to rebuild menu when layout changes

This commit is contained in:
Mathias Panzenböck
2014-02-16 06:30:55 +01:00
parent a1f4cdedb3
commit 1ab111f3a5
4 changed files with 19 additions and 10 deletions

View File

@ -84,7 +84,7 @@ LayoutEdit::LayoutEdit( LayoutManager* l ): QWidget(NULL) {
this->show();
}
void LayoutEdit::setLayout(QString layout) {
void LayoutEdit::setLayout(const QString &layout) {
//change the text,
cmbLayouts->setCurrentIndex(lm->getLayoutNames().indexOf(layout));
//update all the JoyPadWidgets.