summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-20 01:13:58 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-20 01:13:58 +0100
commit7f2f2e41d18160d88cb3a100e2261f16d4ba0a89 (patch)
tree579c5cbc9dc71a807c6a22645959a476a9876856 /src/mainwindow.cpp
parentUpdated RELEASE_HOWTO (final?) (diff)
downloadrekonq-7f2f2e41d18160d88cb3a100e2261f16d4ba0a89.tar.xz
Eelko patch about private browsing in the title
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9b95f052..420015d8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -603,13 +603,28 @@ void MainWindow::updateActions()
void MainWindow::updateWindowTitle(const QString &title)
{
+ QWebSettings *settings = QWebSettings::globalSettings();
if (title.isEmpty())
{
- setWindowTitle("rekonq");
+ if(settings->testAttribute(QWebSettings::PrivateBrowsingEnabled))
+ {
+ setWindowTitle("rekonq (" + i18n("Private Browsing") + ")");
+ }
+ else
+ {
+ setWindowTitle("rekonq");
+ }
}
else
{
- setWindowTitle(title + " - rekonq");
+ if(settings->testAttribute(QWebSettings::PrivateBrowsingEnabled))
+ {
+ setWindowTitle(title + " - rekonq (" + i18n("Private Browsing") + ")");
+ }
+ else
+ {
+ setWindowTitle(title + " - rekonq");
+ }
}
}