Implement more functions for the Qt build
[WebKit-https.git] / WebKitQt / Api / qwebpagehistory.cpp
index 7f9dd4dc7b9bf4af2fc14b95da14661ebeb0e79d..2e7e74bf7c1b3744bb752d513e5fe64c0d021a23 100644 (file)
@@ -128,6 +128,16 @@ QList<QWebHistoryItem> QWebPageHistory::forwardItems(int maxItems) const
     return ret;
 }
 
+bool QWebPageHistory::canGoBack() const
+{
+    return d->lst->backListCount() > 0;
+}
+
+bool QWebPageHistory::canGoForward() const
+{
+    return d->lst->forwardListCount() > 0;
+}
+
 void QWebPageHistory::goBack()
 {
     d->lst->goBack();