mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
Favorite players: add buttons to move players up and down
This commit is contained in:
parent
dd75556902
commit
4153d45377
1 changed files with 8 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue