From kde-devel Tue Oct 19 22:30:30 2004 From: Andre Moreira Magalhaes Date: Tue, 19 Oct 2004 22:30:30 +0000 To: kde-devel Subject: Re: Howto know the current konqueror profile? Message-Id: <20041019223030.40500.qmail () web51907 ! mail ! yahoo ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=109822509420486 > 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 <<