From 4153d453779dc8906a1f7acda4cc695a933614fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Mon, 7 Jan 2013 06:57:47 +0100 Subject: [PATCH] Favorite players: add buttons to move players up and down --- qt/fav_players.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qt/fav_players.cpp b/qt/fav_players.cpp index 0628c7f..8c13cd8 100644 --- a/qt/fav_players.cpp +++ b/qt/fav_players.cpp @@ -73,6 +73,13 @@ FavPlayersDialog::FavPlayersDialog(QWidget *parent) QPushButton *buttonRemove = new QPushButton(_q("Remove player")); hLayout->addWidget(buttonRemove); hLayout->addStretch(); + QPushButton *buttonMoveUp = new QPushButton(QIcon(":/images/go-up.png"), ""); + buttonMoveUp->setToolTip(_q("Move selection upwards")); + hLayout->addWidget(buttonMoveUp); + QPushButton *buttonMoveDown = new QPushButton(QIcon(":/images/go-down.png"), ""); + buttonMoveDown->setToolTip(_q("Move selection downwards")); + hLayout->addWidget(buttonMoveDown); + hLayout->addStretch(); QPushButton *buttonImport = new QPushButton(_q("CSV Import...")); hLayout->addWidget(buttonImport); QObject::connect(buttonImport, SIGNAL(clicked()), @@ -90,6 +97,7 @@ FavPlayersDialog::FavPlayersDialog(QWidget *parent) m_helper = new PlayersTableHelper(this, tableFav, buttonAdd, buttonRemove, true); m_helper->addPopupRemoveAction(); + m_helper->setUpDown(buttonMoveUp, buttonMoveDown); m_helper->addPlayers(m_helper->getFavPlayers()); }