Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/PopupItem.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 60 | #endif | |||
---|---|---|---|---|---|
65 | m_ui.webView->setPalette(palette); | 65 | m_ui.webView->setPalette(palette); | ||
66 | #ifndef MARBLE_NO_WEBKITWIDGETS | 66 | #ifndef MARBLE_NO_WEBKITWIDGETS | ||
67 | m_ui.webView->page()->setPalette(palette); | 67 | m_ui.webView->page()->setPalette(palette); | ||
68 | m_ui.webView->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); | 68 | m_ui.webView->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); | ||
69 | #endif | 69 | #endif | ||
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))); | ||
81 | #endif | 81 | #endif | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | PopupItem::~PopupItem() | 84 | PopupItem::~PopupItem() | ||
85 | { | 85 | { | ||
▲ Show 20 Lines • Show All 331 Lines • Show Last 20 Lines |