summaryrefslogtreecommitdiff
path: root/src/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-05 00:27:23 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-05 00:27:23 +0100
commitb9f8ccd9099fa48406203ad5c5389266b3318d88 (patch)
tree3725c935fb14346301df79f1ec8fb4e6eebca66f /src/urlbar.cpp
parentNew Bookmarks menu, sharing bkmrs with Konqueror (diff)
downloadrekonq-b9f8ccd9099fa48406203ad5c5389266b3318d88.tar.xz
QUrl --> KUrl!
Diffstat (limited to 'src/urlbar.cpp')
-rw-r--r--src/urlbar.cpp33
1 files changed, 2 insertions, 31 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index cde55cb3..1ee02dc3 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -54,7 +54,7 @@ UrlBar::UrlBar(QWidget *parent)
UrlBar::~UrlBar()
{
-// delete m_webView;
+ delete m_webView;
delete m_iconLabel;
delete m_lineEdit;
}
@@ -87,7 +87,7 @@ void UrlBar::webViewUrlChanged(const QUrl &url)
void UrlBar::webViewIconChanged()
{
- QUrl url = (m_webView) ? m_webView->url() : QUrl();
+ KUrl url = (m_webView) ? m_webView->url() : KUrl();
QIcon icon = BrowserApplication::instance()->icon(url);
QPixmap pixmap(icon.pixmap(16, 16));
m_iconLabel->setPixmap(pixmap);
@@ -104,32 +104,3 @@ QLinearGradient UrlBar::generateGradient(const QColor &color) const
gradient.setColorAt(1, m_defaultBaseColor);
return gradient;
}
-
-// FIXME
-// void UrlBar::paintEvent(QPaintEvent *event)
-// {
-// QPalette p = palette();
-// if (m_webView && m_webView->url().scheme() == QLatin1String("https")) {
-// QColor lightYellow(248, 248, 210);
-// p.setBrush(QPalette::Base, generateGradient(lightYellow));
-// } else {
-// p.setBrush(QPalette::Base, m_defaultBaseColor);
-// }
-// setPalette(p);
-//
-// QPainter painter(this);
-// QStyleOptionFrameV2 panel;
-// // initStyleOption(&panel);
-// QRect backgroundRect = style()->subElementRect(QStyle::SE_LineEditContents, &panel, this);
-// if (m_webView && !hasFocus())
-// {
-// int progress = m_webView->progress();
-// QColor loadingColor = QColor(116, 192, 250);
-// painter.setBrush(generateGradient(loadingColor));
-// painter.setPen(Qt::transparent);
-// int mid = backgroundRect.width() / 100 * progress;
-// QRect progressRect(backgroundRect.x(), backgroundRect.y(), mid, backgroundRect.height());
-// painter.drawRect(progressRect);
-// }
-// }
-