[Konsole-devel] [Bug 74795] New: PATCH: When menubar is visible, change menu text to "Hide Menubar"

Kurt V.Hindenburg khindenburg at cherrynebula.net
Tue Feb 10 06:59:38 UTC 2004


------- 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=74795      
           Summary: PATCH: When menubar is visible, change menu text to
                    "Hide Menubar"
           Product: konsole
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: khindenburg at cherrynebula.net


Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice) 
OS:          Linux

This uses the new setCheckedState in KDE libs.

When menubar is visible, text is "Hide Menubar".  When menubar is hidden, text is "Show Menubar".

One liner:
--- konsole.cpp.orig    2004-02-10 01:46:34.252558584 -0500
+++ konsole.cpp 2004-02-10 01:51:01.448938560 -0500
@@ -419,6 +419,7 @@
       {
          showMenubar->plug ( m_rightButton, index );
          m_rightButton->insertSeparator( index+1 );
+         showMenubar->setCheckedState( KGuiItem( "Hide &Menubar", "showmenu", QString::null, QString::null ) );
       }
       index = 2;
       m_rightButton->setItemVisible(POPUP_NEW_SESSION_ID,true);



More information about the konsole-devel mailing list