Changeset View
Changeset View
Standalone View
Standalone View
PopupItem.cpp
Context not available. | |||||
70 | m_ui.webView->setAttribute(Qt::WA_OpaquePaintEvent, false); | 70 | m_ui.webView->setAttribute(Qt::WA_OpaquePaintEvent, false); | ||
---|---|---|---|---|---|
71 | m_ui.webView->setUrl( QUrl( "about:blank" ) ); | 71 | m_ui.webView->setUrl( QUrl( "about:blank" ) ); | ||
72 | 72 | | |||
73 | connect( m_ui.webView, SIGNAL(titleChanged(QString)), m_ui.titleText, SLOT(setText(QString)) ); | | |||
74 | connect( m_ui.webView, SIGNAL(urlChanged(QUrl)), this, SLOT(updateBackButton()) ); | | |||
75 | connect( m_ui.hideButton, SIGNAL(clicked()), this, SIGNAL(hide()) ); | 73 | connect( m_ui.hideButton, SIGNAL(clicked()), this, SIGNAL(hide()) ); | ||
76 | 74 | | |||
77 | #ifndef MARBLE_NO_WEBKITWIDGETS | 75 | #ifndef MARBLE_NO_WEBKITWIDGETS | ||
76 | connect( m_ui.webView, SIGNAL(titleChanged(QString)), m_ui.titleText, SLOT(setText(QString)) ); | ||||
77 | connect( m_ui.webView, SIGNAL(urlChanged(QUrl)), this, SLOT(updateBackButton()) ); | ||||
78 | // Update the popupitem on changes while loading the webpage | 78 | // Update the popupitem on changes while loading the webpage | ||
79 | connect( m_ui.webView->page(), SIGNAL(repaintRequested(QRect)), this, SLOT(requestUpdate()) ); | 79 | connect( m_ui.webView->page(), SIGNAL(repaintRequested(QRect)), this, SLOT(requestUpdate()) ); | ||
80 | connect(m_ui.webView->page(), SIGNAL(linkClicked(QUrl)), this, SLOT(openUrl(QUrl))); | 80 | connect(m_ui.webView->page(), SIGNAL(linkClicked(QUrl)), this, SLOT(openUrl(QUrl))); | ||
Context not available. |