[PATCH] Bug 172306: Cutting and then pasting to 2 different locations
Darío Andrés
andresbajotierra at gmail.com
Sun Mar 22 14:13:00 GMT 2009
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 at gmail.com> wrote:
> 2009/3/22 Alex Merry <kde at 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
>
More information about the kde-core-devel
mailing list