diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-05 01:31:13 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-05 01:31:13 +0200 |
commit | 352168759ea96b35296eaf33790fbe073b69f69b (patch) | |
tree | f30a483162d84101b142825823872e64489620ce /src/webpage.cpp | |
parent | A "nice" hack to fix bug 211557 (diff) | |
download | rekonq-352168759ea96b35296eaf33790fbe073b69f69b.tar.xz |
This commit is the first implementation of a new new new urlbar
Here are its features:
- KLineEdit based
- ability to easily add "icons" :)
- SSL informations shown (a-la firefox)
- smoother animation
- cleaner code
- data QString, not KUrl based (Users type string, not urls!!!)
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 71cc8be4..8dc0ef96 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -304,18 +304,9 @@ void WebPage::loadFinished(bool) { wallet()->fillFormData(mainFrame()); } - - // TODO: implement me! - if(_sslInfo.isValid()) - { - // show an icon in the urlbar - kDebug() << "----------------- SSL VALID INFO!!!! ------------------"; - } - else - { - // hide the icon in the urlbar - kDebug() << "----------------- SSL INFO NOT VALID... ------------------"; - } + + if( mainFrame()->url().scheme() == QL1S("https") ) + emit validSSLInfo( _sslInfo.isValid() ); } @@ -538,13 +529,23 @@ void WebPage::showSSLInfo() KSslInfoDialog::errorsFromString( _sslInfo.certificateErrors() ) ); - dlg->open(); + dlg->exec(); delete dlg; - } - else + + return; + } + + if( mainFrame()->url().scheme() == QL1S("https") ) + { + KMessageBox::error( view(), + i18n("The SSL information for this site appears to be corrupt."), + i18nc("Secure Sockets Layer", "SSL") + ); + } + else { - KMessageBox::information( 0, - i18n("The SSL information for this site appears to be corrupt."), + KMessageBox::information( view(), + i18n("This site doesn't contain SSL information."), i18nc("Secure Sockets Layer", "SSL") ); } |