Rename incorrect instances of tqrepaint[...] to repaint[...]

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent a2bae01d00
commit a40b0e89b6

@ -189,7 +189,7 @@ void DrawZone::setZoom(double z)
p.flush(); p.flush();
resizeContents(visibleWidth()>imageRect.width() ? visibleWidth() : imageRect.width(), resizeContents(visibleWidth()>imageRect.width() ? visibleWidth() : imageRect.width(),
visibleHeight()>imageRect.height() ? visibleHeight() : imageRect.height()); visibleHeight()>imageRect.height() ? visibleHeight() : imageRect.height());
tqrepaintContents(0,0,contentsWidth(),contentsHeight(),true); repaintContents(0,0,contentsWidth(),contentsHeight(),true);
} }
TQPoint DrawZone::translateFromZoom(const TQPoint & p) const { TQPoint DrawZone::translateFromZoom(const TQPoint & p) const {
@ -379,7 +379,7 @@ void DrawZone::contentsMousePressEvent(TQMouseEvent* e)
r=oldArea->selectionRect(); r=oldArea->selectionRect();
if (currentArea) { if (currentArea) {
r= r | currentArea->selectionRect(); r= r | currentArea->selectionRect();
tqrepaintContents(translateToZoom(r),false); repaintContents(translateToZoom(r),false);
} }
@ -501,7 +501,7 @@ void DrawZone::contentsMouseReleaseEvent(TQMouseEvent *e) {
imageMapEditor->updateActionAccess(); imageMapEditor->updateActionAccess();
imageMapEditor->updateSelection(); imageMapEditor->updateSelection();
tqrepaintContents(imageRect,false); repaintContents(imageRect,false);
} else { } else {
currentAction=None; currentAction=None;
} }
@ -509,11 +509,11 @@ void DrawZone::contentsMouseReleaseEvent(TQMouseEvent *e) {
if (currentArea) if (currentArea)
{ {
currentArea->setMoving(false); currentArea->setMoving(false);
tqrepaintArea(*currentArea); repaintArea(*currentArea);
} }
delete oldArea; delete oldArea;
oldArea=0L; oldArea=0L;
// tqrepaintContents(0,0,contentsWidth(),contentsHeight(),false); // repaintContents(0,0,contentsWidth(),contentsHeight(),false);
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
} }
@ -550,7 +550,7 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
currentArea->setRect(TQRect(drawStart,drawCurrent).normalize()); currentArea->setRect(TQRect(drawStart,drawCurrent).normalize());
TQRect newRect=translateToZoom(currentArea->selectionRect()); TQRect newRect=translateToZoom(currentArea->selectionRect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords( currentArea->rect() ); imageMapEditor->slotUpdateSelectionCoords( currentArea->rect() );
} else } else
if (currentAction==DrawCircle) { if (currentAction==DrawCircle) {
@ -576,7 +576,7 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
currentArea->setRect(TQRect(drawStart,endPoint).normalize()); currentArea->setRect(TQRect(drawStart,endPoint).normalize());
TQRect newRect=translateToZoom(currentArea->rect()); TQRect newRect=translateToZoom(currentArea->rect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords( currentArea->rect() ); imageMapEditor->slotUpdateSelectionCoords( currentArea->rect() );
} else } else
if ( currentAction==DrawPolygon ) { if ( currentAction==DrawPolygon ) {
@ -584,14 +584,14 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent); currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent);
TQRect newRect=translateToZoom(currentArea->rect()); TQRect newRect=translateToZoom(currentArea->rect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
} else } else
if ( currentAction==DrawFreehand) { if ( currentAction==DrawFreehand) {
TQRect oldRect=translateToZoom(currentArea->rect()); TQRect oldRect=translateToZoom(currentArea->rect());
currentArea->insertCoord(currentArea->countSelectionPoints(), drawCurrent); currentArea->insertCoord(currentArea->countSelectionPoints(), drawCurrent);
TQRect newRect=translateToZoom(currentArea->rect()); TQRect newRect=translateToZoom(currentArea->rect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
} else } else
if ( currentAction==MoveArea ) { if ( currentAction==MoveArea ) {
TQRect oldRect=translateToZoom(currentArea->selectionRect()); TQRect oldRect=translateToZoom(currentArea->selectionRect());
@ -599,7 +599,7 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
TQRect newRect=translateToZoom(currentArea->selectionRect()); TQRect newRect=translateToZoom(currentArea->selectionRect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
currentArea->setMoving(true); currentArea->setMoving(true);
tqrepaintContents(r,false); repaintContents(r,false);
drawStart=drawCurrent; drawStart=drawCurrent;
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
} else } else
@ -608,7 +608,7 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent); currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent);
TQRect newRect=translateToZoom(currentArea->selectionRect()); TQRect newRect=translateToZoom(currentArea->selectionRect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
} else } else
if (currentAction==DoSelect) { if (currentAction==DoSelect) {
@ -630,26 +630,26 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
} }
*/ */
// We don't have to tqrepaint the hole selection rectangle // We don't have to tqrepaint the hole selection rectangle
// only the borders have to be tqrepainted. // only the borders have to be repainted.
// So we have to create 4 rectangles for every rectangle // So we have to create 4 rectangles for every rectangle
// which represent the borders and then tqrepaint them. // which represent the borders and then tqrepaint them.
TQRect lb,rb,tb,bb; TQRect lb,rb,tb,bb;
createBorderRectangles(translateToZoom(r),lb,rb,tb,bb); createBorderRectangles(translateToZoom(r),lb,rb,tb,bb);
tqrepaintContents(lb,false); repaintContents(lb,false);
tqrepaintContents(rb,false); repaintContents(rb,false);
tqrepaintContents(tb,false); repaintContents(tb,false);
tqrepaintContents(bb,false); repaintContents(bb,false);
createBorderRectangles(translateToZoom(oldSelectionRect),lb,rb,tb,bb); createBorderRectangles(translateToZoom(oldSelectionRect),lb,rb,tb,bb);
tqrepaintContents(lb,false); repaintContents(lb,false);
tqrepaintContents(rb,false); repaintContents(rb,false);
tqrepaintContents(tb,false); repaintContents(tb,false);
tqrepaintContents(bb,false); repaintContents(bb,false);
// tqrepaintContents(oldSelectionRect | r,false); // repaintContents(oldSelectionRect | r,false);
oldSelectionRect = r; oldSelectionRect = r;
// tqrepaintContents(translateToZoom(r),false); // repaintContents(translateToZoom(r),false);
//+ imageMapEditor->updateSelection(); //+ imageMapEditor->updateSelection();
@ -658,7 +658,7 @@ void DrawZone::contentsMouseMoveEvent(TQMouseEvent *e)
// TQRect r2(drawStart.x(),drawStart.y(),drawOld.x()-drawStart.x(),drawOld.y()-drawStart.y()); // TQRect r2(drawStart.x(),drawStart.y(),drawOld.x()-drawStart.x(),drawOld.y()-drawStart.y());
// r2 = r2.normalize(); // r2 = r2.normalize();
// r = translateToZoom(r | r2); // r = translateToZoom(r | r2);
// tqrepaintContents(r,false); // repaintContents(r,false);
} else } else
if ( currentAction==None ) if ( currentAction==None )
{ {
@ -782,17 +782,17 @@ void DrawZone::cancelDrawing()
TQRect r = translateToZoom(currentArea->selectionRect()); TQRect r = translateToZoom(currentArea->selectionRect());
delete currentArea; delete currentArea;
currentArea = 0L; currentArea = 0L;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
} }
} }
void DrawZone::tqrepaintArea(const Area & a) { void DrawZone::repaintArea(const Area & a) {
tqrepaintContents(translateToZoom(a.selectionRect()),false); repaintContents(translateToZoom(a.selectionRect()),false);
} }
void DrawZone::tqrepaintRect(const TQRect & r) { void DrawZone::repaintRect(const TQRect & r) {
tqrepaintContents(translateToZoom(r),false); repaintContents(translateToZoom(r),false);
} }
void DrawZone::drawContents(TQPainter* p,int clipx,int clipy,int clipw,int cliph) void DrawZone::drawContents(TQPainter* p,int clipx,int clipy,int clipw,int cliph)

