[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [PATCH] Bug 172306: Cutting and then pasting to 2 different
From: Darío Andrés <andresbajotierra () gmail ! com>
Date: 2009-03-22 14:13:00
Message-ID: a2c126ef0903220713g75740377m95d3b0c45e6373 () mail ! gmail ! com
[Download RAW message or body]
I think there is another way to do this:
KUrl::List uris;
(fill the Kurl list..if you need to)
QMimeData * mimeData = new QMimeData();
uris.populateMimeData( mimeData );
Look at:
http://websvn.kde.org/trunk/KDE/kdebase/apps/kfind/kfwin.cpp?revision=941969&view=markup
KFindItemModel::mimeData
Hope this helps
Regards
Dario
On 3/22/09, rahman duran <rahman.duran@gmail.com> wrote:
> 2009/3/22 Alex Merry <kde@randomguy3.me.uk>
>
>>
>> But KUrl::List _is_ a QList<KUrl>, so QMimeData()->setUrls() should accept
>> it
>> just fine.
>>
>>
> But it doesn't. Ah, I wrote it wrong, sorry. It accepts QList<QUrl> not not
> even QList<KUrl>.
>
> So if I try to use KUrl::List or QList<KUrl> it doesn't compile.
>
> /home/rahman/kdelibs/kio/kio/paste.cpp:259: error: no matching function for
> call to ‘QMimeData::setUrls(KUrl::List&)’
> /usr/include/QtCore/qmimedata.h:65: note: candidates are: void
> QMimeData::setUrls(const QList<QUrl>&)
>
> So is it fine to use QList<QUrl> ?
>
> --
> Rahman Duran
>
> Software Engineer
> Turkey
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic