Skip to content

Commit

Permalink
fix: Right click on the photo classification detail page to add a sli…
Browse files Browse the repository at this point in the history
…deshow function

  Right click on the photo classification detail page to add a slideshow function

Log: Right click on the photo classification detail page to add a slideshow function
Bug: https://pms.uniontech.com/bug-view-232599.html
  • Loading branch information
starhcq authored and rb-union committed Dec 5, 2023
1 parent a48dc25 commit c8c2160
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/album/albumview/albumview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ void AlbumView::initConnections()
connect(m_pLeftListView, &LeftListView::sigSlideShow, this, &AlbumView::onSlideShowCustom);
connect(m_customThumbnailList, &ThumbnailListView::sigSlideShow, this, &AlbumView::onSlideShowCustom);
connect(m_favoriteThumbnailList, &ThumbnailListView::sigSlideShow, this, &AlbumView::onSlideShowFav);
if (m_classDetailThumbnailList)
connect(m_classDetailThumbnailList, &ThumbnailListView::sigSlideShow, this, &AlbumView::onSlideShowClassDetail);
connect(dApp->signalM, &SignalManager::sigUpdataAlbumRightTitle, this, &AlbumView::onUpdataAlbumRightTitle);
connect(dApp->signalM, &SignalManager::sigUpdateImageLoader, this, &AlbumView::updateRightView);
connect(dApp->signalM, &SignalManager::sigUpdateTrashImageLoader, this, &AlbumView::updateRightView);
Expand Down Expand Up @@ -1485,6 +1487,11 @@ void AlbumView::onOpenImageCustom(int row, const QString &path, bool bFullScreen
}
}

void AlbumView::onSlideShowClassDetail(const QString &path)
{
runSlideShow(path, m_classDetailThumbnailList);
}

void AlbumView::onSlideShowFav(const QString &path)
{
runSlideShow(path, m_favoriteThumbnailList);
Expand Down
2 changes: 2 additions & 0 deletions src/album/albumview/albumview.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class AlbumView : public QWidget, public ImageEngineImportObject, public ImageMo
//打开图片
void onOpenImageCustom(int row, const QString &path, bool bFullScreen);
//幻灯片播放
void onSlideShowClassDetail(const QString &path);
//幻灯片播放
void onSlideShowFav(const QString &path);
//幻灯片播放
void onSlideShowCustom(const QString &path);
Expand Down
2 changes: 1 addition & 1 deletion src/album/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ void MainWindow::onButtonClicked(int id)
}
albumBtnClicked();
// 如果是最近删除或者移动设备,则搜索框不显示
if (2 == m_pAlbumview->m_pRightStackWidget->currentIndex() || 5 == m_pAlbumview->m_pRightStackWidget->currentIndex()) {
if (2 == m_pAlbumview->m_pRightStackWidget->currentIndex() || 6 == m_pAlbumview->m_pRightStackWidget->currentIndex()) {
m_pSearchEdit->setVisible(false);
} else {
#ifdef tablet_PC
Expand Down

0 comments on commit c8c2160

Please sign in to comment.