#include <mw/QtWebKit/qwebhistory.h>
class QWebHistoryItem |
The QWebHistoryItem class represents one item in the history of a QWebPage.
Public Member Functions | |
---|---|
QWebHistoryItem(const QWebHistoryItem &) | |
~QWebHistoryItem() | |
QIcon | icon() |
bool | isValid() |
QDateTime | lastVisited() |
QWebHistoryItem & | operator=(const QWebHistoryItem &) |
QUrl | originalUrl() |
void | setUserData(const QVariant &) |
QString | title() |
QUrl | url() |
QVariant | userData() |
The following table shows the properties of the page held by the history item, and the functions used to access them.
Function Description title() The page title. url() The location of the page. originalUrl() The URL used to access the page. lastVisited() The date and time of the user's last visit to the page. icon() The icon associated with the page that was provided by the server. userData() The user specific data that was stored with the history item.
QWebHistoryItem objects are value based, but {explicitly shared}. Changing a QWebHistoryItem instance by calling setUserData() will change all copies of that instance.
See also: QWebHistory, QWebPage::history(), QWebHistoryInterface
QWebHistoryItem | ( | const QWebHistoryItem & | other | ) |
Constructs a history item from other. The new item and other will share their data, and modifying either this item or other will modify both instances.
QWebHistoryItem & | operator= | ( | const QWebHistoryItem & | other | ) |
Assigns the other history item to this. This item and other will share their data, and modifying either this item or other will modify both instances.
void | setUserData | ( | const QVariant & | userData | ) |
All copies of this item will be modified.
See also: userData()
QString | title | ( | ) | const |
Returns the title of the page associated with the history item.
See also: icon(), url(), lastVisited()
QVariant | userData | ( | ) | const |
See also: setUserData()