@ -42,8 +42,8 @@ public:
~DrawZone(); ~DrawZone();
TQImage picture() const; TQImage picture() const;
void tqrepaintArea(const Area & a); void repaintArea(const Area & a);
void tqrepaintRect(const TQRect & r); void repaintRect(const TQRect & r);
void cancelDrawing(); void cancelDrawing();
void setPicture(const TQImage &_image); void setPicture(const TQImage &_image);

@ -77,7 +77,7 @@ void ImageMap::setZoom(double z) {
p.flush(); p.flush();
resizeContents(visibleWidth()>imageRect.width() ? visibleWidth() : imageRect.width(), resizeContents(visibleWidth()>imageRect.width() ? visibleWidth() : imageRect.width(),
visibleHeight()>imageRect.height() ? visibleHeight() : imageRect.height()); visibleHeight()>imageRect.height() ? visibleHeight() : imageRect.height());
tqrepaintContents(0,0,contentsWidth(),contentsHeight(),true); repaintContents(0,0,contentsWidth(),contentsHeight(),true);
} }
TQPoint ImageMap::translateFromZoom(const TQPoint & p) const { TQPoint ImageMap::translateFromZoom(const TQPoint & p) const {
@ -172,7 +172,7 @@ void ImageMap::contentsMousePressEvent(TQMouseEvent* e) {
r=oldArea->selectionRect(); r=oldArea->selectionRect();
if (currentArea) { if (currentArea) {
r= r | currentArea->selectionRect(); r= r | currentArea->selectionRect();
tqrepaintContents(translateToZoom(r),false); repaintContents(translateToZoom(r),false);
} }
} }
@ -233,8 +233,8 @@ void ImageMap::contentsMouseReleaseEvent(TQMouseEvent *e) {
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
if (currentArea) if (currentArea)
tqrepaintArea(*currentArea); repaintArea(*currentArea);
// tqrepaintContents(0,0,contentsWidth(),contentsHeight(),false); // repaintContents(0,0,contentsWidth(),contentsHeight(),false);
} }
@ -264,7 +264,7 @@ void ImageMap::contentsMouseMoveEvent(TQMouseEvent *e) {
currentArea->setRect(TQRect(drawStart,drawCurrent).normalize()); currentArea->setRect(TQRect(drawStart,drawCurrent).normalize());
TQRect newRect=translateToZoom(currentArea->rect()); TQRect newRect=translateToZoom(currentArea->rect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords(currentArea->rect()); imageMapEditor->slotUpdateSelectionCoords(currentArea->rect());
} else } else
if (currentAction==DrawCircle) { if (currentAction==DrawCircle) {
@ -272,7 +272,7 @@ void ImageMap::contentsMouseMoveEvent(TQMouseEvent *e) {
currentArea->setRect(TQRect(drawStart,drawCurrent).normalize()); currentArea->setRect(TQRect(drawStart,drawCurrent).normalize());
TQRect newRect=translateToZoom(currentArea->rect()); TQRect newRect=translateToZoom(currentArea->rect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords(currentArea->rect()); imageMapEditor->slotUpdateSelectionCoords(currentArea->rect());
} else } else
if ( currentAction==DrawPolygon ) { if ( currentAction==DrawPolygon ) {
@ -280,7 +280,7 @@ void ImageMap::contentsMouseMoveEvent(TQMouseEvent *e) {
currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent); currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent);
TQRect newRect=translateToZoom(currentArea->rect()); TQRect newRect=translateToZoom(currentArea->rect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords(currentArea->rect()); imageMapEditor->slotUpdateSelectionCoords(currentArea->rect());
} else } else
if ( currentAction==MoveArea ) { if ( currentAction==MoveArea ) {
@ -288,7 +288,7 @@ void ImageMap::contentsMouseMoveEvent(TQMouseEvent *e) {
currentArea->moveBy((drawCurrent-drawStart).x(),(drawCurrent-drawStart).y()); currentArea->moveBy((drawCurrent-drawStart).x(),(drawCurrent-drawStart).y());
TQRect newRect=translateToZoom(currentArea->selectionRect()); TQRect newRect=translateToZoom(currentArea->selectionRect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
drawStart=drawCurrent; drawStart=drawCurrent;
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
} else } else
@ -297,7 +297,7 @@ void ImageMap::contentsMouseMoveEvent(TQMouseEvent *e) {
currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent); currentArea->moveSelectionPoint(currentSelectionPoint,drawCurrent);
TQRect newRect=translateToZoom(currentArea->selectionRect()); TQRect newRect=translateToZoom(currentArea->selectionRect());
TQRect r=oldRect | newRect; TQRect r=oldRect | newRect;
tqrepaintContents(r,false); repaintContents(r,false);
imageMapEditor->slotUpdateSelectionCoords(); imageMapEditor->slotUpdateSelectionCoords();
} }
imageMapEditor->slotChangeStatusCoords(drawCurrent.x(),drawCurrent.y()); imageMapEditor->slotChangeStatusCoords(drawCurrent.x(),drawCurrent.y());
@ -321,8 +321,8 @@ void ImageMap::resizeEvent(TQResizeEvent* e) {
} }
void ImageMap::tqrepaintArea(const Area & a) { void ImageMap::repaintArea(const Area & a) {
tqrepaintContents(translateToZoom(a.selectionRect()),false); repaintContents(translateToZoom(a.selectionRect()),false);
} }
void ImageMap::drawContents(TQPainter* p,int clipx,int clipy,int clipw,int cliph) { void ImageMap::drawContents(TQPainter* p,int clipx,int clipy,int clipw,int cliph) {

@ -55,7 +55,7 @@ public:
~ImageMap(); ~ImageMap();
void setZoom(double z); void setZoom(double z);
void setPicture(const TQImage &_image); void setPicture(const TQImage &_image);
void tqrepaintArea(const Area & a); void repaintArea(const Area & a);
TQImage picture() const; TQImage picture() const;
TQPoint translateFromZoom(const TQPoint & p) const; TQPoint translateFromZoom(const TQPoint & p) const;
TQPoint translateToZoom(const TQPoint & p) const; TQPoint translateToZoom(const TQPoint & p) const;

@ -1015,7 +1015,7 @@ void KImageMapEditor::deleteArea( Area * area )
area->deleteListViewItem(); area->deleteListViewItem();
} }
drawZone->tqrepaintRect(redrawRect); drawZone->repaintRect(redrawRect);
// Only to disable cut and copy actions // Only to disable cut and copy actions
@ -1037,7 +1037,7 @@ void KImageMapEditor::deleteSelected() {
} }
drawZone->tqrepaintArea( *currentSelected ); drawZone->repaintArea( *currentSelected );
// Only to disable cut and copy actions // Only to disable cut and copy actions
if (areas->count()==0) if (areas->count()==0)
deselectAll(); deselectAll();
@ -1083,7 +1083,7 @@ void KImageMapEditor::select(Area* a)
currentSelected->add(a); currentSelected->add(a);
updateActionAccess(); updateActionAccess();
slotUpdateSelectionCoords(); slotUpdateSelectionCoords();
// drawZone->tqrepaintArea( *a); // drawZone->repaintArea( *a);
} }
@ -1106,7 +1106,7 @@ void KImageMapEditor::slotSelectionChanged()
? select( it.current() ) ? select( it.current() )
: deselect( it.current() ); : deselect( it.current() );
drawZone->tqrepaintArea( *it.current()); drawZone->repaintArea( *it.current());
} }
} }
@ -1122,7 +1122,7 @@ void KImageMapEditor::select( TQListViewItem* item)
if (it.current()->listViewItem() == item ) if (it.current()->listViewItem() == item )
{ {
select( it.current() ); select( it.current() );
drawZone->tqrepaintArea( *it.current()); drawZone->repaintArea( *it.current());
} }
} }
@ -1162,7 +1162,7 @@ void KImageMapEditor::slotAreaChanged(Area *area)
area->listViewItem()->setPixmap(1,makeListViewPix(*area)); area->listViewItem()->setPixmap(1,makeListViewPix(*area));
} }
drawZone->tqrepaintArea(*area); drawZone->repaintArea(*area);
} }
@ -1170,7 +1170,7 @@ void KImageMapEditor::deselect(Area* a)
{ {
if (a) { if (a) {
currentSelected->remove(a); currentSelected->remove(a);
// drawZone->tqrepaintArea(*a); // drawZone->repaintArea(*a);
updateActionAccess(); updateActionAccess();
slotUpdateSelectionCoords(); slotUpdateSelectionCoords();
} }
@ -1290,7 +1290,7 @@ void KImageMapEditor::updateUpDownBtn()
areaListView->upBtn->setEnabled(false); areaListView->upBtn->setEnabled(false);
} }
drawZone->tqrepaintArea(*currentSelected); drawZone->repaintArea(*currentSelected);
// if the last Area is in the selection can't move down // if the last Area is in the selection can't move down
if (list.tqfind( areas->getLast() ) == -1) if (list.tqfind( areas->getLast() ) == -1)
@ -1309,7 +1309,7 @@ void KImageMapEditor::deselectAll()
{ {
TQRect redrawRect= currentSelected->selectionRect(); TQRect redrawRect= currentSelected->selectionRect();
currentSelected->reset(); currentSelected->reset();
drawZone->tqrepaintRect(redrawRect); drawZone->repaintRect(redrawRect);
updateActionAccess(); updateActionAccess();
} }
@ -1324,7 +1324,7 @@ Area* KImageMapEditor::onArea(const TQPoint & p) const {
int KImageMapEditor::showTagEditor(Area *a) { int KImageMapEditor::showTagEditor(Area *a) {
if (!a) return 0; if (!a) return 0;
drawZone->tqrepaintArea(*a); drawZone->repaintArea(*a);
AreaDialog *dialog= new AreaDialog(this,a); AreaDialog *dialog= new AreaDialog(this,a);
connect (dialog, TQT_SIGNAL(areaChanged(Area*)), this, TQT_SLOT(slotAreaChanged(Area*))); connect (dialog, TQT_SIGNAL(areaChanged(Area*)), this, TQT_SLOT(slotAreaChanged(Area*)));

@ -147,7 +147,7 @@ MoveCommand::~MoveCommand () {
void MoveCommand::execute() void MoveCommand::execute()
{ {
// only for tqrepainting reasons // only for repainting reasons
Area* tempArea = _areaSelection->clone(); Area* tempArea = _areaSelection->clone();
_areaSelection->moveTo( _newPoint.x(), _newPoint.y() ); _areaSelection->moveTo( _newPoint.x(), _newPoint.y() );
@ -269,15 +269,15 @@ void AddPointCommand::execute()
void AddPointCommand::unexecute() void AddPointCommand::unexecute()
{ {
// TQRect *selectionPoint = _areaSelection->onSelectionPoint(_point); // TQRect *selectionPoint = _areaSelection->onSelectionPoint(_point);
Area* tqrepaintArea = _areaSelection->clone(); Area* repaintArea = _areaSelection->clone();
_areaSelection->removeCoord(_coordpos); _areaSelection->removeCoord(_coordpos);
_areaSelection->setMoving(false); _areaSelection->setMoving(false);
_document->slotAreaChanged( _areaSelection ); _document->slotAreaChanged( _areaSelection );
_document->slotAreaChanged( tqrepaintArea ); _document->slotAreaChanged( repaintArea );
delete tqrepaintArea; delete repaintArea;
} }
RemovePointCommand::RemovePointCommand (KImageMapEditor *document, AreaSelection *a, Area *oldArea) RemovePointCommand::RemovePointCommand (KImageMapEditor *document, AreaSelection *a, Area *oldArea)

@ -583,7 +583,7 @@ void FormWindow::handleMousePress(TQMouseEvent *e, TQWidget *w)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(mainContainer()); propertyWidget = TQT_TQOBJECT(mainContainer());
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget*)opw); repaintSelection((TQWidget*)opw);
} }
currRect = TQRect(0, 0, -1, -1); currRect = TQRect(0, 0, -1, -1);
startRectDraw(mapFromGlobal(e->globalPos()), e->globalPos(), this, Rubber); startRectDraw(mapFromGlobal(e->globalPos()), e->globalPos(), this, Rubber);
@ -1091,7 +1091,7 @@ void FormWindow::selectWidget(TQObject * o, bool select)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(mainContainer()); propertyWidget = TQT_TQOBJECT(mainContainer());
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
emitShowProperties(propertyWidget); emitShowProperties(propertyWidget);
return; return;
} }
@ -1102,7 +1102,7 @@ void FormWindow::selectWidget(TQObject * o, bool select)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(mainContainer()); propertyWidget = TQT_TQOBJECT(mainContainer());
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
emitShowProperties(propertyWidget); emitShowProperties(propertyWidget);
return; return;
} }
@ -1115,7 +1115,7 @@ void FormWindow::selectWidget(TQObject * o, bool select)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(w); propertyWidget = TQT_TQOBJECT(w);
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
if (!isPropertyShowingBlocked()) if (!isPropertyShowingBlocked())
emitShowProperties(propertyWidget); emitShowProperties(propertyWidget);
WidgetSelection *s = usedSelections.tqfind(w); WidgetSelection *s = usedSelections.tqfind(w);
@ -1152,7 +1152,7 @@ void FormWindow::selectWidget(TQObject * o, bool select)
else else
propertyWidget = TQT_TQOBJECT(mainContainer()); propertyWidget = TQT_TQOBJECT(mainContainer());
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
if (!isPropertyShowingBlocked()) if (!isPropertyShowingBlocked())
emitShowProperties(propertyWidget); emitShowProperties(propertyWidget);
emitSelectionChanged(); emitSelectionChanged();
@ -1182,7 +1182,7 @@ void FormWindow::raiseSelection(TQWidget * w)
s->show(); s->show();
} }
void FormWindow::tqrepaintSelection(TQWidget * w) void FormWindow::repaintSelection(TQWidget * w)
{ {
WidgetSelection *s = usedSelections.tqfind(w); WidgetSelection *s = usedSelections.tqfind(w);
if (s) if (s)
@ -1201,7 +1201,7 @@ void FormWindow::clearSelection(bool changePropertyDisplay)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(mainContainer()); propertyWidget = TQT_TQOBJECT(mainContainer());
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
emitShowProperties(propertyWidget); emitShowProperties(propertyWidget);
} }
emitSelectionChanged(); emitSelectionChanged();
@ -1529,7 +1529,7 @@ void FormWindow::focusOutEvent(TQFocusEvent *)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(mainContainer()); propertyWidget = TQT_TQOBJECT(mainContainer());
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
} }
} }
@ -1564,7 +1564,7 @@ void FormWindow::emitShowProperties(TQObject * w)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = w; propertyWidget = w;
if (opw->isWidgetType()) if (opw->isWidgetType())
tqrepaintSelection((TQWidget *) opw); repaintSelection((TQWidget *) opw);
} }
showPropertiesTimer->stop(); showPropertiesTimer->stop();
showPropertiesTimer->start(0, true); showPropertiesTimer->start(0, true);
@ -2510,7 +2510,7 @@ void FormWindow::setMainContainer(TQWidget *w)
TQObject *opw = propertyWidget; TQObject *opw = propertyWidget;
propertyWidget = TQT_TQOBJECT(mContainer); propertyWidget = TQT_TQOBJECT(mContainer);
if (opw && opw->isWidgetType()) if (opw && opw->isWidgetType())
tqrepaintSelection((TQWidget*)opw); repaintSelection((TQWidget*)opw);
} }
} }

