Skip to content

Commit

Permalink
Merge pull request #3736 from uklotzde/qt-5.12
Browse files Browse the repository at this point in the history
Qt 5.12: Delete obsolete QT_VERSION_CHECK workarounds (follow-up)
  • Loading branch information
Holzhaus authored Mar 20, 2021
2 parents 91f2b98 + d3750e9 commit aa3cc95
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/track/trackfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ class TrackFile {
}

QDateTime fileCreated() const {
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
return m_fileInfo.birthTime();
#else
return m_fileInfo.created();
#endif
}
QDateTime fileLastModified() const {
return m_fileInfo.lastModified();
Expand Down Expand Up @@ -117,11 +113,7 @@ inline bool operator!=(const TrackFile& lhs, const TrackFile& rhs) {
}

inline QDebug operator<<(QDebug debug, const TrackFile& trackFile) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
return debug << trackFile.asFileInfo();
#else
return debug << trackFile.location();
#endif
}

inline uint qHash(
Expand Down

0 comments on commit aa3cc95

Please sign in to comment.