summaryrefslogtreecommitdiffstats
path: root/kbabel/catalogmanager/catmanlistitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/catalogmanager/catmanlistitem.cpp')
-rw-r--r--kbabel/catalogmanager/catmanlistitem.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kbabel/catalogmanager/catmanlistitem.cpp b/kbabel/catalogmanager/catmanlistitem.cpp
index aa52237f..d5997dd5 100644
--- a/kbabel/catalogmanager/catmanlistitem.cpp
+++ b/kbabel/catalogmanager/catmanlistitem.cpp
@@ -53,15 +53,15 @@
using namespace KBabel;
-CatManListItem::CatManListItem(CatalogManagerView *view, TQListViewItem* tqparent,TQString fullPath,TQString fullPotPath,TQString package)
- : TQListViewItem(tqparent)
+CatManListItem::CatManListItem(CatalogManagerView *view, TQListViewItem* parent,TQString fullPath,TQString fullPotPath,TQString package)
+ : TQListViewItem(parent)
{
_view = view;
init(fullPath,fullPotPath,package);
}
-CatManListItem::CatManListItem(CatalogManagerView *view, TQListView* tqparent,TQString fullPath,TQString fullPotPath)
- : TQListViewItem(tqparent)
+CatManListItem::CatManListItem(CatalogManagerView *view, TQListView* parent,TQString fullPath,TQString fullPotPath)
+ : TQListViewItem(parent)
{
_primary=TQFileInfo(fullPath);
_template=TQFileInfo(fullPotPath);
@@ -102,7 +102,7 @@ void CatManListItem::init(const TQString& fullPath, const TQString& fullPotPath,
_wordList.clear();
_wordListUpdated = false;
- update(tqparent()->isOpen(),false,true);
+ update(parent()->isOpen(),false,true);
if( !isDir() ) setPixmap(COL_MARKER,ICON_NOFLAG);
}
@@ -332,11 +332,11 @@ TQString CatManListItem::key(int col, bool) const
void CatManListItem::update(bool showPoInfo,bool includeChildren
, bool noParents)
{
- if( _view->isStopped() ) return; // if tqparent view is stopped, we should stop as well
+ if( _view->isStopped() ) return; // if parent view is stopped, we should stop as well
bool updateWordList = _view->settings().indexWords;
- // flag, if something has changed and tqparent has to be updated
+ // flag, if something has changed and parent has to be updated
bool updateParent=false;
// update flags for files...
@@ -596,7 +596,7 @@ void CatManListItem::update(bool showPoInfo,bool includeChildren
// however, is can be saved template or translation!!! - only translation is handled???
void CatManListItem::updateAfterSave( PoInfo &poInfo )
{
- // flag, if something has changed and tqparent has to be updated
+ // flag, if something has changed and parent has to be updated
bool updateParent=false;
// update flags for files...
@@ -661,7 +661,7 @@ void CatManListItem::updateAfterSave( PoInfo &poInfo )
setPixmap(COL_NAME,icon);
- // if the status changed, update the tqparent item
+ // if the status changed, update the parent item
if(needWork != neededWork)
{
updateParent=true;
@@ -677,11 +677,11 @@ void CatManListItem::updateAfterSave( PoInfo &poInfo )
void CatManListItem::updateParents()
{
- CatManListItem *item = (CatManListItem*)tqparent();
+ CatManListItem *item = (CatManListItem*)parent();
while( item && !_view->isStopped())
{
item->update(false,false);
- item = (CatManListItem*)item->tqparent();
+ item = (CatManListItem*)item->parent();
}
}
@@ -827,9 +827,9 @@ TQPixmap CatManListItem::paintExclamation(TQPixmap* pixmap)
int diameter=TQMIN(width,height);
- TQBitmap tqmask=pixmap->createHeuristicMask();
+ TQBitmap mask=pixmap->createHeuristicMask();
- TQPainter mp(&tqmask);
+ TQPainter mp(&mask);
mp.setPen(TQPen(TQt::color1,1));
mp.drawEllipse(width-diameter,height-diameter,diameter,diameter);
@@ -840,14 +840,14 @@ TQPixmap CatManListItem::paintExclamation(TQPixmap* pixmap)
p.setPen( TQPen(red,1) );
p.drawEllipse(width-diameter,height-diameter,diameter,diameter);
- result.setMask(tqmask);
+ result.setMask(mask);
return result;
}
TQListViewItem *CatManListItem::previousSibling()
{
- TQListViewItem * i = tqparent();
+ TQListViewItem * i = parent();
if( !i ) return i;
i = i->firstChild();
if( !i ) return i;