diff options
Diffstat (limited to 'src/entryeditdialog.cpp')
-rw-r--r-- | src/entryeditdialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/entryeditdialog.cpp b/src/entryeditdialog.cpp index bccfef7..442fba3 100644 --- a/src/entryeditdialog.cpp +++ b/src/entryeditdialog.cpp @@ -47,8 +47,8 @@ namespace { using Tellico::EntryEditDialog; -EntryEditDialog::EntryEditDialog(TQWidget* tqparent_, const char* name_) - : KDialogBase(tqparent_, name_, false, i18n("Edit Entry"), Help|User1|User2|User3|Apply|Close, User1, false, +EntryEditDialog::EntryEditDialog(TQWidget* parent_, const char* name_) + : KDialogBase(parent_, name_, false, i18n("Edit Entry"), Help|User1|User2|User3|Apply|Close, User1, false, KGuiItem(i18n("&New Entry"))), m_currColl(0), m_tabs(new GUI::TabControl(this)), @@ -250,8 +250,8 @@ void EntryEditDialog::setLayout(Data::CollPtr coll_) { // I don't want anything to be hidden, Keramik has a bug if I don't do this it.current()->setMinimumHeight(it.current()->tqsizeHint().height()); // the tqparent of the grid is the page that got added to the tabs - it.current()->tqparentWidget()->tqlayout()->tqinvalidate(); - it.current()->tqparentWidget()->setMinimumHeight(it.current()->tqparentWidget()->tqsizeHint().height()); + it.current()->parentWidget()->tqlayout()->tqinvalidate(); + it.current()->parentWidget()->setMinimumHeight(it.current()->parentWidget()->tqsizeHint().height()); } setUpdatesEnabled(true); @@ -561,12 +561,12 @@ void EntryEditDialog::removeField(Data::CollPtr, Data::FieldPtr field_) { if(m_currColl->fieldCategories().tqfindIndex(field_->category()) == -1) { // myDebug() << "last field in the category" << endl; // fragile, widget's tqparent is the grid, whose tqparent is the tab page - TQWidget* w = widget->tqparentWidget()->tqparentWidget(); + TQWidget* w = widget->parentWidget()->parentWidget(); m_tabs->removePage(w); delete w; // automatically deletes child widget } else { // much of this replicates code in setLayout() - TQGridLayout* tqlayout = static_cast<TQGridLayout*>(widget->tqparentWidget()->tqlayout()); + TQGridLayout* tqlayout = static_cast<TQGridLayout*>(widget->parentWidget()->tqlayout()); delete widget; // automatically removes from tqlayout TQValueVector<bool> expands(NCOLS, false); @@ -705,7 +705,7 @@ void EntryEditDialog::modifyField(Data::CollPtr coll_, Data::FieldPtr oldField_, // need to update label widths if(newField_->title() != oldField_->title()) { int maxWidth = 0; - TQObjectList* childList = widget->tqparentWidget()->queryList("Tellico::GUI::FieldWidget", 0, false, false); + TQObjectList* childList = widget->parentWidget()->queryList("Tellico::GUI::FieldWidget", 0, false, false); TQObjectListIt it(*childList); for(it.toFirst(); it.current(); ++it) { maxWidth = TQMAX(maxWidth, static_cast<GUI::FieldWidget*>(TQT_TQWIDGET(it.current()))->labelWidth()); @@ -719,7 +719,7 @@ void EntryEditDialog::modifyField(Data::CollPtr coll_, Data::FieldPtr oldField_, // field widgets's tqparent is the grid, whose tqparent is the tab page // this is for singleCategory fields if(newField_->category() != oldField_->category()) { - m_tabs->setTabLabel(widget->tqparentWidget()->tqparentWidget(), newField_->category()); + m_tabs->setTabLabel(widget->parentWidget()->parentWidget(), newField_->category()); } } } |