Projects/WebKit/Library: Difference between revisions

From KDE TechBase
(Adds a new page, documenting WebKitKDE)
 
(OOPS! It doesn't protect newlines!)
Line 3: Line 3:
=== KWebView ===
=== KWebView ===
A QWebView with KDE integration.
A QWebView with KDE integration.
KWebPage* KWebView::page() : Overridden from QWebView, it return a KWebPage instead of a QWebPage.
KWebPage* KWebView::page() : Overridden from QWebView, it return a KWebPage instead of a QWebPage.<br>
QWidget* KWebView::searchBar() : Get a search bar widget, usable for searching the page.
QWidget* KWebView::searchBar() : Get a search bar widget, usable for searching the page.<br>
void setCustomContextMenu(bool) [slot] : Should KWebView use it's own context menu, or should it emit a signal on right-click.
void setCustomContextMenu(bool) [slot] : Should KWebView use it's own context menu, or should it emit a signal on right-click.<br>
void showContextMenu() [signal] : If setCustomContextMenu is set to true, this signal will be emited when the user right-clicks on the page.
void showContextMenu() [signal] : If setCustomContextMenu is set to true, this signal will be emited when the user right-clicks on the page.<br>
void openUrlInNewTab(const KUrl) [signal] : When the user middle-clicks a link, instead of opening it, KWebView will emit this signal. In tab-enabled browsers, this usually results in opening a new tab.
void openUrlInNewTab(const KUrl) [signal] : When the user middle-clicks a link, instead of opening it, KWebView will emit this signal. In tab-enabled browsers, this usually results in opening a new tab.<br>
=== KWebPage ===
=== KWebPage ===
A QWebPage with KDE integration.
A QWebPage with KDE integration.

Revision as of 03:51, 21 August 2008

About

The WebKitKDE library sits on top of QtWebKit, providing KDE integration (for example, WebActions using KDE icons and shortcuts, downloading using KIO, etc). WebKitKDE provides the following classes:

KWebView

A QWebView with KDE integration. KWebPage* KWebView::page() : Overridden from QWebView, it return a KWebPage instead of a QWebPage.
QWidget* KWebView::searchBar() : Get a search bar widget, usable for searching the page.
void setCustomContextMenu(bool) [slot] : Should KWebView use it's own context menu, or should it emit a signal on right-click.
void showContextMenu() [signal] : If setCustomContextMenu is set to true, this signal will be emited when the user right-clicks on the page.
void openUrlInNewTab(const KUrl) [signal] : When the user middle-clicks a link, instead of opening it, KWebView will emit this signal. In tab-enabled browsers, this usually results in opening a new tab.

KWebPage

A QWebPage with KDE integration.