summaryrefslogtreecommitdiff
path: root/src/lootdialog.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2023-07-09 17:36:03 +0200
committerGitHub <noreply@github.com>2023-07-09 17:36:03 +0200
commitef94aee28464039672b277243a0181ae93550d6c (patch)
tree0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/lootdialog.h
parent7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff)
parent3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff)
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/lootdialog.h')
-rw-r--r--src/lootdialog.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/lootdialog.h b/src/lootdialog.h
index 3cec15c6..f632b9c1 100644
--- a/src/lootdialog.h
+++ b/src/lootdialog.h
@@ -1,48 +1,49 @@
#ifndef MODORGANIZER_LOOTDIALOG_H
#define MODORGANIZER_LOOTDIALOG_H
-#include <lootcli/lootcli.h>
-#include <log.h>
#include <expanderwidget.h>
+#include <log.h>
+#include <lootcli/lootcli.h>
-namespace Ui { class LootDialog; }
+namespace Ui
+{
+class LootDialog;
+}
class OrganizerCore;
class Loot;
-
class MarkdownDocument : public QObject
{
Q_OBJECT;
Q_PROPERTY(QString text MEMBER m_text NOTIFY textChanged FINAL);
public:
- explicit MarkdownDocument(QObject* parent=nullptr);
+ explicit MarkdownDocument(QObject* parent = nullptr);
void setText(const QString& text);
signals:
- void textChanged(const QString &text);
+ void textChanged(const QString& text);
private:
QString m_text;
};
-
class MarkdownPage : public QWebEnginePage
{
Q_OBJECT;
public:
- explicit MarkdownPage(QObject* parent=nullptr);
+ explicit MarkdownPage(QObject* parent = nullptr);
protected:
- bool acceptNavigationRequest(const QUrl &url, NavigationType, bool) override;
+ bool acceptNavigationRequest(const QUrl& url, NavigationType, bool) override;
};
-
class LootDialog : public QDialog
{
Q_OBJECT;
+
public:
LootDialog(QWidget* parent, OrganizerCore& core, Loot& loot);
~LootDialog();
@@ -76,4 +77,4 @@ private:
void showReport();
};
-#endif // MODORGANIZER_LOOTDIALOG_H
+#endif // MODORGANIZER_LOOTDIALOG_H