Mercurial > projects > qtd
diff demos/browser/urllineedit.d @ 74:37caa90ce503
more porting
author | mandel |
---|---|
date | Fri, 22 May 2009 23:43:58 +0000 |
parents | 7bfd46c330dc |
children | 0654fc9bac95 |
line wrap: on
line diff
--- a/demos/browser/urllineedit.d Fri May 22 10:59:00 2009 +0000 +++ b/demos/browser/urllineedit.d Fri May 22 23:43:58 2009 +0000 @@ -326,7 +326,7 @@ } } - void focusOutEvent(QFocusEvent event); + void focusOutEvent(QFocusEvent event) { if (m_lineEdit.text().isEmpty() && m_webView) m_lineEdit.setText(QString.fromUtf8(m_webView.url().toEncoded())); @@ -343,7 +343,7 @@ void webViewIconChanged() { - QUrl url = (m_webView) ? m_webView.url() : QUrl(); + QUrl url = (m_webView) ? m_webView.url() : new QUrl(); QIcon icon = BrowserApplication.instance().icon(url); QPixmap pixmap(icon.pixmap(16, 16)); m_iconLabel.setPixmap(pixmap);