aboutsummaryrefslogtreecommitdiff
path: root/lib/navigation/navigationbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/navigation/navigationbutton.h')
-rw-r--r--lib/navigation/navigationbutton.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/navigation/navigationbutton.h b/lib/navigation/navigationbutton.h
deleted file mode 100644
index e0d358a..0000000
--- a/lib/navigation/navigationbutton.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * This file is part of smolbote. It's copyrighted by the contributors recorded
- * in the version control history of the file, available from its original
- * location: git://neueland.iserlohn-fortress.net/smolbote.git
- *
- * SPDX-License-Identifier: GPL-3.0
- */
-
-#ifndef NAVIGATIONBUTTON_H
-#define NAVIGATIONBUTTON_H
-
-#include "../../src/webengine/webview.h"
-#include <QToolButton>
-
-class QMenu;
-
-class NavigationButton : public QToolButton
-{
- Q_OBJECT
-public:
- enum Type {
- BackButton,
- ForwardButton,
- ReloadButton,
- StopButton
- };
-
- explicit NavigationButton(Type type, QWidget *parent = nullptr);
-
- void setView(WebView *view);
-
-signals:
-
-private slots:
- void updateOnLoadStarted();
- void updateOnLoadFinished();
- void doAction();
- void prepareMenu();
-
-private:
- Type m_type;
- QMenu *menu;
- WebView *m_view;
-
- QMetaObject::Connection loadStartedConnection, loadFinishedConnection;
-};
-
-#endif // NAVIGATIONBUTTON_H