summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editors
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty/editors')
-rw-r--r--lib/koproperty/editors/combobox.cpp6
-rw-r--r--lib/koproperty/editors/cursoredit.cpp4
-rw-r--r--lib/koproperty/editors/cursoredit.h2
-rw-r--r--lib/koproperty/editors/sizepolicyedit.cpp8
-rw-r--r--lib/koproperty/editors/sizepolicyedit.h2
5 files changed, 11 insertions, 11 deletions
diff --git a/lib/koproperty/editors/combobox.cpp b/lib/koproperty/editors/combobox.cpp
index 1e2a47d4..92b437e9 100644
--- a/lib/koproperty/editors/combobox.cpp
+++ b/lib/koproperty/editors/combobox.cpp
@@ -178,7 +178,7 @@ ComboBox::setReadOnlyInternal(bool readOnly)
/*TQString
ComboBox::keyForValue(const TQVariant &value)
{
- const TQMap<TQString, TQVariant> *list = property()->valueList();
+ const TQStringVariantMap *list = property()->valueList();
Property::ListData *list = property()->listData();
if (!list)
@@ -186,8 +186,8 @@ ComboBox::keyForValue(const TQVariant &value)
int idx = listData->keys.findIndex( value );
- TQMap<TQString, TQVariant>::ConstIterator endIt = list->constEnd();
- for(TQMap<TQString, TQVariant>::ConstIterator it = list->constBegin(); it != endIt; ++it) {
+ TQStringVariantMap::ConstIterator endIt = list->constEnd();
+ for(TQStringVariantMap::ConstIterator it = list->constBegin(); it != endIt; ++it) {
if(it.data() == value)
return it.key();
}
diff --git a/lib/koproperty/editors/cursoredit.cpp b/lib/koproperty/editors/cursoredit.cpp
index a95ab91f..c0c3010e 100644
--- a/lib/koproperty/editors/cursoredit.cpp
+++ b/lib/koproperty/editors/cursoredit.cpp
@@ -31,7 +31,7 @@
using namespace KoProperty;
-//TQMap<TQString, TQVariant> *CursorEdit::m_spValues = 0;
+//TQStringVariantMap *CursorEdit::m_spValues = 0;
Property::ListData *m_cursorListData = 0;
@@ -40,7 +40,7 @@ CursorEdit::CursorEdit(Property *property, TQWidget *parent, const char *name)
{
/*
if(!m_spValues) {
- m_spValues = new TQMap<TQString, TQVariant>();
+ m_spValues = new TQStringVariantMap();
(*m_spValues)[i18n("Arrow")] = TQt::ArrowCursor;
(*m_spValues)[i18n("Up Arrow")] = TQt::UpArrowCursor;
(*m_spValues)[i18n("Cross")] = TQt::CrossCursor;
diff --git a/lib/koproperty/editors/cursoredit.h b/lib/koproperty/editors/cursoredit.h
index ff3c565c..0748110a 100644
--- a/lib/koproperty/editors/cursoredit.h
+++ b/lib/koproperty/editors/cursoredit.h
@@ -43,7 +43,7 @@ class KOPROPERTY_EXPORT CursorEdit : public ComboBox
virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value);
private:
- static TQMap<TQString, TQVariant> *m_spValues;
+ static TQStringVariantMap *m_spValues;
};
}
diff --git a/lib/koproperty/editors/sizepolicyedit.cpp b/lib/koproperty/editors/sizepolicyedit.cpp
index c027d1dd..5a63c57f 100644
--- a/lib/koproperty/editors/sizepolicyedit.cpp
+++ b/lib/koproperty/editors/sizepolicyedit.cpp
@@ -32,7 +32,7 @@
using namespace KoProperty;
-TQMap<TQString, TQVariant> *SizePolicyEdit::m_spValues = 0;
+TQStringVariantMap *SizePolicyEdit::m_spValues = 0;
SizePolicyEdit::SizePolicyEdit(Property *property, TQWidget *parent, const char *name)
: Widget(property, parent, name)
@@ -50,7 +50,7 @@ SizePolicyEdit::SizePolicyEdit(Property *property, TQWidget *parent, const char
if(!m_spValues) {
- m_spValues = new TQMap<TQString, TQVariant>();
+ m_spValues = new TQStringVariantMap();
(*m_spValues)[i18n("Size Policy", "Fixed")] = TQSizePolicy::Fixed;
(*m_spValues)[i18n("Size Policy", "Minimum")] = TQSizePolicy::Minimum;
(*m_spValues)[i18n("Size Policy", "Maximum")] = TQSizePolicy::Maximum;
@@ -105,8 +105,8 @@ SizePolicyEdit::findDescription(const TQVariant &value) const
if(!m_spValues)
return TQString();
- TQMap<TQString, TQVariant>::ConstIterator endIt = m_spValues->constEnd();
- for (TQMap<TQString, TQVariant>::ConstIterator it = m_spValues->constBegin(); it != endIt; ++ it) {
+ TQStringVariantMap::ConstIterator endIt = m_spValues->constEnd();
+ for (TQStringVariantMap::ConstIterator it = m_spValues->constBegin(); it != endIt; ++ it) {
if (it.data() == value)
return it.key();
}
diff --git a/lib/koproperty/editors/sizepolicyedit.h b/lib/koproperty/editors/sizepolicyedit.h
index f5e81e75..c8d8e7a8 100644
--- a/lib/koproperty/editors/sizepolicyedit.h
+++ b/lib/koproperty/editors/sizepolicyedit.h
@@ -52,7 +52,7 @@ class KOPROPERTY_EXPORT SizePolicyEdit : public Widget
private:
TQVariant m_value;
TQLabel *m_edit;
- static TQMap<TQString, TQVariant> *m_spValues;
+ static TQStringVariantMap *m_spValues;
};
}