QPlaceEditorial Class
The QPlaceEditorial class represents a publisher's article describing a place. More...
Header: | #include <QPlaceEditorial> |
qmake: | QT += location |
Since: | Qt 5.6 |
Inherits: | QPlaceContent |
Public Functions
QPlaceEditorial() | |
QPlaceEditorial(const QPlaceContent &other) | |
virtual | ~QPlaceEditorial() |
QString | language() const |
void | setLanguage(const QString &language) |
void | setText(const QString &text) |
void | setTitle(const QString &title) |
QString | text() const |
QString | title() const |
- 10 public functions inherited from QPlaceContent
Detailed Description
The QPlaceEditorial class represents a publisher's article describing a place.
Each QPlaceEditorial has a title, text and language; in addition to those properties inherited from QPlaceContent.
Note: The Places API only supports editorials as 'retrieve-only' objects. Submitting editorials to a provider is not a supported use case.
See also QPlaceContent.
Member Function Documentation
QPlaceEditorial::QPlaceEditorial()
Constructs a new editorial object.
QPlaceEditorial::QPlaceEditorial(const QPlaceContent &other)
Constructs a copy of other if possible, otherwise constructs a default editorial object.
[virtual]
QPlaceEditorial::~QPlaceEditorial()
Destructor.
QString QPlaceEditorial::language() const
Returns the language of the editorial. Typically this would be a language code in the 2 letter ISO 639-1 format.
See also setLanguage().
void QPlaceEditorial::setLanguage(const QString &language)
Sets the language of the editorial. Typically this would be a language code in the 2 letter ISO 639-1 format.
See also language().
void QPlaceEditorial::setText(const QString &text)
Sets the text of the editorial.
See also text().
void QPlaceEditorial::setTitle(const QString &title)
Sets the title of the editorial.
See also title().
QString QPlaceEditorial::text() const
Returns a textual description of the place.
Depending upon the provider, the editorial text could be either rich(HTML based) text or plain text.
See also setText().
QString QPlaceEditorial::title() const
Returns the title of the editorial.
See also setTitle().
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.