diff options
author | Michele Calgaro <[email protected]> | 2023-07-11 21:42:08 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-07-11 21:42:08 +0900 |
commit | 20e4a19b0d7cc800d57be50c56d69023adae4046 (patch) | |
tree | 522b0ae95b8f7e9ee59a3b405de24b2dd8180bc4 /kexi/formeditor/formIO.cpp | |
parent | c2fdb394e63c0df50f1a38eace1077a9151374ce (diff) | |
download | koffice-20e4a19b0d7cc800d57be50c56d69023adae4046.tar.gz koffice-20e4a19b0d7cc800d57be50c56d69023adae4046.zip |
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kexi/formeditor/formIO.cpp')
-rw-r--r-- | kexi/formeditor/formIO.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/formeditor/formIO.cpp b/kexi/formeditor/formIO.cpp index 503814d5..298c07f8 100644 --- a/kexi/formeditor/formIO.cpp +++ b/kexi/formeditor/formIO.cpp @@ -177,7 +177,7 @@ FormIO::saveFormToDom(Form *form, TQDomDocument &domDoc) // We create the top class element TQDomElement baseClass = domDoc.createElement("class"); uiElement.appendChild(baseClass); - TQDomText baseClassV = domDoc.createTextNode(TQWIDGET_OBJECT_NAME_STRING); + TQDomText baseClassV = domDoc.createTextNode("TQWidget"); baseClass.appendChild(baseClassV); // Save the toplevel widgets, and so the whole Form @@ -952,11 +952,11 @@ FormIO::saveWidget(ObjectTreeItem *item, TQDomElement &parent, TQDomDocument &do } if(!item->parent()) // Toplevel widget - tclass.setAttribute("class", TQWIDGET_OBJECT_NAME_STRING); - // For compatibility, HBox, VBox and Grid are saved as TQLAYOUTWIDGET_OBJECT_NAME_STRING + tclass.setAttribute("class", "TQWidget"); + // For compatibility, HBox, VBox and Grid are saved as "TQLayoutWidget" else if(item->widget()->isA("HBox") || item->widget()->isA("VBox") || item->widget()->isA("Grid") || item->widget()->isA("HFlow") || item->widget()->isA("VFlow")) - tclass.setAttribute("class", TQLAYOUTWIDGET_OBJECT_NAME_STRING); + tclass.setAttribute("class", "TQLayoutWidget"); else if(item->widget()->isA("CustomWidget")) tclass.setAttribute("class", item->className()); else // Normal widgets @@ -983,7 +983,7 @@ FormIO::saveWidget(ObjectTreeItem *item, TQDomElement &parent, TQDomDocument &do savePropertyValue(tclass, domDoc, "geometry", item->widget()->property("geometry"), item->widget()); // Save the buddy widget for a label - if(item->widget()->inherits(TQLABEL_OBJECT_NAME_STRING) && ((TQLabel*)item->widget())->buddy()) + if(item->widget()->inherits("TQLabel") && ((TQLabel*)item->widget())->buddy()) savePropertyElement(tclass, domDoc, "property", "buddy", ((TQLabel*)item->widget())->buddy()->name()); // We save every property in the modifProp list of the ObjectTreeItem @@ -1141,7 +1141,7 @@ FormIO::loadWidget(Container *container, const TQDomElement &el, TQWidget *paren // We translate some name (for compatibility) if(el.tagName() == "spacer") classname = "Spring"; - else if(el.attribute("class") == TQLAYOUTWIDGET_OBJECT_NAME_STRING) + else if(el.attribute("class") == "TQLayoutWidget") { for(TQDomNode n = el.firstChild(); !n.isNull(); n = n.nextSibling()) { |