diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-20 01:13:58 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-20 01:13:58 +0100 |
commit | 7f2f2e41d18160d88cb3a100e2261f16d4ba0a89 (patch) | |
tree | 579c5cbc9dc71a807c6a22645959a476a9876856 /src/mainwindow.cpp | |
parent | Updated RELEASE_HOWTO (final?) (diff) | |
download | rekonq-7f2f2e41d18160d88cb3a100e2261f16d4ba0a89.tar.xz |
Eelko patch about private browsing in the title
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 19 |
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"); + } } } |