@ -101,7 +101,7 @@ public:
virtual void selectAll(); virtual void selectAll();
virtual void updateSelection( TQWidget *w ); virtual void updateSelection( TQWidget *w );
virtual void raiseSelection( TQWidget *w ); virtual void raiseSelection( TQWidget *w );
virtual void tqrepaintSelection( TQWidget *w ); virtual void repaintSelection( TQWidget *w );
virtual void clearSelection( bool changePropertyDisplay = TRUE ); virtual void clearSelection( bool changePropertyDisplay = TRUE );
virtual void selectWidgets(); virtual void selectWidgets();
bool isWidgetSelected( TQObject *w ); bool isWidgetSelected( TQObject *w );

@ -429,7 +429,7 @@ void PropertyItem::placeEditor( TQWidget *w )
if ( !r.size().isValid() ) { if ( !r.size().isValid() ) {
listview->ensureItemVisible( this ); listview->ensureItemVisible( this );
#if defined(TQ_WS_WIN) #if defined(TQ_WS_WIN)
listview->tqrepaintContents( false ); listview->repaintContents( false );
#endif #endif
r = listview->tqitemRect( this ); r = listview->tqitemRect( this );
} }

@ -308,7 +308,7 @@ void XsldbgConfigImpl::update()
void XsldbgConfigImpl::refresh() void XsldbgConfigImpl::refresh()
{ {
paramIndex = 0; paramIndex = 0;
tqrepaintParam(); repaintParam();
xslSourceEdit->setText(debugger->sourceFileName()); xslSourceEdit->setText(debugger->sourceFileName());
xmlDataEdit->setText(debugger->dataFileName()); xmlDataEdit->setText(debugger->dataFileName());
outputFileEdit->setText(debugger->outputFileName()); outputFileEdit->setText(debugger->outputFileName());
@ -410,7 +410,7 @@ void XsldbgConfigImpl::slotReloadFileNames()
} }
void XsldbgConfigImpl::tqrepaintParam() void XsldbgConfigImpl::repaintParam()
{ {
if (paramIndex < getParamCount()){ if (paramIndex < getParamCount()){
LibxsltParam *param = getParam(paramIndex); LibxsltParam *param = getParam(paramIndex);
@ -428,13 +428,13 @@ void XsldbgConfigImpl::slotAddParam()
if (paramIndex < getParamCount()) if (paramIndex < getParamCount())
paramIndex++; paramIndex++;
tqrepaintParam(); repaintParam();
} }
void XsldbgConfigImpl::slotDeleteParam() void XsldbgConfigImpl::slotDeleteParam()
{ {
deleteParam(parameterNameEdit->text()); deleteParam(parameterNameEdit->text());
tqrepaintParam(); repaintParam();
} }
@ -444,7 +444,7 @@ void XsldbgConfigImpl::slotNextParam()
if (paramIndex < getParamCount()) if (paramIndex < getParamCount())
paramIndex++; paramIndex++;
tqrepaintParam(); repaintParam();
} }
void XsldbgConfigImpl::slotPrevParam() void XsldbgConfigImpl::slotPrevParam()
@ -453,7 +453,7 @@ void XsldbgConfigImpl::slotPrevParam()
if (paramIndex > 0) if (paramIndex > 0)
paramIndex--; paramIndex--;
tqrepaintParam(); repaintParam();
} }
void XsldbgConfigImpl::slotProcParameterItem(TQString name, TQString value) void XsldbgConfigImpl::slotProcParameterItem(TQString name, TQString value)

