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 | e47aaa9b34ffc363d268aca989aab28fdfaf9821 (patch) | |
tree | 369b56d21949c574d30f71bdf24bf1e04f5e1877 /src/gui/itemselector.cpp | |
parent | e05894553004a47b1e2f276bedcf5963b57a3932 (diff) | |
download | ktechlab-e47aaa9b34ffc363d268aca989aab28fdfaf9821.tar.gz ktechlab-e47aaa9b34ffc363d268aca989aab28fdfaf9821.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/itemselector.cpp')
-rw-r--r-- | src/gui/itemselector.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/gui/itemselector.cpp b/src/gui/itemselector.cpp index 38db8f3..539bc40 100644 --- a/src/gui/itemselector.cpp +++ b/src/gui/itemselector.cpp @@ -30,16 +30,16 @@ #include <assert.h> -ILVItem::ILVItem( TQListView* tqparent, const TQString &id ) - : KListViewItem( tqparent, 0 ) +ILVItem::ILVItem( TQListView* parent, const TQString &id ) + : KListViewItem( parent, 0 ) { m_id = id; b_isRemovable = false; m_pProjectItem = 0l; } -ILVItem::ILVItem( TQListViewItem* tqparent, const TQString &id ) - : KListViewItem( tqparent, 0 ) +ILVItem::ILVItem( TQListViewItem* parent, const TQString &id ) + : KListViewItem( parent, 0 ) { m_id = id; b_isRemovable = false; @@ -47,8 +47,8 @@ ILVItem::ILVItem( TQListViewItem* tqparent, const TQString &id ) } -ItemSelector::ItemSelector( TQWidget *tqparent, const char *name ) - : KListView( tqparent, name ) +ItemSelector::ItemSelector( TQWidget *parent, const char *name ) + : KListView( parent, name ) { addColumn( i18n( "Component" ) ); setFullWidth(true); @@ -120,7 +120,7 @@ void ItemSelector::addItem( const TQString & caption, const TQString & id, const if ( !parentItem ) { - kdError() << "Unexpected error in finding tqparent item for category list"<<endl; + kdError() << "Unexpected error in finding parent item for category list"<<endl; return; } @@ -175,13 +175,13 @@ void ItemSelector::slotRemoveSelectedItem() return; emit itemRemoved( item->key( 0, 0 ) ); - ILVItem *tqparent = dynamic_cast<ILVItem*>(item->TQListViewItem::tqparent()); + ILVItem *parent = dynamic_cast<ILVItem*>(item->TQListViewItem::parent()); delete item; // Get rid of the category as well if it has no tqchildren - if ( tqparent && !tqparent->firstChild() ) + if ( parent && !parent->firstChild() ) { - m_categories.remove(tqparent->text(0)); - delete tqparent; + m_categories.remove(parent->text(0)); + delete parent; } } @@ -267,19 +267,19 @@ TQDragObject* ItemSelector::dragObject() ComponentSelector * ComponentSelector::m_pSelf = 0l; -ComponentSelector * ComponentSelector::self( KateMDI::ToolView * tqparent ) +ComponentSelector * ComponentSelector::self( KateMDI::ToolView * parent ) { if (!m_pSelf) { - assert(tqparent); - m_pSelf = new ComponentSelector(tqparent); + assert(parent); + m_pSelf = new ComponentSelector(parent); } return m_pSelf; } -ComponentSelector::ComponentSelector( KateMDI::ToolView * tqparent ) - : ItemSelector( (TQWidget*)tqparent, "Component Selector" ) +ComponentSelector::ComponentSelector( KateMDI::ToolView * parent ) + : ItemSelector( (TQWidget*)parent, "Component Selector" ) { TQWhatsThis::add( this, i18n( "Add components to the circuit diagram by dragging them into the circuit.<br><br>" @@ -307,19 +307,19 @@ ComponentSelector::ComponentSelector( KateMDI::ToolView * tqparent ) FlowPartSelector * FlowPartSelector::m_pSelf = 0l; -FlowPartSelector * FlowPartSelector::self( KateMDI::ToolView * tqparent ) +FlowPartSelector * FlowPartSelector::self( KateMDI::ToolView * parent ) { if (!m_pSelf) { - assert(tqparent); - m_pSelf = new FlowPartSelector(tqparent); + assert(parent); + m_pSelf = new FlowPartSelector(parent); } return m_pSelf; } -FlowPartSelector::FlowPartSelector( KateMDI::ToolView * tqparent ) - : ItemSelector( (TQWidget*)tqparent, "Part Selector" ) +FlowPartSelector::FlowPartSelector( KateMDI::ToolView * parent ) + : ItemSelector( (TQWidget*)parent, "Part Selector" ) { TQWhatsThis::add( this, i18n("Add FlowPart to the FlowCode document by dragging them there.<br><br>To add more than one FlowPart of the same type, doubleclick on a FlowPart, and click repeatedly in the FlowChart to place the component. Right click to stop placement.") ); @@ -340,19 +340,19 @@ FlowPartSelector::FlowPartSelector( KateMDI::ToolView * tqparent ) MechanicsSelector * MechanicsSelector::m_pSelf = 0l; -MechanicsSelector * MechanicsSelector::self( KateMDI::ToolView * tqparent ) +MechanicsSelector * MechanicsSelector::self( KateMDI::ToolView * parent ) { if (!m_pSelf) { - assert(tqparent); - m_pSelf = new MechanicsSelector( (TQWidget*)tqparent ); + assert(parent); + m_pSelf = new MechanicsSelector( (TQWidget*)parent ); } return m_pSelf; } -MechanicsSelector::MechanicsSelector( TQWidget *tqparent ) - : ItemSelector( (TQWidget*)tqparent, "Mechanics Selector" ) +MechanicsSelector::MechanicsSelector( TQWidget *parent ) + : ItemSelector( (TQWidget*)parent, "Mechanics Selector" ) { TQWhatsThis::add( this, i18n("Add mechanical parts to the mechanics work area by dragging them there.") ); |