[Kde-bindings] KDE/kdebindings/csharp/qyoto
Arno Rehn
kde at arnorehn.de
Thu May 31 16:32:01 UTC 2007
SVN commit 670188 by arnorehn:
* Added a hack for QFrame.Shape and QFrame.Shadow in uics
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +8 -1 tools/uics/cs/cswriteinitialization.cpp
--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #670187:670188
@@ -1,3 +1,7 @@
+2007-05-31 Arno Rehn <arno at arnorehn.de>
+
+ * Added a hack in uics for QFrame.Shape and QFrame.Shadow
+
2007-05-31 Richard Dale <rdale at foton.es>
* Regenerated the Qyoto sources from the release version of Qt 4.3
--- trunk/KDE/kdebindings/csharp/qyoto/tools/uics/cs/cswriteinitialization.cpp #670187:670188
@@ -746,7 +746,14 @@
propertyValue = p->elementEnum();
if (propertyValue.contains(QLatin1String("::"))) {
QStringList parts = propertyValue.split("::");
- propertyValue = parts[0] + QLatin1String(".") + propertyName.left(1).toUpper() + propertyName.mid(1) + QLatin1String(".") + parts[1];
+ QString csname = propertyName.left(1).toUpper() + propertyName.mid(1);
+ // hack for differing enum names
+ if (csname == "FrameShadow") {
+ csname = "Shadow";
+ } else if (csname == "FrameShape") {
+ csname = "Shape";
+ }
+ propertyValue = parts[0] + QLatin1String(".") + csname + QLatin1String(".") + parts[1];
}
if (!p->elementEnum().contains(QLatin1String("::")))
propertyValue.prepend(className + QLatin1String(QLatin1String(".")));
More information about the Kde-bindings
mailing list