Summary: | digiKam does not compile with recent Qt 4.5 snapshot; QVariant issue | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Christoph Feck <cfeck> |
Component: | Portability-Compilation | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | marcel.wiesweg |
Priority: | NOR | ||
Version: | 0.10.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | 0.10.0 | |
Sentry Crash Report: |
Description
Christoph Feck
2009-01-16 02:07:16 UTC
(In reply to comment #0) > When passing pointers to QVariant, the constructor QVariant(int typeOrUserType, > const void *copy) should be used. It may require registering a custom QVariant > type. Or the simpler QVariant::fromValue(mypointer) / qVariantFromValue(mypointer). Marcel, I don't have Qt 4.5 here to test... What do you think about Pino tip from #1 ? Gilles SVN commit 912061 by mwiesweg: Declare Album* as Metatype and use QVariant::fromValue. Did not compile with Qt4.5 CCBUG: 180908 M +2 -0 album.h M +1 -1 albummodel.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=912061 Christoph, can you test compilation? We all dont have Qt4.5. r912061 compiles with Qt 4.5 snapshot 20090116, thanks! Note that Marble currently has the same bug, so I had to compile digiKam without libmarblewidget support. All other dependencies enabled, as far as CMake report is correct. |