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

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

@ -130,7 +130,7 @@ bool IconItem::isSelected() const
void IconItem::tqrepaint(bool force) void IconItem::tqrepaint(bool force)
{ {
if (force) if (force)
m_group->iconView()->tqrepaintContents(rect()); m_group->iconView()->repaintContents(rect());
else else
m_group->iconView()->updateContents(rect()); m_group->iconView()->updateContents(rect());
} }

@ -584,7 +584,7 @@ int ImageSelectionWidget::computePreciseSize(int size, int step)
return size; return size;
} }
void ImageSelectionWidget::applyAspectRatio(bool useHeight, bool tqrepaintWidget) void ImageSelectionWidget::applyAspectRatio(bool useHeight, bool repaintWidget)
{ {
// Save selection area for re-adjustment after changing width and height. // Save selection area for re-adjustment after changing width and height.
TQRect oldRegionSelection = d->regionSelection; TQRect oldRegionSelection = d->regionSelection;
@ -644,7 +644,7 @@ void ImageSelectionWidget::applyAspectRatio(bool useHeight, bool tqrepaintWidget
break; break;
} }
if (tqrepaintWidget) if (repaintWidget)
{ {
updatePixmap(); updatePixmap();
tqrepaint(false); tqrepaint(false);

@ -159,7 +159,7 @@ private:
void normalizeRegion(); void normalizeRegion();
void reverseRatioValues(); void reverseRatioValues();
int computePreciseSize(int size, int step); int computePreciseSize(int size, int step);
void applyAspectRatio(bool useHeight, bool tqrepaintWidget=true); void applyAspectRatio(bool useHeight, bool repaintWidget=true);
void updatePixmap(); void updatePixmap();
TQPoint opposite(); TQPoint opposite();
float distance(TQPoint a, TQPoint b); float distance(TQPoint a, TQPoint b);

@ -759,14 +759,14 @@ void ThumbBarView::rearrangeItems()
} }
} }
void ThumbBarView::tqrepaintItem(ThumbBarItem* item) void ThumbBarView::repaintItem(ThumbBarItem* item)
{ {
if (item) if (item)
{ {
if (d->orientation ==Qt::Vertical) if (d->orientation ==Qt::Vertical)
tqrepaintContents(0, item->d->pos, visibleWidth(), d->tileSize+2*d->margin); repaintContents(0, item->d->pos, visibleWidth(), d->tileSize+2*d->margin);
else else
tqrepaintContents(item->d->pos, 0, d->tileSize+2*d->margin, visibleHeight()); repaintContents(item->d->pos, 0, d->tileSize+2*d->margin, visibleHeight());
} }
} }
@ -877,7 +877,7 @@ TQPixmap* ThumbBarItem::pixmap() const
void ThumbBarItem::tqrepaint() void ThumbBarItem::tqrepaint()
{ {
d->view->tqrepaintItem(this); d->view->repaintItem(this);
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------

@ -150,7 +150,7 @@ protected:
void insertItem(ThumbBarItem* item); void insertItem(ThumbBarItem* item);
void rearrangeItems(); void rearrangeItems();
void tqrepaintItem(ThumbBarItem* item); void repaintItem(ThumbBarItem* item);
virtual void viewportPaintEvent(TQPaintEvent*); virtual void viewportPaintEvent(TQPaintEvent*);
virtual void startDrag(); virtual void startDrag();

@ -244,7 +244,7 @@ void HistogramWidget::customEvent(TQCustomEvent *event)
setCursor( KCursor::arrowCursor() ); setCursor( KCursor::arrowCursor() );
// Send signals to refresh information if necessary. // Send signals to refresh information if necessary.
// The signals may trigger multiple tqrepaints, avoid this, // The signals may trigger multiple repaints, avoid this,
// we tqrepaint once afterwards. // we tqrepaint once afterwards.
setUpdatesEnabled(false); setUpdatesEnabled(false);

@ -311,7 +311,7 @@ DImg ImagePanelWidget::getOriginalRegionImage()
void ImagePanelWidget::setPreviewImage(DImg img) void ImagePanelWidget::setPreviewImage(DImg img)
{ {
d->imageRegionWidget->updatePreviewImage(&img); d->imageRegionWidget->updatePreviewImage(&img);
d->imageRegionWidget->tqrepaintContents(false); d->imageRegionWidget->repaintContents(false);
} }
void ImagePanelWidget::setCenterImageRegionPosition() void ImagePanelWidget::setCenterImageRegionPosition()

@ -154,7 +154,7 @@ void ImageRegionWidget::paintPreview(TQPixmap *pix, int sx, int sy, int sw, int
void ImageRegionWidget::setHighLightPoints(const TQPointArray& pointsList) void ImageRegionWidget::setHighLightPoints(const TQPointArray& pointsList)
{ {
d->hightlightPoints = pointsList; d->hightlightPoints = pointsList;
tqrepaintContents(false); repaintContents(false);
} }
void ImageRegionWidget::slotZoomFactorChanged() void ImageRegionWidget::slotZoomFactorChanged()

@ -143,7 +143,7 @@ void WorldMapWidget::setGPSPosition(double lat, double lng)
d->xPos = (int)(longMid + longOffset); d->xPos = (int)(longMid + longOffset);
d->yPos = (int)(latMid - latOffset); d->yPos = (int)(latMid - latOffset);
tqrepaintContents(false); repaintContents(false);
center(d->xPos, d->yPos); center(d->xPos, d->yPos);
TQString la, lo; TQString la, lo;
@ -197,7 +197,7 @@ void WorldMapWidget::contentsMouseMoveEvent( TQMouseEvent * e )
uint newypos = e->y(); uint newypos = e->y();
scrollBy (-(newxpos - d->xMousePos), -(newypos - d->yMousePos)); scrollBy (-(newxpos - d->xMousePos), -(newypos - d->yMousePos));
tqrepaintContents(false); repaintContents(false);
d->xMousePos = newxpos - (newxpos-d->xMousePos); d->xMousePos = newxpos - (newxpos-d->xMousePos);
d->yMousePos = newypos - (newypos-d->yMousePos); d->yMousePos = newypos - (newypos-d->yMousePos);

@ -294,18 +294,18 @@ void LightTableBar::setOnLeftPanel(const ImageInfo* info)
if (ltItem->info()->id() == info->id()) if (ltItem->info()->id() == info->id())
{ {
ltItem->setOnLeftPanel(true); ltItem->setOnLeftPanel(true);
tqrepaintItem(item); repaintItem(item);
} }
else if (ltItem->isOnLeftPanel() == true) else if (ltItem->isOnLeftPanel() == true)
{ {
ltItem->setOnLeftPanel(false); ltItem->setOnLeftPanel(false);
tqrepaintItem(item); repaintItem(item);
} }
} }
else if (ltItem->isOnLeftPanel() == true) else if (ltItem->isOnLeftPanel() == true)
{ {
ltItem->setOnLeftPanel(false); ltItem->setOnLeftPanel(false);
tqrepaintItem(item); repaintItem(item);
} }
} }
} }
@ -323,18 +323,18 @@ void LightTableBar::setOnRightPanel(const ImageInfo* info)
if (ltItem->info()->id() == info->id()) if (ltItem->info()->id() == info->id())
{ {
ltItem->setOnRightPanel(true); ltItem->setOnRightPanel(true);
tqrepaintItem(item); repaintItem(item);
} }
else if (ltItem->isOnRightPanel() == true) else if (ltItem->isOnRightPanel() == true)
{ {
ltItem->setOnRightPanel(false); ltItem->setOnRightPanel(false);
tqrepaintItem(item); repaintItem(item);
} }
} }
else if (ltItem->isOnRightPanel() == true) else if (ltItem->isOnRightPanel() == true)
{ {
ltItem->setOnRightPanel(false); ltItem->setOnRightPanel(false);
tqrepaintItem(item); repaintItem(item);
} }
} }
} }

Loading…
Cancel
Save