aboutsummaryrefslogtreecommitdiffstats
path: root/src/labs/platform/qquicklabsplatformicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/labs/platform/qquicklabsplatformicon.cpp')
-rw-r--r--src/labs/platform/qquicklabsplatformicon.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/labs/platform/qquicklabsplatformicon.cpp b/src/labs/platform/qquicklabsplatformicon.cpp
new file mode 100644
index 0000000000..40e655616f
--- /dev/null
+++ b/src/labs/platform/qquicklabsplatformicon.cpp
@@ -0,0 +1,50 @@
+// Copyright (C) 2018 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#include "qquicklabsplatformicon_p.h"
+
+QT_BEGIN_NAMESPACE
+
+QUrl QQuickLabsPlatformIcon::source() const
+{
+ return m_source;
+}
+
+void QQuickLabsPlatformIcon::setSource(const QUrl& source)
+{
+ m_source = source;
+}
+
+QString QQuickLabsPlatformIcon::name() const
+{
+ return m_name;
+}
+
+void QQuickLabsPlatformIcon::setName(const QString& name)
+{
+ m_name = name;
+}
+
+bool QQuickLabsPlatformIcon::isMask() const
+{
+ return m_mask;
+}
+
+void QQuickLabsPlatformIcon::setMask(bool mask)
+{
+ m_mask = mask;
+}
+
+bool QQuickLabsPlatformIcon::operator==(const QQuickLabsPlatformIcon &other) const
+{
+ return m_source == other.m_source && m_name == other.m_name && m_mask == other.m_mask;
+}
+
+bool QQuickLabsPlatformIcon::operator!=(const QQuickLabsPlatformIcon &other) const
+{
+ return !(*this == other);
+}
+
+QT_END_NAMESPACE
+
+#include "moc_qquicklabsplatformicon_p.cpp"