summaryrefslogtreecommitdiff
path: root/src/rekonqwindow.hpp
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-05 16:17:50 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-05 23:07:42 +0300
commit6b0c8f7e769a141f13194cf341e888c9b49f294c (patch)
tree308895235933e1246759ffb540269a349d0ef151 /src/rekonqwindow.hpp
parentUrlBar: add completer (diff)
downloadrekonq-6b0c8f7e769a141f13194cf341e888c9b49f294c.tar.xz
Add RekonqWindow tests
Diffstat (limited to 'src/rekonqwindow.hpp')
-rw-r--r--src/rekonqwindow.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rekonqwindow.hpp b/src/rekonqwindow.hpp
index 742adbdb..58dbe539 100644
--- a/src/rekonqwindow.hpp
+++ b/src/rekonqwindow.hpp
@@ -13,7 +13,7 @@
#include "rekonq.hpp"
#include <QMainWindow>
-#include <QSplitter>
+#include <rsettings.hpp>
// Forward Declarations
class RekonqView;
@@ -29,12 +29,13 @@ public:
explicit RekonqWindow(QWidget *parent = nullptr);
~RekonqWindow() override;
- [[nodiscard]] RekonqView *currentView();
+ void setupShortcuts(const RekonqSettings *settings);
+ [[nodiscard]] REKONQ_TEST_VIRTUAL RekonqView *currentView() REKONQ_TEST_PURE;
public slots:
- int addView(RekonqView *view);
- void loadUrl(rekonq::DefaultUrl url, rekonq::OpenType type = rekonq::CurrentTab);
- void loadUrl(const QUrl &url, rekonq::OpenType type = rekonq::CurrentTab);
+ REKONQ_TEST_VIRTUAL int addView(RekonqView *view) REKONQ_TEST_PURE;
+ REKONQ_TEST_VIRTUAL void loadUrl(rekonq::DefaultUrl url, rekonq::OpenType type = rekonq::CurrentTab) REKONQ_TEST_PURE;
+ REKONQ_TEST_VIRTUAL void loadUrl(const QUrl &url, rekonq::OpenType type = rekonq::CurrentTab) REKONQ_TEST_PURE;
// void loadUrl(const KUrl &, Rekonq::OpenType type = Rekonq::CurrentTab, TabHistory *history = 0);
private slots:
@@ -44,7 +45,6 @@ private slots:
private:
Ui::RekonqWindow *ui;
- QSplitter *_splitter = nullptr;
// QWeakPointer<HistoryPanel> _historyPanel;
// QWeakPointer<BookmarksPanel> _bookmarksPanel;
};