[Digikam-devel] [Bug 111876] Option "Hide toolbar in fullscreen mode" does not hide the toolbar in fullscreen mode

Gilles Caulier caulier.gilles at free.fr
Thu Sep 1 12:49:13 BST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=111876         




------- Additional Comments From caulier.gilles free fr  2005-09-01 13:49 -------
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);



More information about the Digikam-devel mailing list