diff -r b39f433f8ab4 -r 924840dad6a0 QTfrontend/ui/widget/themeprompt.cpp --- a/QTfrontend/ui/widget/themeprompt.cpp Wed Mar 13 21:02:26 2013 -0400 +++ b/QTfrontend/ui/widget/themeprompt.cpp Fri Mar 15 11:12:42 2013 +0100 @@ -35,6 +35,27 @@ #include "ThemeModel.h" #include "themeprompt.h" + +void ThemeListView::moveUp() +{ + setCurrentIndex(moveCursor(QAbstractItemView::MoveUp, Qt::NoModifier)); +} + +void ThemeListView::moveDown() +{ + setCurrentIndex(moveCursor(QAbstractItemView::MoveDown, Qt::NoModifier)); +} + +void ThemeListView::moveLeft() +{ + setCurrentIndex(moveCursor(QAbstractItemView::MoveLeft, Qt::NoModifier)); +} + +void ThemeListView::moveRight() +{ + setCurrentIndex(moveCursor(QAbstractItemView::MoveRight, Qt::NoModifier)); +} + ThemePrompt::ThemePrompt(int currentIndex, QWidget* parent) : QDialog(parent) { setModal(true); @@ -128,22 +149,22 @@ void ThemePrompt::moveUp() { - list->setCurrentIndex(list->moveCursor(QAbstractItemView::MoveUp, Qt::NoModifier)); + list->moveUp(); } void ThemePrompt::moveDown() { - list->setCurrentIndex(list->moveCursor(QAbstractItemView::MoveDown, Qt::NoModifier)); + list->moveDown(); } void ThemePrompt::moveLeft() { - list->setCurrentIndex(list->moveCursor(QAbstractItemView::MoveLeft, Qt::NoModifier)); + list->moveLeft(); } void ThemePrompt::moveRight() { - list->setCurrentIndex(list->moveCursor(QAbstractItemView::MoveRight, Qt::NoModifier)); + list->moveRight(); } void ThemePrompt::onAccepted()