mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
![]() 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> |
||
---|---|---|
.. | ||
auto | ||
data | ||
manual | ||
CMakeLists.txt |