diff options
Diffstat (limited to 'src')
-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; |