[Kde-bindings] KDE/kdebindings/csharp/qyoto
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Sun Jun 3 14:07:05 UTC 2007
SVN commit 671017 by rdale:
* Fixed implicit type conversions code for non-QtCore classes to QVariants
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +17 -16 core/QVariantExtras.cs
--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #671016:671017
@@ -1,3 +1,7 @@
+2007-06-03 Richard Dale <rdale at foton.es>
+
+ * Fixed implicit type conversions code for non-QtCore classes to QVariants
+
2007-06-02 Richard Dale <rdale at foton.es>
* Updated the uics tool against the Qt 4.3 sources
--- trunk/KDE/kdebindings/csharp/qyoto/core/QVariantExtras.cs #671016:671017
@@ -133,6 +133,7 @@
return new QVariant();
}
}
+
public static implicit operator QVariant(int arg) {
return new QVariant(arg);
}
@@ -158,52 +159,52 @@
return new QVariant(arg);
}
public static implicit operator QVariant(QColor arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QColor>(arg);
}
public static implicit operator QVariant(QCursor arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QCursor>(arg);
}
public static implicit operator QVariant(QFont arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QFont>(arg);
}
public static implicit operator QVariant(QIcon arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QIcon>(arg);
}
public static implicit operator QVariant(QImage arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QImage>(arg);
}
public static implicit operator QVariant(QKeySequence arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QKeySequence>(arg);
}
public static implicit operator QVariant(QMatrix arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QMatrix>(arg);
}
public static implicit operator QVariant(QPalette arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QPalette>(arg);
}
public static implicit operator QVariant(QPen arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QPen>(arg);
}
public static implicit operator QVariant(QPixmap arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QPixmap>(arg);
}
public static implicit operator QVariant(QPolygon arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QPolygon>(arg);
}
public static implicit operator QVariant(QRegion arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QRegion>(arg);
}
public static implicit operator QVariant(QSizePolicy arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QSizePolicy>(arg);
}
public static implicit operator QVariant(QTextFormat arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QTextFormat>(arg);
}
public static implicit operator QVariant(QTextLength arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QTextLength>(arg);
}
public static implicit operator QVariant(QTransform arg) {
- return new QVariant(arg);
+ return QVariant.FromValue<QTransform>(arg);
}
}
}
\ No newline at end of file
More information about the Kde-bindings
mailing list