summaryrefslogtreecommitdiffstats
path: root/kexi
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 15:22:21 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-06-01 15:22:21 +0900
commit728b7db2846d191399122c440671fd007cdbd0ae (patch)
treecd5e6f3b5ae67ec464b2c05ce0d41016bd9e30c3 /kexi
parent04a12485219f38e113932e8aa20b6bc12d8fa715 (diff)
downloadkoffice-728b7db2846d191399122c440671fd007cdbd0ae.tar.gz
koffice-728b7db2846d191399122c440671fd007cdbd0ae.zip
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kexi')
-rw-r--r--kexi/formeditor/formIO.cpp6
-rw-r--r--kexi/formeditor/objecttree.cpp2
-rw-r--r--kexi/formeditor/objecttree.h16
-rw-r--r--kexi/formeditor/widgetpropertyset.cpp8
-rw-r--r--kexi/kexidb/roweditbuffer.h2
-rw-r--r--kexi/plugins/forms/kexiformview.cpp4
-rw-r--r--kexi/plugins/macros/kexipart/keximacroproperty.cpp4
-rw-r--r--kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp4
8 files changed, 20 insertions, 26 deletions
diff --git a/kexi/formeditor/formIO.cpp b/kexi/formeditor/formIO.cpp
index 657c5ccd..ced41a09 100644
--- a/kexi/formeditor/formIO.cpp
+++ b/kexi/formeditor/formIO.cpp
@@ -987,9 +987,9 @@ FormIO::saveWidget(ObjectTreeItem *item, TQDomElement &parent, TQDomDocument &do
savePropertyElement(tclass, domDoc, "property", "buddy", ((TQLabel*)item->widget())->buddy()->name());
// We save every property in the modifProp list of the ObjectTreeItem
- TQVariantMap *map = new TQVariantMap( *(item->modifiedProperties()) );
- TQMap<TQString,TQVariant>::ConstIterator endIt = map->constEnd();
- for(TQMap<TQString,TQVariant>::ConstIterator it = map->constBegin(); it != endIt; ++it)
+ TQStringVariantMap *map = new TQStringVariantMap( *(item->modifiedProperties()) );
+ TQStringVariantMap::ConstIterator endIt = map->constEnd();
+ for(TQStringVariantMap::ConstIterator it = map->constBegin(); it != endIt; ++it)
{
const TQCString name( it.key().latin1() );
if(name == "hAlign" || name == "vAlign" || name == "wordbreak" || name == "alignment") {
diff --git a/kexi/formeditor/objecttree.cpp b/kexi/formeditor/objecttree.cpp
index fa86e804..a37d2f5b 100644
--- a/kexi/formeditor/objecttree.cpp
+++ b/kexi/formeditor/objecttree.cpp
@@ -90,7 +90,7 @@ void
ObjectTreeItem::addSubproperty(const TQCString &property, const TQVariant& value)
{
if (!m_subprops)
- m_subprops = new TQMap<TQString, TQVariant>();
+ m_subprops = new TQStringVariantMap();
if (!m_props.contains(property))
m_subprops->insert( property, value );
}
diff --git a/kexi/formeditor/objecttree.h b/kexi/formeditor/objecttree.h
index eaa95a0c..32839eab 100644
--- a/kexi/formeditor/objecttree.h
+++ b/kexi/formeditor/objecttree.h
@@ -50,12 +50,6 @@ typedef TQDict<ObjectTreeItem> ObjectTreeDict;
//! @short An iterator for ObjectTreeDict.
typedef TQDictIterator<ObjectTreeItem> ObjectTreeDictIterator;
-//! @short A TQString -> TQVarinat map.
-typedef TQMap<TQString, TQVariant> TQVariantMap;
-
-//! @short A const iterator for TQVariantMap.
-typedef TQMapConstIterator<TQString, TQVariant> TQVariantMapConstIterator;
-
/*!
@short An item representing a widget
Holds the properties of a widget (classname, name, parent, children ..).
@@ -74,9 +68,9 @@ class KFORMEDITOR_EXPORT ObjectTreeItem
ObjectTreeItem* parent() const { return m_parent; }
ObjectTreeList* children() { return &m_children; }
- /*! \return a TQMap<TQString, TQVariant> of all modified properties for this widget.
+ /*! \return a TQStringVariantMap of all modified properties for this widget.
The TQVariant is the old value (ie first value) of the property whose name is the TQString. */
- const TQVariantMap* modifiedProperties() const { return &m_props;}
+ const TQStringVariantMap* modifiedProperties() const { return &m_props;}
//! \return the widget's Container, or 0 if the widget is not a Container.
Container* container() const { return m_container;}
@@ -103,7 +97,7 @@ class KFORMEDITOR_EXPORT ObjectTreeItem
/*! \return subproperties for this item, added by addSubproperty()
or 0 is there are no subproperties. */
- TQMap<TQString, TQVariant>* subproperties() const { return m_subprops; }
+ TQStringVariantMap* subproperties() const { return m_subprops; }
void setPixmapName(const TQCString &property, const TQString &name);
TQString pixmapName(const TQCString &property);
@@ -123,8 +117,8 @@ class KFORMEDITOR_EXPORT ObjectTreeItem
TQString m_name;
ObjectTreeList m_children;
TQGuardedPtr<Container> m_container;
- TQMap<TQString, TQVariant> m_props;
- TQMap<TQString, TQVariant> *m_subprops;
+ TQStringVariantMap m_props;
+ TQStringVariantMap *m_subprops;
TQString m_unknownProps;
TQMap<TQCString, TQString> m_pixmapNames;
ObjectTreeItem* m_parent;
diff --git a/kexi/formeditor/widgetpropertyset.cpp b/kexi/formeditor/widgetpropertyset.cpp
index 64c61112..20182689 100644
--- a/kexi/formeditor/widgetpropertyset.cpp
+++ b/kexi/formeditor/widgetpropertyset.cpp
@@ -275,8 +275,8 @@ WidgetPropertySet::createPropertiesForWidget(TQWidget *w)
if(!tree)
return;
- const TQVariantMap* modifiedProperties = tree->modifiedProperties();
- TQVariantMapConstIterator modifiedPropertiesIt;
+ const TQStringVariantMap* modifiedProperties = tree->modifiedProperties();
+ TQStringVariantMapConstIterator modifiedPropertiesIt;
bool isTopLevel = KFormDesigner::FormManager::self()->isTopLevel(w);
// int count = 0;
KoProperty::Property *newProp = 0;
@@ -416,7 +416,7 @@ WidgetPropertySet::updatePropertyValue(ObjectTreeItem *tree, const char *propert
KoProperty::Property p( d->set[propertyName] );
//! \todo what about set properties, and lists properties
- TQMap<TQString, TQVariant>::ConstIterator it( tree->modifiedProperties()->find(propertyName) );
+ TQStringVariantMap::ConstIterator it( tree->modifiedProperties()->find(propertyName) );
if (it != tree->modifiedProperties()->constEnd()) {
blockSignals(true);
if(meta && meta->isEnumType()) {
@@ -1081,7 +1081,7 @@ WidgetPropertySet::valueCaption(const TQCString &name)
KoProperty::Property::ListData*
WidgetPropertySet::createValueList(WidgetInfo *winfo, const TQStringList &list)
{
-// TQMap <TQString, TQVariant> map;
+// TQStringVariantMap map;
TQStringList names;
TQStringList::ConstIterator endIt = list.end();
for(TQStringList::ConstIterator it = list.begin(); it != endIt; ++it) {
diff --git a/kexi/kexidb/roweditbuffer.h b/kexi/kexidb/roweditbuffer.h
index 568d5daf..913806cb 100644
--- a/kexi/kexidb/roweditbuffer.h
+++ b/kexi/kexidb/roweditbuffer.h
@@ -73,7 +73,7 @@ namespace KexiDB {
*/
class KEXI_DB_EXPORT RowEditBuffer {
public:
- typedef TQMap<TQString,TQVariant> SimpleMap;
+ typedef TQStringVariantMap SimpleMap;
typedef TQMap<QueryColumnInfo*,TQVariant> DBMap;
RowEditBuffer(bool dbAwareBuffer);
diff --git a/kexi/plugins/forms/kexiformview.cpp b/kexi/plugins/forms/kexiformview.cpp
index c6d689f7..47021959 100644
--- a/kexi/plugins/forms/kexiformview.cpp
+++ b/kexi/plugins/forms/kexiformview.cpp
@@ -340,8 +340,8 @@ void KexiFormView::updateValuesForSubproperties()
= dynamic_cast<KFormDesigner::WidgetWithSubpropertiesInterface*>( it.current()->widget() );
if (subpropIface && subpropIface->subwidget() && it.current()->subproperties() ) {
TQWidget *subwidget = subpropIface->subwidget();
- TQMap<TQString, TQVariant>* subprops = it.current()->subproperties();
- for (TQMapConstIterator<TQString, TQVariant> subpropIt = subprops->constBegin(); subpropIt!=subprops->constEnd(); ++subpropIt) {
+ TQStringVariantMap* subprops = it.current()->subproperties();
+ for (TQStringVariantMapConstIterator subpropIt = subprops->constBegin(); subpropIt!=subprops->constEnd(); ++subpropIt) {
kexipluginsdbg << "KexiFormView::loadForm(): delayed setting of the subproperty: widget="
<< it.current()->widget()->name() << " prop=" << subpropIt.key() << " val=" << subpropIt.data() << endl;
diff --git a/kexi/plugins/macros/kexipart/keximacroproperty.cpp b/kexi/plugins/macros/kexipart/keximacroproperty.cpp
index c87cb5b4..3bb5629d 100644
--- a/kexi/plugins/macros/kexipart/keximacroproperty.cpp
+++ b/kexi/plugins/macros/kexipart/keximacroproperty.cpp
@@ -436,8 +436,8 @@ class ListBox : public TQListBox
//kdDebug() << " child name=" << n << " value=" << v << endl;
switch( v.type() ) {
/* case TQVariant::Map: {
- const TQMap<TQString,TQVariant> map = v.toMap();
- for(TQMap<TQString,TQVariant>::ConstIterator it = map.constBegin(); it != map.constEnd(); ++it)
+ const TQStringVariantMap map = v.toMap();
+ for(TQStringVariantMap::ConstIterator it = map.constBegin(); it != map.constEnd(); ++it)
m_items.append(it.key());
} break; */
case TQVariant::List: {
diff --git a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
index d44c59b9..e991d61d 100644
--- a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
+++ b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
@@ -318,8 +318,8 @@ tristate KexiScriptDesignView::storeData(bool /*dontAsk*/)
Kross::Api::InterpreterInfo* info = Kross::Api::Manager::scriptManager()->getInterpreterInfo(language);
if(info) {
Kross::Api::InterpreterInfo::Option::Map defoptions = info->getOptions();
- TQMap<TQString, TQVariant>& options = d->scriptaction->getOptions();
- TQMap<TQString, TQVariant>::ConstIterator it, end( options.constEnd() );
+ TQStringVariantMap& options = d->scriptaction->getOptions();
+ TQStringVariantMap::ConstIterator it, end( options.constEnd() );
for( it = options.constBegin(); it != end; ++it) {
if( defoptions.contains(it.key()) ) { // only remember options which the InterpreterInfo knows about...
scriptelem.setAttribute(it.key(), it.data().toString());