QPlaceEditorial Class
The QPlaceEditorial class represents a publisher's article describing a place. 更多...
头文件: | #include <QPlaceEditorial> |
qmake: | QT += location |
开始支持版本: | Qt 5.6 |
基类: | QPlaceContent |
公有函数
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 个公有函数继承自 QPlaceContent
详细描述
The QPlaceEditorial class represents a publisher's article describing a place.
Each QPlaceEditorial has a title, text and language; in addition to those 个属性继承自 QPlaceContent.
Note: The Places API only supports editorials as 'retrieve-only' objects. Submitting editorials to a provider is not a supported use case.
参见 QPlaceContent.
成员函数
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.
参见 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.
参见 language().
void QPlaceEditorial::setText(const QString &text)
Sets the text of the editorial.
参见 text().
void QPlaceEditorial::setTitle(const QString &title)
Sets the title of the editorial.
参见 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.
参见 setText().
QString QPlaceEditorial::title() const
Returns the title of the editorial.
参见 setTitle().