<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -85,7 +85,7 @@ void AdBlockPage::checkRule(const AdBlockRule *rule, QWebPage *page, const QStri
     Q_UNUSED(page);
 #if QT_VERSION &gt;= 0x040600
     QWebElement document = page-&gt;mainFrame()-&gt;documentElement();
-    QList&lt;QWebElement&gt; elements = document.findAll(selectorQuery);
+    QWebElementCollection elements = document.findAll(selectorQuery);
 #if defined(ADBLOCKPAGE_DEBUG)
     if (elements.count() != 0)
         qDebug() &lt;&lt; &quot;AdBlockPage::&quot; &lt;&lt; __FUNCTION__ &lt;&lt; &quot;blocking&quot; &lt;&lt; elements.count() &lt;&lt; &quot;items&quot; &lt;&lt; selectorQuery &lt;&lt; elements.count() &lt;&lt; &quot;rule:&quot; &lt;&lt; rule-&gt;filter();</diff>
      <filename>src/adblock/adblockpage.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -116,7 +116,7 @@ void ClickToFlash::load(bool loadAll)
         QWebFrame *frame = frames.takeFirst();
         QWebElement docElement = frame-&gt;documentElement();
 
-        QList&lt;QWebElement&gt; elements;
+        QWebElementCollection elements;
         elements.append(docElement.findAll(selector.arg(QLatin1String(&quot;object&quot;))));
         elements.append(docElement.findAll(selector.arg(QLatin1String(&quot;embed&quot;))));
 </diff>
      <filename>src/qwebplugins/clicktoflash/clicktoflash.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -618,7 +618,10 @@ void TabWidget::closeTab(int index)
         m_recentlyClosedTabsAction-&gt;setEnabled(true);
         m_recentlyClosedTabs.prepend(tab-&gt;url());
 #if QT_VERSION &gt;= 0x040600
-        m_recentlyClosedTabsHistory.prepend(tab-&gt;history()-&gt;saveState());
+        QByteArray tabHistory;
+        QDataStream tabHistoryStream(&amp;tabHistory, QIODevice::WriteOnly);
+        tabHistoryStream &lt;&lt; tab-&gt;history();
+        m_recentlyClosedTabsHistory.prepend(tabHistory);
 #else
         m_recentlyClosedTabsHistory.prepend(QByteArray());
 #endif
@@ -859,7 +862,11 @@ QUrl TabWidget::guessUrlFromString(const QString &amp;string)
     if (url.isValid())
         return url;
 
+#if QT_VERSION &gt;= 0x040600
+    url = QUrl::fromUserInput(string);
+#else
     url = WebView::guessUrlFromString(string);
+#endif
 
     if (url.scheme() == QLatin1String(&quot;about&quot;)
         &amp;&amp; url.path() == QLatin1String(&quot;home&quot;))
@@ -1066,10 +1073,14 @@ QByteArray TabWidget::saveState() const
         if (WebView *tab = webView(i)) {
             tabs.append(QString::fromUtf8(tab-&gt;url().toEncoded()));
 #if QT_VERSION &gt;= 0x040600
-            if (tab-&gt;history()-&gt;count() != 0)
-                tabsHistory.append(tab-&gt;history()-&gt;saveState());
-            else
-                tabsHistory.append(QByteArray());
+            if (tab-&gt;history()-&gt;count() != 0) {
+                QByteArray tabHistory;
+                QDataStream tabHistoryStream(&amp;tabHistory, QIODevice::WriteOnly);
+                tabHistoryStream &lt;&lt; tab-&gt;history();
+                tabsHistory.append(tabHistory);
+            } else {
+                tabsHistory &lt;&lt; QByteArray();
+            }
 #else
             tabsHistory.append(QByteArray());
 #endif
@@ -1131,8 +1142,10 @@ bool TabWidget::restoreState(const QByteArray &amp;state)
 void TabWidget::createTab(const QByteArray &amp;historyState, TabWidget::OpenUrlIn tab)
 {
 #if QT_VERSION &gt;= 0x040600
-    if (WebView *webView = getView(tab, currentWebView()))
-        webView-&gt;history()-&gt;restoreState(historyState);
+    if (WebView *webView = getView(tab, currentWebView())) {
+        QDataStream historyStream(historyState);
+        historyStream &gt;&gt; *webView-&gt;history();
+    }
 #else
     qWarning() &lt;&lt; &quot;Warning: TabWidget::createTab should not be called, but it is...&quot;;
     Q_UNUSED(historyState);</diff>
      <filename>src/tabwidget.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -133,7 +133,7 @@ QList&lt;WebPageLinkedResource&gt; WebPage::linkedResources(const QString &amp;relation)
 #if QT_VERSION &gt;= 0x040600 || defined(WEBKIT_TRUNK)
     QUrl baseUrl = mainFrame()-&gt;baseUrl();
 
-    QList&lt;QWebElement&gt; linkElements = mainFrame()-&gt;findAllElements(QLatin1String(&quot;html &gt; head &gt; link&quot;));
+    QWebElementCollection linkElements = mainFrame()-&gt;findAllElements(QLatin1String(&quot;html &gt; head &gt; link&quot;));
 
     foreach (const QWebElement &amp;linkElement, linkElements) {
         QString rel = linkElement.attribute(QLatin1String(&quot;rel&quot;));</diff>
      <filename>src/webpage.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -439,7 +439,7 @@ void WebView::addSearchEngine()
 
     QUrl searchUrl(page()-&gt;mainFrame()-&gt;baseUrl().resolved(QUrl(formElement.attribute(QLatin1String(&quot;action&quot;)))));
     QMap&lt;QString, QString&gt; searchEngines;
-    QList&lt;QWebElement&gt; inputFields = formElement.findAll(QLatin1String(&quot;input&quot;));
+    QWebElementCollection inputFields = formElement.findAll(QLatin1String(&quot;input&quot;));
     foreach (QWebElement inputField, inputFields) {
         QString type = inputField.attribute(QLatin1String(&quot;type&quot;), QLatin1String(&quot;text&quot;));
         QString name = inputField.attribute(QLatin1String(&quot;name&quot;));
@@ -461,14 +461,14 @@ void WebView::addSearchEngine()
         }
     }
 
-    QList&lt;QWebElement&gt; selectFields = formElement.findAll(QLatin1String(&quot;select&quot;));
+    QWebElementCollection selectFields = formElement.findAll(QLatin1String(&quot;select&quot;));
     foreach (QWebElement selectField, selectFields) {
         QString name = selectField.attribute(QLatin1String(&quot;name&quot;));
         int selectedIndex = selectField.evaluateJavaScript(QLatin1String(&quot;this.selectedIndex&quot;)).toInt();
         if (selectedIndex == -1)
             continue;
 
-        QList&lt;QWebElement&gt; options = selectField.findAll(QLatin1String(&quot;option&quot;));
+        QWebElementCollection options = selectField.findAll(QLatin1String(&quot;option&quot;));
         QString value = options.at(selectedIndex).toPlainText();
         searchUrl.addQueryItem(name, value);
     }
@@ -485,8 +485,8 @@ void WebView::addSearchEngine()
     }
 
     QString engineName;
-    QList&lt;QWebElement&gt; labels = formElement.findAll(QString(QLatin1String(&quot;label[for=\&quot;%1\&quot;]&quot;)).arg(elementName));
-    if (!labels.isEmpty())
+    QWebElementCollection labels = formElement.findAll(QString(QLatin1String(&quot;label[for=\&quot;%1\&quot;]&quot;)).arg(elementName));
+    if (labels.count() &gt; 0)
         engineName = labels.at(0).toPlainText();
 
     engineName = QInputDialog::getText(this, tr(&quot;Engine name&quot;), tr(&quot;Type in a name for the engine&quot;),
@@ -824,7 +824,7 @@ void WebView::showAccessKeys()
     // Priority first goes to elements with accesskey attributes
     QList&lt;QWebElement&gt; alreadyLabeled;
     foreach (const QString &amp;elementType, supportedElement) {
-        QList&lt;QWebElement&gt; result = page()-&gt;mainFrame()-&gt;findAllElements(elementType);
+        QList&lt;QWebElement&gt; result = page()-&gt;mainFrame()-&gt;findAllElements(elementType).toList();
         foreach (const QWebElement &amp;element, result) {
             const QRect geometry = element.geometry();
             if (geometry.size().isEmpty()
@@ -853,7 +853,7 @@ void WebView::showAccessKeys()
     // Pick an access key first from the letters in the text and then from the
     // list of unused access keys
     foreach (const QString &amp;elementType, supportedElement) {
-        QList&lt;QWebElement&gt; result = page()-&gt;mainFrame()-&gt;findAllElements(elementType);
+        QWebElementCollection result = page()-&gt;mainFrame()-&gt;findAllElements(elementType);
         foreach (const QWebElement &amp;element, result) {
             const QRect geometry = element.geometry();
             if (unusedKeys.isEmpty()</diff>
      <filename>src/webview.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>032b0643626a8fab9dc26c4d22cdac98c6fd95ec</id>
    </parent>
  </parents>
  <author>
    <name>Tor Arne Vestb&#248;</name>
    <email>tor.arne.vestbo@nokia.com</email>
  </author>
  <url>http://github.com/Arora/arora/commit/1193ab397b1e220d96080a6b9275f7eb605aa8b2</url>
  <id>1193ab397b1e220d96080a6b9275f7eb605aa8b2</id>
  <committed-date>2009-11-08T06:44:36-08:00</committed-date>
  <authored-date>2009-11-02T06:10:49-08:00</authored-date>
  <message>Fix build against trunk</message>
  <tree>7ee52af33fbdc0890eb2507dd13f9a47a4e688b5</tree>
  <committer>
    <name>Jakub Wieczorek</name>
    <email>faw217@gmail.com</email>
  </committer>
</commit>
