aboutsummaryrefslogtreecommitdiff
path: root/launcher/news/NewsEntry.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
commit91eb30f03795921b48360b79bdb739dcd0f10f17 (patch)
tree1a2fccbbbf4751cf2cf6f6418cb525dcee5f2acd /launcher/news/NewsEntry.h
parenta3ffa6455021b69bd1940b65fefb3b6177c96730 (diff)
parentae793f6cf11658c9abc5111e82d5ba7b3e6af127 (diff)
downloadPrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.gz
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.bz2
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into pack_changelog
Diffstat (limited to 'launcher/news/NewsEntry.h')
-rw-r--r--launcher/news/NewsEntry.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/launcher/news/NewsEntry.h b/launcher/news/NewsEntry.h
index 1fe95623..2d409a9f 100644
--- a/launcher/news/NewsEntry.h
+++ b/launcher/news/NewsEntry.h
@@ -15,33 +15,31 @@
#pragma once
+#include <QDomElement>
#include <QObject>
#include <QString>
-#include <QDomElement>
#include <memory>
-class NewsEntry : public QObject
-{
+class NewsEntry : public QObject {
Q_OBJECT
-public:
+ public:
/*!
* Constructs an empty news entry.
*/
- explicit NewsEntry(QObject* parent=0);
+ explicit NewsEntry(QObject* parent = 0);
/*!
* Constructs a new news entry.
* Note that content may contain HTML.
*/
- NewsEntry(const QString& title, const QString& content, const QString& link, QObject* parent=0);
+ NewsEntry(const QString& title, const QString& content, const QString& link, QObject* parent = 0);
/*!
* Attempts to load information from the given XML element into the given news entry pointer.
* If this fails, the function will return false and store an error message in the errorMsg pointer.
*/
- static bool fromXmlElement(const QDomElement& element, NewsEntry* entry, QString* errorMsg=0);
-
+ static bool fromXmlElement(const QDomElement& element, NewsEntry* entry, QString* errorMsg = 0);
//! The post title.
QString title;
@@ -54,4 +52,3 @@ public:
};
typedef std::shared_ptr<NewsEntry> NewsEntryPtr;
-