@ -60,7 +60,7 @@ public:
int getParamCount(); int getParamCount();
void addParam(TQString name, TQString value); void addParam(TQString name, TQString value);
void deleteParam(TQString name); void deleteParam(TQString name);
void tqrepaintParam(); void repaintParam();
TQString getSourceFile(); TQString getSourceFile();
TQString getDataFile(); TQString getDataFile();

@ -235,7 +235,7 @@ void ProjectUpload::slotBuildTree()
totalText->setText(i18n("Total:")); totalText->setText(i18n("Total:"));
totalProgress->setTotalSteps(1); totalProgress->setTotalSteps(1);
totalProgress->setValue(0); totalProgress->setValue(0);
//hack to force tqrepainting of the treeview //hack to force repainting of the treeview
resize(width() + 1, height()); resize(width() + 1, height());
resize(width() - 1, height()); resize(width() - 1, height());
if (m_quickUpload) if (m_quickUpload)

@ -193,7 +193,7 @@ Document::Document(KTextEditor::Document *doc,
m_tempFileName = TQString(); m_tempFileName = TQString();
dtdName = Project::ref()->defaultDTD(); dtdName = Project::ref()->defaultDTD();
reparseEnabled = true; reparseEnabled = true;
tqrepaintEnabled = true; repaintEnabled = true;
delayedTextChangedEnabled = true; delayedTextChangedEnabled = true;
docUndoRedo = new undoRedo(this); docUndoRedo = new undoRedo(this);
@ -2632,7 +2632,7 @@ TQStringList Document::tagAreas(const TQString& tag, bool includeCoordinates, bo
void Document::activateRepaintView(bool activation) void Document::activateRepaintView(bool activation)
{ {
tqrepaintEnabled = activation; repaintEnabled = activation;
m_view->setUpdatesEnabled(activation); m_view->setUpdatesEnabled(activation);
} }

@ -172,7 +172,7 @@ work correctly. */
/** disable/enable the tqrepaint of the Kate view */ /** disable/enable the tqrepaint of the Kate view */
void activateRepaintView(bool activation); void activateRepaintView(bool activation);
bool RepaintViewActivated() {return tqrepaintEnabled;} bool RepaintViewActivated() {return repaintEnabled;}
void setErrorMark(int line); void setErrorMark(int line);
void clearErrorMarks(); void clearErrorMarks();
@ -307,7 +307,7 @@ private:
bool argHintVisible; bool argHintVisible;
bool hintRequested; bool hintRequested;
bool reparseEnabled; bool reparseEnabled;
bool tqrepaintEnabled; bool repaintEnabled;
bool delayedTextChangedEnabled; bool delayedTextChangedEnabled;
/** True if the document is dirty (has been modified outside). */ /** True if the document is dirty (has been modified outside). */
bool m_dirty; bool m_dirty;

@ -290,7 +290,7 @@ public slots:
void slotRepaintPreview(); void slotRepaintPreview();
/** toggles showing the preview */ /** toggles showing the preview */
void slotToggleShowPreview(); void slotToggleShowPreview();
/** Shows the preview widget and tqrepaints the preview or /** Shows the preview widget and repaints the preview or
hides the preview widget and restores the original document hides the preview widget and restores the original document
*/ */
void slotShowPreviewWidget(bool show); void slotShowPreviewWidget(bool show);

@ -173,7 +173,7 @@ public slots:
*/ */
void slotNewProjectLoaded(const TQString &, const KURL &, const KURL &); void slotNewProjectLoaded(const TQString &, const KURL &, const KURL &);
/** /**
tqrepaints all treeview items repaints all treeview items
*/ */
void slotDocumentClosed(const KURL& url); void slotDocumentClosed(const KURL& url);

@ -69,7 +69,7 @@ protected slots:
void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point); void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point);
/** tqrepaints the treeview items, because they might be added to or removed from the project*/ /** repaints the treeview items, because they might be added to or removed from the project*/
void slotReloadTree( ProjectList *fileList, bool buildNewTree, const TQStringList &folderToOpen); void slotReloadTree( ProjectList *fileList, bool buildNewTree, const TQStringList &folderToOpen);
protected: protected:

Loading…
Cancel
Save