image viewer

This commit is contained in:
2019-04-03 16:11:22 +02:00
parent 5aa22fbfdd
commit a643810119
7 changed files with 223 additions and 2 deletions
+30
View File
@@ -476,8 +476,18 @@ void cMainWindow::onThumbnailDoubleClicked(const QModelIndex& index)
if(image.isNull())
return;
connect(&imageViewer, &cImageViewer::imageNext, this, &cMainWindow::onImageNext);
connect(&imageViewer, &cImageViewer::imagePrev, this, &cMainWindow::onImagePrev);
connect(&imageViewer, &cImageViewer::imageFirst, this, &cMainWindow::onImageFirst);
connect(&imageViewer, &cImageViewer::imageLast, this, &cMainWindow::onImageLast);
imageViewer.setImage(&image);
imageViewer.exec();
disconnect(&imageViewer, &cImageViewer::imageNext, this, &cMainWindow::onImageNext);
disconnect(&imageViewer, &cImageViewer::imagePrev, this, &cMainWindow::onImagePrev);
disconnect(&imageViewer, &cImageViewer::imageFirst, this, &cMainWindow::onImageFirst);
disconnect(&imageViewer, &cImageViewer::imageLast, this, &cMainWindow::onImageLast);
}
void cMainWindow::onFolderSelected(const QItemSelection& /*selection*/, const QItemSelection& /*previous*/)
@@ -982,3 +992,23 @@ void cMainWindow::onFilterTagChanged(QList<qint32> idList, bool bAnd)
m_lpThumbnailSortFilterProxyModel->setTagList(idList, bAnd);
showCount();
}
void cMainWindow::onImageNext()
{
qDebug() << "next image";
}
void cMainWindow::onImagePrev()
{
qDebug() << "prev image";
}
void cMainWindow::onImageLast()
{
qDebug() << "last image";
}
void cMainWindow::onImageFirst()
{
qDebug() << "first image";
}