From 775b20cbe634928eebbfe8947bfa4093df30e6ef Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 31 Dec 2020 11:45:04 +1100 Subject: mainwindow: new methods curTab and tabAt So we don't have to write qobject_cast(this->ui ... etc every time ;) --- src/mainwindow.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainwindow.hpp') 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); -- cgit v1.2.3