aboutsummaryrefslogtreecommitdiff
path: root/launcher/news/NewsEntry.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-15 12:16:00 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-15 12:16:00 +0300
commitc94ee67077076fdfb3ad04e93a0de2ae32b6a4e5 (patch)
tree437dec3be224cae5e229eeaa4ac9ebeedffd03e3 /launcher/news/NewsEntry.h
parent019e5ca3e819f5daf9933bc0fb091784b0ca561f (diff)
parent8f5bb982cd27dd9158b63d826769c168455a139b (diff)
downloadPrismLauncher-c94ee67077076fdfb3ad04e93a0de2ae32b6a4e5.tar.gz
PrismLauncher-c94ee67077076fdfb3ad04e93a0de2ae32b6a4e5.tar.bz2
PrismLauncher-c94ee67077076fdfb3ad04e93a0de2ae32b6a4e5.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curseforge-url-handle3
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
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;
-