KDirOperator
Harsh J
qwertymaniac at gmail.com
Mon Feb 8 19:58:14 GMT 2010
2010/2/1 Darío Andrés <andresbajotierra at gmail.com>:
> ---------- Forwarded message ----------
> From: Niko Sams <niko.sams at gmail.com>
> Date: Sat, Jan 30, 2010 at 8:53 AM
> Subject: KDirOperator
> To: kde-devel at kde.org
>
>
> Hi,
>
> I have two issues with KDirOperator.
>
> 1. how is setupMenu(int) supposed to be used?
> calling operator->setupMenu(KDirOperator::FileActions) after
> constructing it doesn't help
> because in KDirOperator::activatedMenu setupMenu() is called, and that
> calls setupMenu(SortActions | ViewActions | FileActions);
> and so resets my setting.
This is mostly an unintended bug. Resolved in r1087306 (trunk) by
removing that overriding call. Shouldn't reset henceforth, once set
post-construction.
Related websvn:
http://websvn.kde.org/trunk/KDE/kdelibs/kfile/kdiroperator.cpp?revision=1087306&view=markup
>
> 2. I'd like to set a url and the user should not be able to change it
> by entering folders etc. My current solution does
> this by calling setUrl when the urlEntered signal is emitted. Any
> better idea to acomplish this?
>
> thanks,
> Niko
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
--
Harsh J
www.harshj.com
More information about the kde-core-devel
mailing list