From 0b7d9d28119d27bd6ccb277876f4d904d1d7afcb Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 2 Jul 2017 00:41:28 -0700 Subject: QAbstractFileEngine: make setFileTime not a pure virtual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most engines just had to override the virtual to return false. So do it in the base class. Change-Id: I8d96dea9955d4c749b99fffd14cd738a48aa818c Reviewed-by: Jędrzej Nowacki --- src/corelib/io/qabstractfileengine.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/corelib/io/qabstractfileengine.cpp') diff --git a/src/corelib/io/qabstractfileengine.cpp b/src/corelib/io/qabstractfileengine.cpp index 85dc2f33a2..169e933546 100644 --- a/src/corelib/io/qabstractfileengine.cpp +++ b/src/corelib/io/qabstractfileengine.cpp @@ -726,10 +726,10 @@ QString QAbstractFileEngine::owner(FileOwner owner) const return QString(); } -/*! - \fn bool QAbstractFileEngine::setFileTime(const QDateTime &newDate, FileTime time) +/*! \since 5.10 + Sets the file \a time to \a newDate, returning true if successful; otherwise returns false. @@ -737,6 +737,12 @@ QString QAbstractFileEngine::owner(FileOwner owner) const \sa fileTime() */ +bool QAbstractFileEngine::setFileTime(const QDateTime &newDate, FileTime time) +{ + Q_UNUSED(newDate); + Q_UNUSED(time); + return false; +} /*! If \a time is \c CreationTime, return when the file was created. -- cgit v1.2.3