[Kde-bindings] branches/KDE/4.4/kdebindings/csharp/qyoto/core
Arno Rehn
kde at arnorehn.de
Tue Jan 26 15:49:51 UTC 2010
SVN commit 1080630 by arnorehn:
add implicit conversions QVariant <-> QRect
CCMAIL: kde-bindings at kde.org
M +6 -0 QVariantExtras.cs
--- branches/KDE/4.4/kdebindings/csharp/qyoto/core/QVariantExtras.cs #1080629:1080630
@@ -228,6 +228,9 @@
public static implicit operator QVariant(QPolygon arg) {
return QVariant.FromValue<QPolygon>(arg);
}
+ public static implicit operator QVariant(QRect arg) {
+ return QVariant.FromValue<QRect>(arg);
+ }
public static implicit operator QVariant(QRegion arg) {
return QVariant.FromValue<QRegion>(arg);
}
@@ -309,6 +312,9 @@
public static implicit operator QPolygon(QVariant arg) {
return arg.Value<QPolygon>();
}
+ public static implicit operator QRect(QVariant arg) {
+ return arg.Value<QRect>();
+ }
public static implicit operator QRegion(QVariant arg) {
return arg.Value<QRegion>();
}
More information about the Kde-bindings
mailing list