Commit graph

9 commits

Author SHA1 Message Date
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
Ivailo Monev
370f550140 generic: remove unused QPlastiqueStyle header inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-01-21 14:38:00 +02:00
Ivailo Monev
fe37099810 generic: remove gtk style references
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-12-30 11:54:16 +02:00
Ivailo Monev
6876731c65 generic: drop Kipi support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-04 02:10:23 +03:00
Ivailo Monev
c270d80ec8 generic: misc cleanups 2015-09-02 08:54:43 +03:00
Ivailo Monev
c135cfa6bf generic: adjust for CMake moc 2015-02-27 11:02:43 +00:00
Ivailo Monev
442f11ec1b gwenview: remove redudant tag code 2015-01-30 23:33:08 +00:00
Ivailo Monev
3bafcad0bd killed semantics support of gwenview with fire 2014-11-19 19:44:19 +00:00
Ivailo Monev
bf2d9dcd05 import a bunch of important libraries and applications 2014-11-19 02:23:05 +00:00