[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Howto know the current konqueror profile?
From:       Andre Moreira Magalhaes <andrunko () yahoo ! com ! br>
Date:       2004-10-19 22:30:30
Message-ID: 20041019223030.40500.qmail () web51907 ! mail ! yahoo ! com
[Download RAW message or body]

> The current profile is stored in KonqViewManager, and accessible via
> currentProfile() and currentProfileText(). However the sidebar
> doesn't
> have access to KonqViewManager. It's just a KParts part...
> 
> I guess you could set the profile name as a Q_PROPERTY of
> KonqMainWindow
> (of type QString), and access it from the sidebar using
> topLevelWidget()->property("...").
> 
> If the sidebar needs to be notified when the current profile name
> changes,
> then it's a bit more tricky, this would need a custom event I guess
> (not a dcop signal, since it would then be difficult to know which
> mainwindow
> it's about). To define a new custom event, see libkonq/konq_events.*
> and the
> code in KonqMainWindow which sends events to the views.
> 
thanks a lot. i will try to do this.

cheers
Andrunko


	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic