MimeDatabase: Fix compilation with namespaced Qt

Change-Id: I977a115e75302a5341352b593bf3182c0b093031
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-02-17 17:47:32 +01:00
parent 4f5f5d75b4
commit bb08bb3f13
2 changed files with 14 additions and 12 deletions

View File

@@ -99,6 +99,8 @@ private:
} // Internal
} // Utils
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(Utils::Internal::MimeMagicRule, Q_MOVABLE_TYPE);
QT_END_NAMESPACE
#endif // MIMEMAGICRULE_H

View File

@@ -61,17 +61,17 @@ public:
MimeType();
MimeType(const MimeType &other);
MimeType &operator=(const MimeType &other);
#ifdef Q_COMPILER_RVALUE_REFS
MimeType &operator=(MimeType &&other)
{
qSwap(d, other.d);
return *this;
}
#endif
void swap(MimeType &other)
{
qSwap(d, other.d);
}
//#ifdef Q_COMPILER_RVALUE_REFS
// MimeType &operator=(MimeType &&other)
// {
// qSwap(d, other.d);
// return *this;
// }
//#endif
// void swap(MimeType &other)
// {
// qSwap(d, other.d);
// }
explicit MimeType(const Internal::MimeTypePrivate &dd);
~MimeType();
@@ -118,7 +118,7 @@ protected:
} // Utils
Q_DECLARE_SHARED(Utils::MimeType)
//Q_DECLARE_SHARED(Utils::MimeType)
#ifndef QT_NO_DEBUG_STREAM
QT_BEGIN_NAMESPACE