Discussion:
[KPhotoAlbum] Qt 5.5
Robert Krawitz
2018-10-17 00:46:45 UTC
Permalink
That's deprecated, correct?
bool DB::ImageInfo::hasCategoryInfo( const QString& key, const StringSet& values ) const
{
// OpenSuse leap 42.1 still ships with Qt 5.5
// TODO: remove this version check once we don't care about Qt 5.6 anymore...
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
return values.intersects( m_categoryInfomation[key] );
#else
StringSet tmp = values;
return ! tmp.intersect( m_categoryInfomation[key] ).isEmpty();
#endif
}
--
Robert Krawitz <***@alum.mit.edu>

*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
Tobias Leupold
2018-10-17 05:55:56 UTC
Permalink
We officially depend on Qt 5.8 now, so it's not only deprecated, but obsolete
;-)
Post by Robert Krawitz
That's deprecated, correct?
bool DB::ImageInfo::hasCategoryInfo( const QString& key, const StringSet&
values ) const {
// OpenSuse leap 42.1 still ships with Qt 5.5
// TODO: remove this version check once we don't care about Qt 5.6
anymore... #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
return values.intersects( m_categoryInfomation[key] );
#else
StringSet tmp = values;
return ! tmp.intersect( m_categoryInfomation[key] ).isEmpty();
#endif
}
Continue reading on narkive:
Loading...