Bug 111876 - Option "Hide toolbar in fullscreen mode" does not hide the toolbar in fullscreen mode
Summary: Option "Hide toolbar in fullscreen mode" does not hide the toolbar in fullscr...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Setup (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 12:27 UTC by Tung NGUYEN
Modified: 2022-02-05 05:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tung NGUYEN 2005-09-01 12:27:26 UTC
Version:           0.3.0-cvs (packaged with Digikam 0.8.0-beta1) (using KDE KDE 3.4.2)
Installed from:    Compiled From Sources
OS:                Linux

I have checked the option "Hide toolbar in fullscreen mode" but I can always see the toolbar in fullscreen mode (it works fine in the Digikam Image Editor).
Comment 1 caulier.gilles 2005-09-01 13:49:12 UTC
SVN commit 455800 by cgilles:

BugFix : Hide properly ToolBar in FullScreen mode.
CCBUG: 111876

 M  +6 -3      showfoto.cpp  


--- trunk/extragear/graphics/digikam/showfoto/showfoto.cpp #455799:455800
@@ -941,11 +941,14 @@
         if (!m_showBarAction->isChecked())
             m_bar->show();
 
-        QObject* obj = child("mainToolBar","KToolBar");
+        QObject* obj = child("ToolBar","KToolBar");
         if (obj)
         {
             KToolBar* toolBar = static_cast<KToolBar*>(obj);
-            toolBar->show();
+            if (m_fullScreenAction->isPlugged(toolBar))
+                m_fullScreenAction->unplug(toolBar);
+            if (toolBar->isHidden())
+                toolBar->show();
         }
 
         m_fullScreen = false;
@@ -965,7 +968,7 @@
                 m_fullScreenAction->plug(m_bar);
         }
 
-        QObject* obj = child("mainToolBar","KToolBar");
+        QObject* obj = child("ToolBar","KToolBar");
         if (obj)
         {
             KToolBar* toolBar = static_cast<KToolBar*>(obj);
Comment 2 caulier.gilles 2005-09-01 14:08:14 UTC
*** Bug has been marked as fixed ***.