diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /chalk/ui/layerlist.cpp | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'chalk/ui/layerlist.cpp')
-rw-r--r-- | chalk/ui/layerlist.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chalk/ui/layerlist.cpp b/chalk/ui/layerlist.cpp index 059d4e35..6f7cb4e2 100644 --- a/chalk/ui/layerlist.cpp +++ b/chalk/ui/layerlist.cpp @@ -681,7 +681,7 @@ void LayerList::contentsMouseDoubleClickEvent( TQMouseEvent *e ) super::contentsMouseDoubleClickEvent( e ); if( LayerItem *layer = static_cast<LayerItem*>( itemAt( contentsToViewport( e->pos() ) ) ) ) { - if( !layer->iconsRect().tqcontains( layer->mapFromListView( e->pos() ) ) ) + if( !layer->iconsRect().contains( layer->mapFromListView( e->pos() ) ) ) { emit requestLayerProperties( layer ); emit requestLayerProperties( layer->id() ); @@ -867,7 +867,7 @@ void LayerItem::init() LayerItem::~LayerItem() { - if (listView() && (listView()->activeLayer() == this || tqcontains(listView()->activeLayer()))) + if (listView() && (listView()->activeLayer() == this || contains(listView()->activeLayer()))) listView()->setActiveLayer( static_cast<LayerItem*>( 0 ) ); delete d; } @@ -885,7 +885,7 @@ bool LayerItem::isFolder() const return d->isFolder; } -bool LayerItem::tqcontains(const LayerItem *item) +bool LayerItem::contains(const LayerItem *item) { TQListViewItemIterator it(this); @@ -1180,7 +1180,7 @@ bool LayerItem::mousePressEvent( TQMouseEvent *e ) const TQRect ir = iconsRect(), tr = textRect(); - if( ir.tqcontains( e->pos() ) ) + if( ir.contains( e->pos() ) ) { const int iconWidth = iconSize().width(); int x = e->pos().x() - ir.left(); @@ -1201,7 +1201,7 @@ bool LayerItem::mousePressEvent( TQMouseEvent *e ) return true; } - else if( tr.tqcontains( e->pos() ) && isSelected() && !listView()->renameLineEdit()->isVisible() ) + else if( tr.contains( e->pos() ) && isSelected() && !listView()->renameLineEdit()->isVisible() ) { listView()->rename( this, 0 ); TQRect r( listView()->contentsToViewport( mapToListView( tr.topLeft() ) ), tr.size() ); |