diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 | 
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 | 
| commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
| tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/propertymachinefactory.cpp | |
| parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
| download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip | |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/propeditor/propertymachinefactory.cpp')
| -rw-r--r-- | lib/widgets/propeditor/propertymachinefactory.cpp | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/lib/widgets/propeditor/propertymachinefactory.cpp b/lib/widgets/propeditor/propertymachinefactory.cpp index 0ab0945f..613777d6 100644 --- a/lib/widgets/propeditor/propertymachinefactory.cpp +++ b/lib/widgets/propeditor/propertymachinefactory.cpp @@ -22,10 +22,10 @@  #ifndef PURE_QT  #include <klocale.h>  #else -#define i18n QObject::tr +#define i18n TQObject::tr  #endif -#include <qmap.h> +#include <tqmap.h>  #include "property.h"  #include "childproperty.h" @@ -73,8 +73,8 @@ PropertyMachineFactory::~PropertyMachineFactory()  Machine *PropertyMachineFactory::machineForProperty(MultiProperty *property)  {      int type = property->type(); -    QString propertyName = property->name(); -    QMap<QString, QVariant> valueList = property->valueList(); +    TQString propertyName = property->name(); +    TQMap<TQString, TQVariant> valueList = property->valueList();      if (m_registeredForType.contains(propertyName))          return (*m_registeredForType[propertyName])(); @@ -143,14 +143,14 @@ Machine *PropertyMachineFactory::machineForProperty(MultiProperty *property)          }          case Property::SizePolicy:          { -            QMap<QString, QVariant> spValues; -            spValues[i18n("Fixed")] = QSizePolicy::Fixed; -            spValues[i18n("Minimum")] = QSizePolicy::Minimum; -            spValues[i18n("Maximum")] = QSizePolicy::Maximum; -            spValues[i18n("Preferred")] = QSizePolicy::Preferred; -            spValues[i18n("Expanding")] = QSizePolicy::Expanding; -            spValues[i18n("Minimum Expanding")] = QSizePolicy::MinimumExpanding; -            spValues[i18n("Ignored")] = QSizePolicy::Ignored; +            TQMap<TQString, TQVariant> spValues; +            spValues[i18n("Fixed")] = TQSizePolicy::Fixed; +            spValues[i18n("Minimum")] = TQSizePolicy::Minimum; +            spValues[i18n("Maximum")] = TQSizePolicy::Maximum; +            spValues[i18n("Preferred")] = TQSizePolicy::Preferred; +            spValues[i18n("Expanding")] = TQSizePolicy::Expanding; +            spValues[i18n("Minimum Expanding")] = TQSizePolicy::MinimumExpanding; +            spValues[i18n("Ignored")] = TQSizePolicy::Ignored;              Machine *mach = new Machine(new PSizePolicyEdit(property, spValues));              property->details.append(ChildProperty(property, i18n("hSizeType"), ChildProperty::SizePolicy_HorData, spValues, i18n("Horizontal Size Type"))); @@ -161,7 +161,7 @@ Machine *PropertyMachineFactory::machineForProperty(MultiProperty *property)          }          case Property::Cursor:          { -            QMap<QString, QVariant> spValues; +            TQMap<TQString, TQVariant> spValues;              spValues[i18n("Arrow")] = Qt::ArrowCursor;              spValues[i18n("Up Arrow")] = Qt::UpArrowCursor;              spValues[i18n("Cross")] = Qt::CrossCursor; | 
