diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/plugins/macros/kexipart/keximacroproperty.cpp | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/plugins/macros/kexipart/keximacroproperty.cpp')
-rw-r--r-- | kexi/plugins/macros/kexipart/keximacroproperty.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kexi/plugins/macros/kexipart/keximacroproperty.cpp b/kexi/plugins/macros/kexipart/keximacroproperty.cpp index aed4a9bd..e67794be 100644 --- a/kexi/plugins/macros/kexipart/keximacroproperty.cpp +++ b/kexi/plugins/macros/kexipart/keximacroproperty.cpp @@ -53,8 +53,8 @@ class KexiMacroProperty::Private TQString name; }; -KexiMacroProperty::KexiMacroProperty(KoProperty::Property* tqparent, KSharedPtr<KoMacro::MacroItem> macroitem, const TQString& name) - : KoProperty::CustomProperty(tqparent) +KexiMacroProperty::KexiMacroProperty(KoProperty::Property* parent, KSharedPtr<KoMacro::MacroItem> macroitem, const TQString& name) + : KoProperty::CustomProperty(parent) , d( new Private() ) { d->macroitem = macroitem; @@ -164,8 +164,8 @@ KoProperty::Property* KexiMacroProperty::createProperty(KSharedPtr<KoMacro::Macr * KexiMacroPropertyFactory */ -KexiMacroPropertyFactory::KexiMacroPropertyFactory(TQObject* tqparent) - : KoProperty::CustomPropertyFactory(tqparent) +KexiMacroPropertyFactory::KexiMacroPropertyFactory(TQObject* parent) + : KoProperty::CustomPropertyFactory(parent) { } @@ -173,14 +173,14 @@ KexiMacroPropertyFactory::~KexiMacroPropertyFactory() { } -KoProperty::CustomProperty* KexiMacroPropertyFactory::createCustomProperty(KoProperty::Property* tqparent) +KoProperty::CustomProperty* KexiMacroPropertyFactory::createCustomProperty(KoProperty::Property* parent) { - kdDebug()<<"KexiMacroPropertyFactory::createCustomProperty tqparent="<<tqparent->name()<<endl; + kdDebug()<<"KexiMacroPropertyFactory::createCustomProperty parent="<<parent->name()<<endl; - KoProperty::CustomProperty* customproperty = tqparent->customProperty(); + KoProperty::CustomProperty* customproperty = parent->customProperty(); KexiMacroProperty* parentcustomproperty = dynamic_cast<KexiMacroProperty*>(customproperty); if(! parentcustomproperty) { - kdWarning() << "KexiMacroPropertyFactory::createCustomProperty() tqparent=" << tqparent->name() << " has an invalid customproperty." << endl; + kdWarning() << "KexiMacroPropertyFactory::createCustomProperty() parent=" << parent->name() << " has an invalid customproperty." << endl; return 0; } @@ -189,7 +189,7 @@ KoProperty::CustomProperty* KexiMacroPropertyFactory::createCustomProperty(KoPro const TQString name = parentcustomproperty->name(); Q_ASSERT(! name.isEmpty()); - KexiMacroProperty* macroproperty = new KexiMacroProperty(tqparent, macroitem, name); + KexiMacroProperty* macroproperty = new KexiMacroProperty(parent, macroitem, name); if(! macroproperty->variable().data()) { delete macroproperty; macroproperty = 0; return 0; @@ -232,12 +232,12 @@ class ListBoxItem : public TQListBoxText virtual ~ListBoxItem() {} void setEnabled(bool enabled) { m_enabled = enabled; } virtual int width(const TQListBox* lb) const { - Q_ASSERT( dynamic_cast<KComboBox*>( lb->tqparent() ) ); - return static_cast<KComboBox*>( lb->tqparent() )->lineEdit()->width() + 2; + Q_ASSERT( dynamic_cast<KComboBox*>( lb->parent() ) ); + return static_cast<KComboBox*>( lb->parent() )->lineEdit()->width() + 2; } virtual int height(const TQListBox* lb) const { - Q_ASSERT( dynamic_cast<KComboBox*>( lb->tqparent() ) ); - return m_enabled ? static_cast<KComboBox*>( lb->tqparent() )->height() + 2 : 0; + Q_ASSERT( dynamic_cast<KComboBox*>( lb->parent() ) ); + return m_enabled ? static_cast<KComboBox*>( lb->parent() )->height() + 2 : 0; } private: bool m_enabled; @@ -281,7 +281,7 @@ class EditListBoxItem : public ListBoxItem protected: virtual void paint(TQPainter* p) { if(! m_widget) return; - Q_ASSERT( dynamic_cast<KComboBox*>( listBox()->tqparent() ) ); + Q_ASSERT( dynamic_cast<KComboBox*>( listBox()->parent() ) ); const int w = width(listBox()); const int h = height(listBox()); m_widget->setFixedSize(w - 2, h - 2); @@ -342,7 +342,7 @@ class EditListBoxItem : public ListBoxItem variable->text(), // caption TQString(), // description type, // type - 0 //parentproperty // tqparent + 0 //parentproperty // parent ); m_widget = KoProperty::FactoryManager::self()->createWidgetForProperty(m_prop); @@ -367,8 +367,8 @@ class EditListBoxItem : public ListBoxItem class ListBox : public TQListBox { public: - ListBox(KComboBox* tqparent, KexiMacroProperty* macroproperty) - : TQListBox(tqparent) + ListBox(KComboBox* parent, KexiMacroProperty* macroproperty) + : TQListBox(parent) , m_macroproperty(macroproperty) , m_edititem(0) { @@ -501,8 +501,8 @@ class KexiMacroPropertyWidget::Private ListBox* listbox; }; -KexiMacroPropertyWidget::KexiMacroPropertyWidget(KoProperty::Property* property, TQWidget* tqparent) - : KoProperty::Widget(property, tqparent) +KexiMacroPropertyWidget::KexiMacroPropertyWidget(KoProperty::Property* property, TQWidget* parent) + : KoProperty::Widget(property, parent) , d( new Private() ) { kdDebug() << "KexiMacroPropertyWidget::KexiMacroPropertyWidget() Ctor" << endl; |