[Kde-kiosk] Status Bar Question

David Faure dfaure at klaralvdalens-datakonsult.se
Mon Mar 31 17:01:40 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 31 March 2003 15:01, Waldo Bastian wrote:
> On Monday 31 March 2003 13:30, David Faure wrote:
> > On Monday 31 March 2003 12:59, Waldo Bastian wrote:
> > > On Saturday 29 March 2003 05:44, Peter Martinez wrote:
> > > > I would like to know if any of you know of a way to disable or make
> > > > invisible the status bar of the browser window. I am using a profile
> > > > and setting the browser to full screen mode and I have everything else
> > > > hidden except for the bottom status bar. Ideally I would like to find
> > > > out if there is a command I can include in the profile to do this. Any
> > > > help would be greatly appreciated.
> > >
> > > Your profile will contain something like:
> > > 	View0_ToggleView=false
> > >
> > > I would expect that adding
> > > 	View0_ShowStatusBar=false
> > > would work, but it doesn't do anything here :-(
> >
> > Please test.
> 
> No, that still doesn't work. The code around kmainwindow.cpp line 737 
> interferes.
>
> On the bright side, adding the following two lines to konquerorrc does manage 
> to hide the statusbar:
> [KonqMainWindow]
> StatusBar=Disabled

Oh I see, this is a side effect of KMainWindow finding a KStatusBar.
This means
1) it won't work with any released KDE version, only with my recent
"port to KStatusBar".
2) it will only hide one statusbar, it won't work with more than one view
(since in konqueror there's one statusbar per view).

Hmm, more precisely, it means View0_ShowStatusBar=false *might* work
with KDE-3.1.x.

I wonder how to fix it in CVS the proper way. KMainWindow gets in the
way, we don't really want it to assume "the mainwindow statusbar is the
first KStatusBar I find, even if it's not a child of the mainwindow".
Ah. Easy in fact :)

Index: kmainwindow.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kmainwindow.cpp,v
retrieving revision 1.99
diff -u -p -r1.99 kmainwindow.cpp
- --- kmainwindow.cpp     13 Mar 2003 18:44:34 -0000      1.99
+++ kmainwindow.cpp     31 Mar 2003 16:00:20 -0000
@@ -971,7 +971,7 @@ void KMainWindow::shuttingDown()

 KMenuBar *KMainWindow::internalMenuBar()
 {
- -    QObjectList *l = queryList( "KMenuBar" );
+    QObjectList *l = queryList( "KMenuBar", 0, false, false );
     if ( !l || !l->first() ) {
         delete l;
         return 0;
@@ -984,7 +984,7 @@ KMenuBar *KMainWindow::internalMenuBar()

 KStatusBar *KMainWindow::internalStatusBar()
 {
- -    QObjectList *l = queryList( "KStatusBar" );
+    QObjectList *l = queryList( "KStatusBar", 0, false, false );
     if ( !l || !l->first() ) {
         delete l;
         return 0;

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+iGZl72KcVAmwbhARAp41AJ9siYFf2z//K77Opnf29SBp+UFleQCgn9CP
msVMXEhMdlziR0AE9HDEtfU=
=xwhb
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list