aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.hpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2020-12-31 11:45:04 +1100
committerFelix Queißner <felix@ib-queissner.de>2020-12-31 10:13:49 +0100
commit775b20cbe634928eebbfe8947bfa4093df30e6ef (patch)
tree0d7465b0070c947b27d439b1fd78273ecb1a716a /src/mainwindow.hpp
parentedbd2707620bd0d948bc71a554ec35d63b995e45 (diff)
downloadkristall-775b20cbe634928eebbfe8947bfa4093df30e6ef.tar.gz
mainwindow: new methods curTab and tabAt
So we don't have to write qobject_cast<BrowserTab*>(this->ui ... etc every time ;)
Diffstat (limited to 'src/mainwindow.hpp')
-rw-r--r--src/mainwindow.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp
index 6a1dce7..6ac1066 100644
--- a/src/mainwindow.hpp
+++ b/src/mainwindow.hpp
@@ -29,6 +29,8 @@ public:
BrowserTab * addEmptyTab(bool focus_new, bool load_default);
BrowserTab * addNewTab(bool focus_new, QUrl const & url);
+ BrowserTab * curTab() const;
+ BrowserTab * tabAt(int index) const;
void setUrlPreview(QUrl const & url);