summaryrefslogtreecommitdiff
path: root/src/descriptionpage.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-23 02:24:34 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-02 10:10:18 -0400
commit8d1c121f648f2f6a8e0a5e2ad76cd245e318290d (patch)
tree44aa8aee2685174615f33f999ca102179939d3e4 /src/descriptionpage.h
parenta72573b385a941adf7d662b8df5c8e35309fdd45 (diff)
split nexus tab
added OrganizerCore::loggedInAction() to execute a function only when logged in, replaces a bunch of copy/pasted stuff in mainwindow moved common variables in ModInfoDialogTab moved DescriptionPage to modinfodialognexus.h, renamed to NexusTabWebpage, deleted now empty descriptionpage.h
Diffstat (limited to 'src/descriptionpage.h')
-rw-r--r--src/descriptionpage.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/descriptionpage.h b/src/descriptionpage.h
deleted file mode 100644
index f6158ee0..00000000
--- a/src/descriptionpage.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <QWebEnginePage>
-
-#ifndef DESCRIPTIONPAGE_H
-#define DESCRIPTIONPAGE_H
-
-class DescriptionPage : public QWebEnginePage
-{
- Q_OBJECT
-
-public:
- DescriptionPage(QObject* parent = 0) : QWebEnginePage(parent){}
-
- bool acceptNavigationRequest(const QUrl & url, QWebEnginePage::NavigationType type, bool isMainFrame)
- {
- if (type == QWebEnginePage::NavigationTypeLinkClicked)
- {
- emit linkClicked(url);
- return false;
- }
- return true;
- }
-
-signals:
- void linkClicked(const QUrl&);
-
-};
-
-#endif //DESCRIPTIONPAGE_H