KIconDialog extensions (was: Re: Icon choosing in kedittoolbar)

Rob Kaper cap at capsi.com
Wed Apr 28 14:55:31 BST 2004


On Wed, Apr 28, 2004 at 12:11:55PM +0200, David Faure wrote:
> KIconChooser is in libkio (kio/kfile/) since it needs KFileDialog, and

re: KIconDialog, I'm interested in (writing) some extensions:

a) disable the choice between system and user icons
b) disable the user from changing the custom location

I'm currently using KIconDialog to let a user choose icons from a
locate()'ed appdata dir, but I can't seem to lock down the dialog to the
custom path:

	KIconDialog iconDialog( this, "iconDialog" );
	iconDialog.setCustomLocation( locate("appdata", "themes/default/tokens/") );
	iconDialog.setup( KIcon::Desktop, KIcon::Application, false, 0, true ); // begin with user icons
	QString icon = iconDialog.openDialog();

I don't want the user to select system icons to be used as game tokens, nor
to look in other locations than the one I specified. KIconDialog is a fairly
simple class so it shouldn't be too hard to add this.

Thoughts, comments?

Rob
-- 
Rob Kaper     | 4/16 Horrorpops COPENHAGEN, 4/29 The Rasmus LONDON
cap at capsi.com | 5/11 Ghost of the Robot AMSTERDAM, 5/14 Disney PARIS
www.capsi.com | 7/19 COPENHAGEN-MALMÖ, 7/21 STOCKHOLM-KÖPING, 8/1 OSLO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040428/1ad26cd5/attachment.sig>


More information about the kde-core-devel mailing list