From 2e71dd7907f9bc85bfce1e265d8458d1b7324dd4 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 7 Apr 2013 12:51:18 +0200 Subject: Add bool info in WebTab about being a web app --- src/webtab/webtab.cpp | 8 ++++++++ src/webtab/webtab.h | 3 +++ 2 files changed, 11 insertions(+) (limited to 'src/webtab') 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; -- cgit v1.2.1