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/formeditor/editlistviewdialog.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/formeditor/editlistviewdialog.cpp')
-rw-r--r-- | kexi/formeditor/editlistviewdialog.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kexi/formeditor/editlistviewdialog.cpp b/kexi/formeditor/editlistviewdialog.cpp index 020a7876..27878e7f 100644 --- a/kexi/formeditor/editlistviewdialog.cpp +++ b/kexi/formeditor/editlistviewdialog.cpp @@ -38,9 +38,9 @@ namespace KFormDesigner { /// A Dialog to edit the contents of a listview ///////////////////// ///////////////////////////////////////////////////////////////////////////////// -EditListViewDialog::EditListViewDialog(TQWidget *tqparent) -//js(kde3.2 dependent) : KDialogBase(Tabbed, 0/* WFlags */, tqparent, "editlistview_dialog", true, i18n("Edit listview contents"), Ok|Cancel, Ok, false) -: KDialogBase(Tabbed, i18n("Edit Listview Contents"), Ok|Cancel, Ok, tqparent, "editlistview_dialog", true /* modal */, false) +EditListViewDialog::EditListViewDialog(TQWidget *parent) +//js(kde3.2 dependent) : KDialogBase(Tabbed, 0/* WFlags */, parent, "editlistview_dialog", true, i18n("Edit listview contents"), Ok|Cancel, Ok, false) +: KDialogBase(Tabbed, i18n("Edit Listview Contents"), Ok|Cancel, Ok, parent, "editlistview_dialog", true /* modal */, false) { m_column = addPage(i18n("Columns")); m_contents = addPage(i18n("Contents")); @@ -356,33 +356,33 @@ EditListViewDialog::updateButtons(TQListViewItem *item) m_buttons[BNewChild]->setEnabled(true); m_buttons[BRemRow]->setEnabled(true); - m_buttons[BRowUp]->setEnabled( (item->itemAbove() && (item->itemAbove()->tqparent() == item->tqparent())) ); + m_buttons[BRowUp]->setEnabled( (item->itemAbove() && (item->itemAbove()->parent() == item->parent())) ); m_buttons[BRowDown]->setEnabled(item->nextSibling()); } void -EditListViewDialog::loadChildNodes(TQListView *listview, TQListViewItem *item, TQListViewItem *tqparent) +EditListViewDialog::loadChildNodes(TQListView *listview, TQListViewItem *item, TQListViewItem *parent) { TQListViewItem *newItem; if(listview->inherits("KListView")) { - if(tqparent) - newItem = new KListViewItem(tqparent); + if(parent) + newItem = new KListViewItem(parent); else newItem = new KListViewItem(listview); } else { - if(tqparent) - newItem = new TQListViewItem(tqparent); + if(parent) + newItem = new TQListViewItem(parent); else newItem = new TQListViewItem(listview); } // We need to move the item at the end, which is the expected behaviour (by default it is inserted at the beginning) TQListViewItem *last; - if(tqparent) - last = tqparent->firstChild(); + if(parent) + last = parent->firstChild(); else last = listview->firstChild(); @@ -406,12 +406,12 @@ EditListViewDialog::loadChildNodes(TQListView *listview, TQListViewItem *item, T void EditListViewDialog::newRow() { - KListViewItem *tqparent = (KListViewItem*)m_listview->selectedItem(); - if(tqparent) - tqparent = (KListViewItem*)tqparent->tqparent(); + KListViewItem *parent = (KListViewItem*)m_listview->selectedItem(); + if(parent) + parent = (KListViewItem*)parent->parent(); KListViewItem *item; - if(tqparent) - item = new KListViewItem(tqparent, m_listview->selectedItem()); + if(parent) + item = new KListViewItem(parent, m_listview->selectedItem()); else item = new KListViewItem(m_listview, m_listview->selectedItem()); item->setText(0, i18n("New Item")); @@ -421,16 +421,16 @@ EditListViewDialog::newRow() void EditListViewDialog::newChildRow() { - KListViewItem *tqparent = (KListViewItem*)m_listview->currentItem(); + KListViewItem *parent = (KListViewItem*)m_listview->currentItem(); KListViewItem *item; - if(tqparent) - item = new KListViewItem(tqparent); + if(parent) + item = new KListViewItem(parent); else item = new KListViewItem(m_listview, m_listview->currentItem()); item->setText(0, i18n("Sub Item")); m_listview->setCurrentItem(item); - tqparent->setOpen(true); + parent->setOpen(true); } void |