summaryrefslogtreecommitdiffstats
path: root/parts/replace/replaceitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/replace/replaceitem.cpp')
-rw-r--r--parts/replace/replaceitem.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/replace/replaceitem.cpp b/parts/replace/replaceitem.cpp
index d810e2ad..087e2b1f 100644
--- a/parts/replace/replaceitem.cpp
+++ b/parts/replace/replaceitem.cpp
@@ -45,18 +45,18 @@ void ReplaceItem::setChecked( bool checked )
{
if ( !isFile() ) // this is a child item
{
- if ( checked || !(parent()->hasCheckedChildren()))
+ if ( checked || !(tqparent()->hasCheckedChildren()))
{
- if ( parent()->isOn() != checked )
+ if ( tqparent()->isOn() != checked )
{
- parent()->_clicked = false;
- parent()->setOn( checked );
+ tqparent()->_clicked = false;
+ tqparent()->setOn( checked );
}
}
return;
}
- // this is a parent item, set self and children
+ // this is a tqparent item, set self and tqchildren
ReplaceItem * item = firstChild();
while ( item )
{
@@ -84,13 +84,13 @@ void ReplaceItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column,
const BackgroundMode bgmode = lv->viewport()->backgroundMode();
const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode );
- if ( cg.brush( crole ) != lv->colorGroup().brush( crole ) )
+ if ( cg.brush( crole ) != lv->tqcolorGroup().brush( crole ) )
p->fillRect( 0, 0, width, height(), cg.brush( crole ) );
else
lv->paintEmptyArea( p, TQRect( 0, 0, width, height() ) );
TQFontMetrics fm( lv->fontMetrics() );
- int boxsize = lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
+ int boxsize = lv->tqstyle().tqpixelMetric(TQStyle::PM_CheckListButtonSize, lv);
int marg = lv->itemMargin();
int r = marg;
@@ -116,7 +116,7 @@ void ReplaceItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column,
else
y = (fm.height() + 2 + marg - boxsize) / 2;
- lv->style().drawPrimitive(TQStyle::PE_CheckListIndicator, p,
+ lv->tqstyle().tqdrawPrimitive(TQStyle::PE_CheckListIndicator, p,
TQRect(x, y, boxsize,
fm.height() + 2 + marg),
cg, styleflags, TQStyleOption(this));
@@ -128,8 +128,8 @@ void ReplaceItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column,
p->setPen( TQPen( cg.text() ) );
TQColorGroup mcg = cg;
- mcg.setColor( TQColorGroup::Text, ( isFile() ? Qt::darkGreen : Qt::blue ) );
- mcg.setColor( TQColorGroup::HighlightedText, ( isFile() ? Qt::darkGreen : Qt::blue ) );
+ mcg.setColor( TQColorGroup::Text, ( isFile() ? TQt::darkGreen : TQt::blue ) );
+ mcg.setColor( TQColorGroup::HighlightedText, ( isFile() ? TQt::darkGreen : TQt::blue ) );
TQListViewItem::paintCell( p, mcg, column, width - r, align );
}
@@ -138,8 +138,8 @@ void ReplaceItem::activate( int, TQPoint const & localPos )
{
TQListView * lv = listView();
TQCheckBox cb(0);
- int boxsize = cb.sizeHint().width();
-//that's KDE-3.1 only int boxsize = lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
+ int boxsize = cb.tqsizeHint().width();
+//that's KDE-3.1 only int boxsize = lv->style().tqpixelMetric(TQStyle::PM_CheckListButtonSize, lv);
int rightside = lv->itemMargin() + boxsize + ( isFile() ? 0 : lv->treeStepSize() );
// _lineclicked indicates if the click was on the line or in the checkbox