Commit 4f892fb6 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

handle properly thumbbar visibility state when go/back to fullscreen an switch...

handle properly thumbbar visibility state when go/back to fullscreen an switch between icon-view and preview modes.
This include AlbumGUI and ImportUI
parent b3b837df
......@@ -3028,7 +3028,7 @@ void DigikamApp::showThumbBar(bool visible)
bool DigikamApp::thumbbarVisibility() const
{
return d->view->isThumbBarVisible();
return d->showBarAction->isChecked();
}
} // namespace Digikam
......@@ -1952,11 +1952,6 @@ void DigikamView::toggleShowBar(bool b)
d->stackedview->thumbBarDock()->showThumbBar(b);
}
bool DigikamView::isThumbBarVisible()
{
return d->stackedview->thumbBarDock()->isVisible();
}
void DigikamView::setRecurseAlbums(bool recursive)
{
d->iconView->imageAlbumModel()->setRecurseAlbums(recursive);
......
......@@ -79,7 +79,6 @@ public:
void hideSideBars();
void setThumbSize(int size);
void toggleShowBar(bool);
bool isThumbBarVisible();
void setRecurseAlbums(bool recursive);
void setRecurseTags(bool recursive);
void imageTransform(RotationMatrix::TransformationAction transform);
......
......@@ -2588,7 +2588,7 @@ void ImportUI::showThumbBar(bool visible)
bool ImportUI::thumbbarVisibility() const
{
return d->view->isThumbBarVisible();
return d->showBarAction->isChecked();
}
} // namespace Digikam
......@@ -775,11 +775,6 @@ void ImportView::toggleShowBar(bool b)
d->StackedView->thumbBarDock()->showThumbBar(b);
}
bool ImportView::isThumbBarVisible()
{
return d->StackedView->thumbBarDock()->isVisible();
}
void ImportView::scrollTo(const QString& folder, const QString& file)
{
CamItemInfo info = camItemInfo(folder, file);
......
......@@ -58,7 +58,6 @@ public:
void hideSideBars();
void setThumbSize(int size);
void toggleShowBar(bool b);
bool isThumbBarVisible();
void scrollTo(const QString& folder, const QString& file);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment