kde-extraapps/gwenview/app
Ivailo Monev 658e812f74 gwenview: do not rely on compiler to pick up the correct constructor
KUrl has QVariant operator meaning it should be QVariant from QVariant
(i.e. copy constructor) but the testModel() function (see the history model
test) explicitly converts it to KUrl while the StartMainPage class was
converting it to QUrl (via QVariant::toUrl()).

qVariantFromValue<T>() has type before QVariant specialization

side note, try compiling the following (with proper Makefile):

 #include <qurl.h>
 #include <qvariant.h>
 #include <qdebug.h>
 #include <kurl.h>

int main (int argc, char** argv)
{
    QVariant v(QUrl());
    qDebug() << v.type() << v.userType();

    QVariant v2(KUrl());
    qDebug() << v2.type() << v2.userType();

    return 0;
}

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-30 22:32:43 +02:00
..
abstractcontextmanageritem.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
abstractcontextmanageritem.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
advancedconfigpage.ui generic: prepare for Katie changes 2022-10-14 16:21:09 +03:00
browsemainpage.cpp gwenview: remove archive support [ci reset] 2021-06-25 16:14:32 +03:00
browsemainpage.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
browsemainpage.ui generic: prepare for Katie changes 2022-10-14 16:21:09 +03:00
CMakeLists.txt gwenview: port to KExiv2 2022-10-16 02:33:13 +03:00
configdialog.cpp gwenview: drop OpenGL support 2021-02-17 03:44:19 +02:00
configdialog.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
documentinfoprovider.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
documentinfoprovider.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
fileoperations.cpp gwenview: use KIO:PreviewJob as thumbnails provider 2019-11-19 15:22:02 +00:00
fileoperations.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
fileopscontextmanageritem.cpp gwenview: set icons for file operation actions 2021-06-24 21:17:41 +03:00
fileopscontextmanageritem.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
filtercontroller.cpp generic: drop Kipi support 2021-08-04 02:10:23 +03:00
filtercontroller.h generic: drop Kipi support 2021-08-04 02:10:23 +03:00
folderviewcontextmanageritem.cpp generic: make changes required for building against Katie 2015-11-25 10:01:00 +00:00
folderviewcontextmanageritem.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
fullscreenconfigwidget.ui generic: prepare for Katie changes 2022-10-14 16:21:09 +03:00
fullscreencontent.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
fullscreencontent.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
generalconfigpage.ui generic: prepare for Katie changes 2022-10-14 16:21:09 +03:00
gvcore.cpp killed semantics support of gwenview with fire 2014-11-19 19:44:19 +00:00
gvcore.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
gwenview.desktop gwenview: update MIME types in .desktop files 2022-10-28 01:21:35 +03:00
gwenviewui.rc generic: drop Kipi support 2021-08-04 02:10:23 +03:00
imagemetainfodialog.cpp generic: replace deprecated std::auto_ptr<T> with std::unique_ptr<T> 2022-04-24 12:06:58 +03:00
imagemetainfodialog.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
imageopscontextmanageritem.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
imageopscontextmanageritem.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
imageviewconfigpage.ui generic: prepare for Katie changes 2022-10-14 16:21:09 +03:00
infocontextmanageritem.cpp gwenview: remove archive support [ci reset] 2021-06-25 16:14:32 +03:00
infocontextmanageritem.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
main.cpp generic: replace deprecated std::auto_ptr<T> with std::unique_ptr<T> 2022-04-24 12:06:58 +03:00
mainwindow.cpp gwenview: merge URL kind enums for images 2022-05-20 23:54:23 +03:00
mainwindow.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
preloader.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
preloader.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
saveallhelper.cpp gwenview: remove unused QFuture and QFutureWatcher headers inclusion 2022-05-18 03:55:49 +03:00
saveallhelper.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
savebar.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
savebar.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
sidebar.cpp gwenview: remove unused header inclusion in sidebar source file 2022-09-28 17:34:57 +03:00
sidebar.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
slideshow.desktop import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
splitter.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
startmainpage.cpp gwenview: do not rely on compiler to pick up the correct constructor 2022-11-30 22:32:43 +02:00
startmainpage.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00
startmainpage.ui generic: prepare for Katie changes 2022-10-14 16:21:09 +03:00
thumbnailviewhelper.cpp generic: drop Kipi support 2021-08-04 02:10:23 +03:00
thumbnailviewhelper.h import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00
viewmainpage.cpp generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
viewmainpage.h generic: replace forward declarations with headers inclusions 2019-05-23 00:08:45 +00:00