summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-01 18:46:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit8c9f6a822fca90779b121670479f5171bd673aca (patch)
treeb94ac2a654e4915677b1f9e9fd213a07e1f1c96d /src/webtab
parentPort WebWindow to use Urlbar class. Easier testing changes... (diff)
downloadrekonq-8c9f6a822fca90779b121670479f5171bd673aca.tar.xz
Fix urlbar widget show
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webpage.cpp18
-rw-r--r--src/webtab/webpage.h1
2 files changed, 19 insertions, 0 deletions
diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp
index c2b6bdde..385a6ac3 100644
--- a/src/webtab/webpage.cpp
+++ b/src/webtab/webpage.cpp
@@ -47,6 +47,7 @@
#include "websnap.h"
#include "webtab.h"
#include "sslinfodialog.h"
+#include "sslwidget.h"
#include "searchengine.h"
#include "webwindow.h"
@@ -727,3 +728,20 @@ bool WebPage::hasSslValid() const
return true;
}
+
+
+void WebPage::showSSLInfo(QPoint pos)
+{
+ if (mainFrame()->url().scheme() == QL1S("https"))
+ {
+ SSLWidget *widget = new SSLWidget(mainFrame()->url(), _sslInfo, view());
+ widget->showAt(pos);
+ }
+ else
+ {
+ KMessageBox::information(view(),
+ i18n("This site does not contain SSL information."),
+ i18nc("Secure Sockets Layer", "SSL")
+ );
+ }
+}
diff --git a/src/webtab/webpage.h b/src/webtab/webpage.h
index 79a8e8f4..1985e047 100644
--- a/src/webtab/webpage.h
+++ b/src/webtab/webpage.h
@@ -81,6 +81,7 @@ private Q_SLOTS:
void manageNetworkErrors(QNetworkReply *reply);
void loadStarted();
void loadFinished(bool);
+ void showSSLInfo(QPoint);
void copyToTempFileResult(KJob*);