diff options
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbsubform.cpp')
-rw-r--r-- | kexi/plugins/forms/widgets/kexidbsubform.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbsubform.cpp b/kexi/plugins/forms/widgets/kexidbsubform.cpp index 8cb4f795..6fcd851a 100644 --- a/kexi/plugins/forms/widgets/kexidbsubform.cpp +++ b/kexi/plugins/forms/widgets/kexidbsubform.cpp @@ -29,8 +29,8 @@ #include <formeditor/container.h> #include <formeditor/formmanager.h> -KexiDBSubForm::KexiDBSubForm(KFormDesigner::Form *tqparentForm, TQWidget *tqparent, const char *name) -: TQScrollView(tqparent, name), m_parentForm(tqparentForm), m_form(0), m_widget(0) +KexiDBSubForm::KexiDBSubForm(KFormDesigner::Form *parentForm, TQWidget *tqparent, const char *name) +: TQScrollView(tqparent, name), m_parentForm(parentForm), m_form(0), m_widget(0) { setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken); viewport()->setPaletteBackgroundColor(tqcolorGroup().mid()); @@ -74,7 +74,7 @@ KexiDBSubForm::setFormName(const TQString &name) return; } - TQWidget *pw = tqparentWidget(); + TQWidget *pw = parentWidget(); KexiFormView *view = 0; TQStringList list; while(pw) { @@ -87,18 +87,18 @@ KexiDBSubForm::setFormName(const TQString &name) } else if(! view && pw->isA("KexiFormView")) view = static_cast<KexiFormView*>(pw); // we need a KexiFormView* - pw = pw->tqparentWidget(); + pw = pw->parentWidget(); } - if (!view || !view->tqparentDialog() || !view->tqparentDialog()->mainWin() - || !view->tqparentDialog()->mainWin()->project()->dbConnection()) + if (!view || !view->parentDialog() || !view->parentDialog()->mainWin() + || !view->parentDialog()->mainWin()->project()->dbConnection()) return; - KexiDB::Connection *conn = view->tqparentDialog()->mainWin()->project()->dbConnection(); + KexiDB::Connection *conn = view->parentDialog()->mainWin()->project()->dbConnection(); // we check if there is a form with this name int id = KexiDB::idForObjectName(*conn, name, KexiPart::FormObjectType); - if((id == 0) || (id == view->tqparentDialog()->id())) // == our form + if((id == 0) || (id == view->parentDialog()->id())) // == our form return; // because of recursion when loading // we create the container widget |