diff options
Diffstat (limited to 'kexi/widget/kexibrowser.cpp')
-rw-r--r-- | kexi/widget/kexibrowser.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kexi/widget/kexibrowser.cpp b/kexi/widget/kexibrowser.cpp index 0f8b5e02..4c279382 100644 --- a/kexi/widget/kexibrowser.cpp +++ b/kexi/widget/kexibrowser.cpp @@ -68,8 +68,8 @@ KexiBrowserView::KexiBrowserView(KexiMainWindow *mainWin) setFocusProxy(m_browser); }*/ -KexiBrowser::KexiBrowser(TQWidget* tqparent, KexiMainWindow *mainWin, int features) - : TQWidget(tqparent, "KexiBrowser") +KexiBrowser::KexiBrowser(TQWidget* parent, KexiMainWindow *mainWin, int features) + : TQWidget(parent, "KexiBrowser") , m_mainWin(mainWin) , m_features(features) , m_actions( new KActionCollection(this) ) @@ -370,18 +370,18 @@ KexiBrowserItem *KexiBrowser::addGroup(KexiPart::Info& info) KexiBrowserItem* KexiBrowser::addItem(KexiPart::Item& item) { //part object for this item - KexiBrowserItem *tqparent = item.mimeType().isEmpty() ? 0 : m_baseItems.find(item.mimeType().lower()); - return addItem(item, tqparent, tqparent->info()); + KexiBrowserItem *parent = item.mimeType().isEmpty() ? 0 : m_baseItems.find(item.mimeType().lower()); + return addItem(item, parent, parent->info()); } -KexiBrowserItem* KexiBrowser::addItem(KexiPart::Item& item, KexiBrowserItem *tqparent, KexiPart::Info* info) +KexiBrowserItem* KexiBrowser::addItem(KexiPart::Item& item, KexiBrowserItem *parent, KexiPart::Info* info) { -// if (!tqparent) //TODO: add "Other" part group for that +// if (!parent) //TODO: add "Other" part group for that // return 0; -// kdDebug() << "KexiBrowser::addItem() found tqparent:" << tqparent << endl; +// kdDebug() << "KexiBrowser::addItem() found parent:" << parent << endl; KexiBrowserItem *bitem; - if (tqparent) - bitem = new KexiBrowserItem(tqparent, info, &item); + if (parent) + bitem = new KexiBrowserItem(parent, info, &item); else bitem = new KexiBrowserItem(m_list, info, &item); m_normalItems.insert(item.identifier(), bitem); @@ -400,7 +400,7 @@ KexiBrowser::slotRemoveItem(const KexiPart::Item &item) TQListViewItem *new_item_to_select = 0; if (it==to_remove) {//compute item to select if current one will be removed new_item_to_select = it->itemBelow();//nearest item to select - if (!new_item_to_select || new_item_to_select->tqparent()!=it->tqparent()) { + if (!new_item_to_select || new_item_to_select->parent()!=it->parent()) { new_item_to_select = it->itemAbove(); } } @@ -421,7 +421,7 @@ KexiBrowser::slotContextMenu(KListView* /*list*/, TQListViewItem *item, const TQ pm = m_itemPopup; //update popup title TQString title_text = bit->text(0).stripWhiteSpace(); - KexiBrowserItem *par_it = static_cast<KexiBrowserItem*>(bit->tqparent()); + KexiBrowserItem *par_it = static_cast<KexiBrowserItem*>(bit->parent()); KexiPart::Part* par_part = 0; if (par_it && par_it->info() && ((par_part = Kexi::partManager().part(par_it->info()))) && !par_part->instanceCaption().isEmpty()) { //add part type name @@ -471,7 +471,7 @@ KexiBrowser::slotSelectionChanged(TQListViewItem* i) return; KexiPart::Part* part = Kexi::partManager().part(it->info()); if (!part) { - it = static_cast<KexiBrowserItem*>(it->tqparent()); + it = static_cast<KexiBrowserItem*>(it->parent()); if (it) { part = Kexi::partManager().part(it->info()); } @@ -710,7 +710,7 @@ void KexiBrowser::itemRenameDone() m_list->nameEndsWithAsterisk = false; } it->setText(0, txt); - it->tqparent()->sort(); + it->parent()->sort(); setFocus(); } @@ -852,8 +852,8 @@ void KexiBrowser::clear() } //-------------------------------------------- -KexiBrowserListView::KexiBrowserListView(TQWidget *tqparent) - : KListView(tqparent, "KexiBrowserListView") +KexiBrowserListView::KexiBrowserListView(TQWidget *parent) + : KListView(parent, "KexiBrowserListView") , nameEndsWithAsterisk(false) , enableExecuteArea(true) { |