Re: Thumbnail Bar

Aurélien Gâteau <[email protected]> Tue, 01 Apr 2008 12:02:52 +0200
Newsgroups gmane.comp.kde.gwenview
Message-ID <[email protected]>
Ilya Konkov a écrit :
> Hello.
> 
> 1. Scrollbar's arrows.
> Seems that I have to specify url for image. How and into what dir
> should I put images of arrows?

Hum... this is a bit tedious, because the Qt stylesheet system looks at 
relative urls from the current working directories. I suggest creating a 
  "pics" dir at the top level, and putting your images in it.
Then you can create a CMakeLists.txt similar to the one in "cursors/" to 
get your images installed.
Your code should use the full path to the images. Assuming you have a 
scroll-left.png file in pics, you can get its full path with: 
KStandardDirs::locate("appdata", "pics/scroll-left.png");

> 2. Hiding dirs/archives.
> I tried to make proxy model on top of existed SortedDirModel, but
> there were problems with syncing thumbnail views.
> So I added mime exclude filter to existed model. "Exclude" because it
> feels to be faster, but not sure -- it's just feeling.

Nice idea, just applied it.

Aurélien

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace