diff --git a/src/locationbar/privacyindicator.cpp b/src/locationbar/privacyindicator.cpp index ba7c0e4e..7e17b175 100644 --- a/src/locationbar/privacyindicator.cpp +++ b/src/locationbar/privacyindicator.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2009 Benjamin C. Meyer + * Copyright 2009-2010 Benjamin C. Meyer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,6 +27,12 @@ PrivacyIndicator::PrivacyIndicator(QWidget *parent) setPixmap(QPixmap(QLatin1String(":graphics/private.png"))); connect(BrowserApplication::instance(), SIGNAL(privacyChanged(bool)), this, SLOT(setVisible(bool))); + setCursor(Qt::ArrowCursor); setVisible(BrowserApplication::isPrivate()); } +void PrivacyIndicator::mousePressEvent(QMouseEvent *event) +{ + Q_UNUSED(event) + BrowserApplication::instance()->setPrivate(false); +} diff --git a/src/locationbar/privacyindicator.h b/src/locationbar/privacyindicator.h index 84c5e329..45d89ffb 100644 --- a/src/locationbar/privacyindicator.h +++ b/src/locationbar/privacyindicator.h @@ -1,5 +1,5 @@ /* - * Copyright 2009 Benjamin C. Meyer + * Copyright 2009-2010 Benjamin C. Meyer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,6 +29,9 @@ class PrivacyIndicator : public QLabel public: PrivacyIndicator(QWidget *parent = 0); +protected: + void mousePressEvent(QMouseEvent *event); + }; #endif // PRIVACYINDICATOR_H