diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-04-07 12:51:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-04-07 12:51:18 +0200 |
commit | 2e71dd7907f9bc85bfce1e265d8458d1b7324dd4 (patch) | |
tree | aba9059936a31960dff946e0f9d072e084f58dd9 /src/webtab | |
parent | Workaround about private browsing (diff) | |
download | rekonq-2e71dd7907f9bc85bfce1e265d8458d1b7324dd4.tar.xz |
Add bool info in WebTab about being a web app
Diffstat (limited to 'src/webtab')
-rw-r--r-- | src/webtab/webtab.cpp | 8 | ||||
-rw-r--r-- | src/webtab/webtab.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/webtab/webtab.cpp b/src/webtab/webtab.cpp index 070ffcaf..1020d68a 100644 --- a/src/webtab/webtab.cpp +++ b/src/webtab/webtab.cpp @@ -78,6 +78,7 @@ WebTab::WebTab(QWidget *parent, bool isPrivateBrowsing) , m_part(0) , m_zoomFactor(10) , m_isPrivateBrowsing(isPrivateBrowsing) + , m_isWebApp(false) , m_splitter(new QSplitter(this)) #ifdef HAVE_KACTIVITIES , m_activityResourceInstance(0) @@ -119,6 +120,7 @@ WebTab::WebTab(QWidget *parent, bool isPrivateBrowsing) if (!parent) { + m_isWebApp = true; connect(this, SIGNAL(titleChanged(QString)), this, SLOT(webAppTitleChanged(QString))); connect(this, SIGNAL(iconChanged()), this, SLOT(webAppIconChanged())); } @@ -521,3 +523,9 @@ void WebTab::focusOut() m_activityResourceInstance->notifyFocusedOut(); #endif } + + +bool WebTab::isWebApp() +{ + return m_isWebApp; +} diff --git a/src/webtab/webtab.h b/src/webtab/webtab.h index 1f501323..f7124a14 100644 --- a/src/webtab/webtab.h +++ b/src/webtab/webtab.h @@ -94,6 +94,8 @@ public: void focusIn(); void focusOut(); + + bool isWebApp(); private Q_SLOTS: void updateProgress(int progress); @@ -148,6 +150,7 @@ private: int m_zoomFactor; bool m_isPrivateBrowsing; + bool m_isWebApp; QSplitter *m_splitter; |