Adding dependency on kdebase to kdegraphics

Aurélien Gâteau aurelien.gateau at free.fr
Sat Jul 21 10:15:08 BST 2007


Andreas Hartmetz wrote:

> On Saturday 21 July 2007 00:43:28 Aurélien Gâteau wrote:
>> Hello
>>
>> I am in the process of adding basic file operation support to Gwenview.
>> To avoid code duplication, I would like to use libkonq, but it would add
>> a dependency on kdebase to kdegraphics. Is it a problem? or is there a
>> better way?
>>
>> Aurélien
> 
> File operations? Excuse my ignorance, but that rather sounds like we have
> a problem in kdelibs if you need lib*konq* for file operations. Obviously
> there are QFile and everything in libkio which are not enough for whatever
> reason. What exactly is it that you need? I guess it's rather GUI
> related... Could it be a case for kdelibs/kdeui ?

libkonq is a bit higher level, have a look at KonqOperations: it has nice
static methods like to copy, rename, paste from clipboard, ask delete
confirmations. I could reimplement it (that's what I did in Gwenview 1.4)
but I think it's not the smartest thing to do.

Aurélien





More information about the kde-core-devel mailing list