summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-28 00:02:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-28 00:02:17 +0200
commit26975949009a0ade4b095f6e8c2ab36cdc764599 (patch)
treea15ce1c76526213a66ff9f52d5d71e9e2646bb38 /src/mainwindow.cpp
parentAdd a setBackgroundColor to urlbar (diff)
downloadrekonq-26975949009a0ade4b095f6e8c2ab36cdc764599.tar.xz
Removed Web Inspecting color
Fixed a bit PrivateBrowsingEnabled FALSE Changed background color to LIGHTGRAY to let it be a little different from mainwindow color
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e506bb4e..a862ee95 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -67,8 +67,6 @@
#include <kdeprintdialog.h>
-
-
// Qt Includes
#include <QtCore/QTimer>
#include <QtCore/QRect>
@@ -590,7 +588,7 @@ void MainWindow::slotPrivateBrowsing(bool enable)
if (button == KMessageBox::Yes)
{
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, true);
- m_view->currentUrlBar()->setBackgroundColor(palette().color(QPalette::Active, QPalette::Background));
+ m_view->currentUrlBar()->setBackgroundColor(Qt::lightGray); // palette().color(QPalette::Active, QPalette::Background));
}
else
{
@@ -602,9 +600,9 @@ void MainWindow::slotPrivateBrowsing(bool enable)
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, false);
m_view->currentUrlBar()->setBackgroundColor(palette().color(QPalette::Active, QPalette::Base));
- MainWindow* win = Application::instance()->mainWindow();
- win->m_lastSearch.clear();
- win->mainView()->clear();
+ m_lastSearch.clear();
+ m_view->clear();
+ m_view->slotReloadAllTabs();
}
}
@@ -753,14 +751,9 @@ void MainWindow::slotToggleInspector(bool enable)
if (result == KMessageBox::Yes)
{
- m_view->currentUrlBar()->setBackgroundColor(QColor(247, 230, 230));
m_view->slotReloadAllTabs();
}
}
- else
- {
- m_view->currentUrlBar()->setBackgroundColor(palette().color(QPalette::Active, QPalette::Base));
- }
}