summaryrefslogtreecommitdiff
path: root/src/location/places/qplaceeditorial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/places/qplaceeditorial.cpp')
-rw-r--r--src/location/places/qplaceeditorial.cpp87
1 files changed, 7 insertions, 80 deletions
diff --git a/src/location/places/qplaceeditorial.cpp b/src/location/places/qplaceeditorial.cpp
index bcf27353..103d76ed 100644
--- a/src/location/places/qplaceeditorial.cpp
+++ b/src/location/places/qplaceeditorial.cpp
@@ -38,19 +38,10 @@
****************************************************************************/
#include "qplaceeditorial.h"
-#include "qplaceeditorial_p.h"
+#include "qplacecontent_p.h"
QT_USE_NAMESPACE
-bool QPlaceEditorialPrivate::compare(const QPlaceContentPrivate *other) const
-{
- const QPlaceEditorialPrivate *od = static_cast<const QPlaceEditorialPrivate *>(other);
- return QPlaceContentPrivate::compare(other)
- && text == od->text
- && contentTitle == od->contentTitle
- && language == od->language;
-}
-
/*!
\class QPlaceEditorial
\inmodule QtLocation
@@ -69,84 +60,20 @@ bool QPlaceEditorialPrivate::compare(const QPlaceContentPrivate *other) const
\sa QPlaceContent
*/
+#if QT_DEPRECATED_SINCE(6, 0)
/*!
Constructs a new editorial object.
*/
QPlaceEditorial::QPlaceEditorial()
-: QPlaceContent(new QPlaceEditorialPrivate)
-{
-}
-
-/*!
- Destructor.
-*/
-QPlaceEditorial::~QPlaceEditorial()
+ : QPlaceContent(QPlaceContent::EditorialType)
{
}
/*!
\fn QPlaceEditorial::QPlaceEditorial(const QPlaceContent &other)
- Constructs a copy of \a other if possible, otherwise constructs a default editorial object.
-*/
-Q_IMPLEMENT_CONTENT_COPY_CTOR(QPlaceEditorial)
-
-Q_IMPLEMENT_CONTENT_D_FUNC(QPlaceEditorial)
-
-/*!
- Returns a textual description of the place.
-
- Depending upon the provider, the
- editorial text could be either rich(HTML based) text or plain text.
-*/
-QString QPlaceEditorial::text() const
-{
- Q_D(const QPlaceEditorial);
- return d->text;
-}
-
-/*!
- Sets the \a text of the editorial.
+ Constructs a copy of \a other if possible, otherwise constructs a default
+ editorial object.
*/
-void QPlaceEditorial::setText(const QString &text)
-{
- Q_D(QPlaceEditorial);
- d->text = text;
-}
+Q_IMPLEMENT_CONTENT_COPY_CTOR(QPlaceEditorial, QPlaceContent::EditorialType)
-/*!
- Returns the title of the editorial.
-*/
-QString QPlaceEditorial::title() const
-{
- Q_D(const QPlaceEditorial);
- return d->contentTitle;
-}
-
-/*!
- Sets the \a title of the editorial.
-*/
-void QPlaceEditorial::setTitle(const QString &title)
-{
- Q_D(QPlaceEditorial);
- d->contentTitle = title;
-}
-
-/*!
- Returns the language of the editorial. Typically this would be a language code
- in the 2 letter ISO 639-1 format.
-*/
-QString QPlaceEditorial::language() const
-{
- Q_D(const QPlaceEditorial);
- return d->language;
-}
-
-/*!
- Sets the \a language of the editorial. Typically this would be a language code
- in the 2 letter ISO 639-1 format.
-*/
-void QPlaceEditorial::setLanguage(const QString &language)
-{
- Q_D(QPlaceEditorial);
- d->language = language;
-}
+#endif // QT_DEPRECATED_SINCE(6, 0)