mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 10:22:15 -07:00
implement thing
This commit is contained in:
parent
f335fae900
commit
63df984860
2 changed files with 16 additions and 0 deletions
|
|
@ -131,6 +131,13 @@ void TabReplays::retranslateUi()
|
||||||
aDeleteRemoteReplay->setText(tr("Delete"));
|
aDeleteRemoteReplay->setText(tr("Delete"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TabReplays::actLocalDoubleClick(const QModelIndex &curLeft)
|
||||||
|
{
|
||||||
|
if (!localDirModel->isDir(curLeft)) {
|
||||||
|
actOpenLocalReplay();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TabReplays::actOpenLocalReplay()
|
void TabReplays::actOpenLocalReplay()
|
||||||
{
|
{
|
||||||
QModelIndexList curLefts = localDirView->selectionModel()->selectedRows();
|
QModelIndexList curLefts = localDirView->selectionModel()->selectedRows();
|
||||||
|
|
@ -192,6 +199,13 @@ void TabReplays::actDeleteLocalReplay()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TabReplays::actRemoteDoubleClick(const QModelIndex &curRight)
|
||||||
|
{
|
||||||
|
if (serverDirView->getReplay(curRight)) {
|
||||||
|
actOpenRemoteReplay();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TabReplays::actOpenRemoteReplay()
|
void TabReplays::actOpenRemoteReplay()
|
||||||
{
|
{
|
||||||
auto const curRights = serverDirView->getSelectedReplays();
|
auto const curRights = serverDirView->getSelectedReplays();
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,12 @@ private:
|
||||||
QAction *aOpenLocalReplay, *aNewLocalFolder, *aDeleteLocalReplay;
|
QAction *aOpenLocalReplay, *aNewLocalFolder, *aDeleteLocalReplay;
|
||||||
QAction *aOpenRemoteReplay, *aDownload, *aKeep, *aDeleteRemoteReplay;
|
QAction *aOpenRemoteReplay, *aDownload, *aKeep, *aDeleteRemoteReplay;
|
||||||
private slots:
|
private slots:
|
||||||
|
void actLocalDoubleClick(const QModelIndex &curLeft);
|
||||||
void actOpenLocalReplay();
|
void actOpenLocalReplay();
|
||||||
void actNewLocalFolder();
|
void actNewLocalFolder();
|
||||||
void actDeleteLocalReplay();
|
void actDeleteLocalReplay();
|
||||||
|
|
||||||
|
void actRemoteDoubleClick(const QModelIndex &curLeft);
|
||||||
void actOpenRemoteReplay();
|
void actOpenRemoteReplay();
|
||||||
void openRemoteReplayFinished(const Response &r);
|
void openRemoteReplayFinished(const Response &r);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue