[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] branches/KDE/4.4/kdebindings/csharp/qtwebkit
From: Arno Rehn <kde () arnorehn ! de>
Date: 2010-01-28 19:52:48
Message-ID: 1264708368.530472.19617.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1081580 by arnorehn:
Implement the IEnumerable<T> interface for QWebElementCollection.
It can now be iterated with
foreach (QWebElement element in collection) {
/* code */
}
CCMAIL: kde-bindings@kde.org
M +1 -1 qtwebkit/QWebElementCollection.cs
A qtwebkit/QWebElementCollectionExtras.cs
M +8 -0 src/qtwebkithandlers.cpp
--- branches/KDE/4.4/kdebindings/csharp/qtwebkit/qtwebkit/QWebElementCollection.cs #1081579:1081580
@@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
[SmokeClass("QWebElementCollection")]
- public class QWebElementCollection : Object, IDisposable {
+ public partial class QWebElementCollection : Object, IDisposable, IEnumerable<QWebElement> {
protected SmokeInvocation interceptor = null;
private IntPtr smokeObject;
protected QWebElementCollection(Type dummy) {}
--- branches/KDE/4.4/kdebindings/csharp/qtwebkit/src/qtwebkithandlers.cpp #1081579:1081580
@@ -25,8 +25,16 @@
DEF_LIST_MARSHALLER( QWebFrameList, QList<QWebFrame*>, QWebFrame )
DEF_VALUELIST_MARSHALLER( QWebHistoryItemList, QList<QWebHistoryItem>, QWebHistoryItem )
+#if QT_VERSION >= 0x40600
+#include <QtWebKit/qwebelement.h>
+DEF_VALUELIST_MARSHALLER( QWebElementList, QList<QWebElement>, QWebElement )
+#endif
+
TypeHandler QtWebKit_handlers[] = {
{ "QList<QWebFrame*>", marshall_QWebFrameList },
{ "QList<QWebHistoryItem>", marshall_QWebHistoryItemList },
+#if QT_VERSION >= 0x40600
+ { "QList<QWebElement>", marshall_QWebElementList },
+#endif
{ 0, 0 }
};
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic