kde-extraapps/gwenview/tests
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
..
auto gwenview: do not rely on compiler to pick up the correct constructor 2022-11-30 22:32:43 +02:00
data gwenview: test animated document loader with WebP image 2022-10-18 18:40:22 +03:00
manual gwenview: remove redundant manual thumbnailgen test 2020-02-04 17:45:25 +00:00
CMakeLists.txt generic: fix tests after the build system cleanup 2015-09-07 11:20:00 +03:00