#include <config.h>
#include "GuiSelectionManager.h"
+#include "qt_helpers.h"
#include "support/debug.h"
return true;
}
else if (keyPressed == Qt::Key_Right) {
- selectedLV->setFocus();
- selectedLV->setCurrentIndex(selectedLV->currentIndex());
+ focusAndHighlight(selectedLV);
event->accept();
return true;
}
}
}
else if (keyPressed == Qt::Key_Left) {
- availableLV->setFocus();
- availableLV->setCurrentIndex(availableLV->currentIndex());
+ focusAndHighlight(availableLV);
event->accept();
return true;
}