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

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

@ -218,7 +218,7 @@ void GradientSelection::slotXyColorSelectorPosChanged(int x, int y) {
} }
void GradientSelection::slotZColorSelectorPosChanged(int y) { void GradientSelection::slotZColorSelectorPosChanged(int y) {
bool tqrepaintZColorSelector = false; bool repaintZColorSelector = false;
switch(zColorSelectorComponentIndex) { switch(zColorSelectorComponentIndex) {
case H_COMPONENT: case H_COMPONENT:
hComponent = y; hComponent = y;
@ -237,7 +237,7 @@ void GradientSelection::slotZColorSelectorPosChanged(int y) {
rgbColor.setHsv(hComponent, sComponent, vComponent); rgbColor.setHsv(hComponent, sComponent, vComponent);
color.setComponents(rgbColor.red(), rgbColor.green(), rgbColor.blue()); color.setComponents(rgbColor.red(), rgbColor.green(), rgbColor.blue());
updateXyColorSelector(false); updateXyColorSelector(false);
if(tqrepaintZColorSelector) if(repaintZColorSelector)
updateZColorSelector(); updateZColorSelector();
emit valueChanged(&color); emit valueChanged(&color);
} }

@ -73,10 +73,10 @@ void PaletteViewScrolledArea::slotViewColorNames(bool viewColorNames) {
void PaletteViewScrolledArea::redraw() { void PaletteViewScrolledArea::redraw() {
//setCellsSizes(); //setCellsSizes();
tqrepaintPalette(); repaintPalette();
} }
void PaletteViewScrolledArea::tqrepaintPalette() { void PaletteViewScrolledArea::repaintPalette() {
tqrepaint(false); tqrepaint(false);
} }
@ -106,7 +106,7 @@ void PaletteViewScrolledArea::slotScrollTimeout() {
else else
setSelection(selectionEnd, selectionBegin); setSelection(selectionEnd, selectionBegin);
checkSelectionAutoScroll(cursorPoint.y()); checkSelectionAutoScroll(cursorPoint.y());
tqrepaintPalette(); repaintPalette();
} }
} }

@ -42,7 +42,7 @@ public:
TQScrollBar* hScrollBar, KColorEditView* view, TQScrollBar* hScrollBar, KColorEditView* view,
TQWidget* tqparent = 0, const char* name = 0); TQWidget* tqparent = 0, const char* name = 0);
~PaletteViewScrolledArea(); ~PaletteViewScrolledArea();
/** Sets cells sizes and then calls tqrepaintPalette() */ /** Sets cells sizes and then calls repaintPalette() */
void redraw(); void redraw();
public slots: public slots:
@ -106,8 +106,8 @@ protected:
* visible area width * visible area width
*/ */
void setCellsSizes(); void setCellsSizes();
/** tqrepaints the palette */ /** repaints the palette */
void tqrepaintPalette(); void repaintPalette();
/** @return A color index at a given position, -1 if none */ /** @return A color index at a given position, -1 if none */
int colorIndex(const TQPoint& point) const; int colorIndex(const TQPoint& point) const;
/** @return A color at a given position */ /** @return A color at a given position */

@ -80,7 +80,7 @@ class RepaintCommand : public KCommand {
} }
TQString name() const { TQString name() const {
return "tqrepainted"; return "repainted";
} }
protected: protected:
KIconEditGrid* grid; KIconEditGrid* grid;

@ -705,11 +705,11 @@ void kpDocumentSaveOptionsWidget::setMode (Mode mode)
// we change the height of "this", causing the text on the labels // we change the height of "this", causing the text on the labels
// to move but the first instance of the text doesn't get erased. // to move but the first instance of the text doesn't get erased.
// TQt bug. // TQt bug.
TQTimer::singleShot (0, this, TQT_SLOT (tqrepaintLabels ())); TQTimer::singleShot (0, this, TQT_SLOT (repaintLabels ()));
} }
// protected slot // protected slot
void kpDocumentSaveOptionsWidget::tqrepaintLabels () void kpDocumentSaveOptionsWidget::repaintLabels ()
{ {
if (mode () != Quality) if (mode () != Quality)
m_colorDepthLabel->tqrepaint (); m_colorDepthLabel->tqrepaint ();

@ -161,7 +161,7 @@ protected:
void setMode (Mode mode); void setMode (Mode mode);
protected slots: protected slots:
void tqrepaintLabels (); void repaintLabels ();
protected slots: protected slots:

@ -344,10 +344,10 @@ protected:
public: public:
/** /**
* Adds a region (in view coordinates) to the dirty area that is * Adds a region (in view coordinates) to the dirty area that is
* tqrepainted when the tqparent @ref kpViewManager is set not to queue * repainted when the tqparent @ref kpViewManager is set not to queue
* updates. * updates.
* *
* @param region Region (in view coordinates) that needs tqrepainting. * @param region Region (in view coordinates) that needs repainting.
*/ */
void addToQueuedArea (const TQRegion &region); void addToQueuedArea (const TQRegion &region);
@ -355,10 +355,10 @@ public:
* Convenience function. Same as above. * Convenience function. Same as above.
* *
* Adds a rectangle (in view coordinates) to the dirty area that is * Adds a rectangle (in view coordinates) to the dirty area that is
* tqrepainted when the tqparent @ref kpViewManager is set not to queue * repainted when the tqparent @ref kpViewManager is set not to queue
* updates. * updates.
* *
* @param rect Rectangle (in view coordinates) that needs tqrepainting. * @param rect Rectangle (in view coordinates) that needs repainting.
*/ */
void addToQueuedArea (const TQRect &rect); void addToQueuedArea (const TQRect &rect);

@ -157,7 +157,7 @@ public:
// //
// This is better than TQWidget::setUpdatesEnabled() because // This is better than TQWidget::setUpdatesEnabled() because
// restoreQueueUpdates() automatically restores only the regions // restoreQueueUpdates() automatically restores only the regions
// of the views that need to be tqrepainted, per view. // of the views that need to be repainted, per view.
bool queueUpdates () const; bool queueUpdates () const;
void setQueueUpdates (); void setQueueUpdates ();
void restoreQueueUpdates (); void restoreQueueUpdates ();

@ -644,7 +644,7 @@ TQRect kpViewScrollableContainer::mapViewToGlobal (const TQRect &viewRect)
// protected // protected
void kpViewScrollableContainer::tqrepaintWidgetAtResizeLineViewRect ( void kpViewScrollableContainer::repaintWidgetAtResizeLineViewRect (
TQWidget *widget, const TQRect &resizeLineViewRect) TQWidget *widget, const TQRect &resizeLineViewRect)
{ {
const TQRect resizeLineGlobalRect = mapViewToGlobal (resizeLineViewRect); const TQRect resizeLineGlobalRect = mapViewToGlobal (resizeLineViewRect);
@ -668,11 +668,11 @@ void kpViewScrollableContainer::tqrepaintWidgetAtResizeLineViewRect (
} }
// protected // protected
void kpViewScrollableContainer::tqrepaintWidgetAtResizeLines (TQWidget *widget) void kpViewScrollableContainer::repaintWidgetAtResizeLines (TQWidget *widget)
{ {
tqrepaintWidgetAtResizeLineViewRect (widget, rightResizeLineRect ()); repaintWidgetAtResizeLineViewRect (widget, rightResizeLineRect ());
tqrepaintWidgetAtResizeLineViewRect (widget, bottomResizeLineRect ()); repaintWidgetAtResizeLineViewRect (widget, bottomResizeLineRect ());
tqrepaintWidgetAtResizeLineViewRect (widget, bottomRightResizeLineRect ()); repaintWidgetAtResizeLineViewRect (widget, bottomRightResizeLineRect ());
} }
// protected // protected
@ -680,12 +680,12 @@ void kpViewScrollableContainer::eraseResizeLines ()
{ {
if (m_resizeRoundedLastViewX >= 0 && m_resizeRoundedLastViewY >= 0) if (m_resizeRoundedLastViewX >= 0 && m_resizeRoundedLastViewY >= 0)
{ {
tqrepaintWidgetAtResizeLines (viewport ()); repaintWidgetAtResizeLines (viewport ());
tqrepaintWidgetAtResizeLines (m_view); repaintWidgetAtResizeLines (m_view);
tqrepaintWidgetAtResizeLines (m_bottomGrip); repaintWidgetAtResizeLines (m_bottomGrip);
tqrepaintWidgetAtResizeLines (m_rightGrip); repaintWidgetAtResizeLines (m_rightGrip);
tqrepaintWidgetAtResizeLines (m_bottomRightGrip); repaintWidgetAtResizeLines (m_bottomRightGrip);
} }
} }

@ -171,9 +171,9 @@ protected:
TQRect mapViewportToGlobal (const TQRect &viewportRect); TQRect mapViewportToGlobal (const TQRect &viewportRect);
TQRect mapViewToGlobal (const TQRect &viewRect); TQRect mapViewToGlobal (const TQRect &viewRect);
void tqrepaintWidgetAtResizeLineViewRect (TQWidget *widget, void repaintWidgetAtResizeLineViewRect (TQWidget *widget,
const TQRect &resizeLineViewRect); const TQRect &resizeLineViewRect);
void tqrepaintWidgetAtResizeLines (TQWidget *widget); void repaintWidgetAtResizeLines (TQWidget *widget);
void eraseResizeLines (); void eraseResizeLines ();
void drawResizeLines (); void drawResizeLines ();

@ -117,9 +117,9 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
+ +
// protected // protected
-void kpViewScrollableContainer::tqrepaintWidgetAtResizeLineViewRect ( -void kpViewScrollableContainer::repaintWidgetAtResizeLineViewRect (
- QWidget *widget, const QRect &resizeLineViewRect) - QWidget *widget, const QRect &resizeLineViewRect)
+void kpViewScrollableContainer::tqrepaintWidgetRegion ( +void kpViewScrollableContainer::repaintWidgetRegion (
+ QWidget *widget, + QWidget *widget,
+ const QRegion &viewRegion) + const QRegion &viewRegion)
{ {
@ -153,12 +153,12 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
} }
// protected // protected
-void kpViewScrollableContainer::tqrepaintWidgetAtResizeLines (QWidget *widget) -void kpViewScrollableContainer::repaintWidgetAtResizeLines (QWidget *widget)
+void kpViewScrollableContainer::eraseResizeLines (const QRegion &viewRegion) +void kpViewScrollableContainer::eraseResizeLines (const QRegion &viewRegion)
{ {
- tqrepaintWidgetAtResizeLineViewRect (widget, rightResizeLineRect ()); - repaintWidgetAtResizeLineViewRect (widget, rightResizeLineRect ());
- tqrepaintWidgetAtResizeLineViewRect (widget, bottomResizeLineRect ()); - repaintWidgetAtResizeLineViewRect (widget, bottomResizeLineRect ());
- tqrepaintWidgetAtResizeLineViewRect (widget, bottomRightResizeLineRect ()); - repaintWidgetAtResizeLineViewRect (widget, bottomRightResizeLineRect ());
-} -}
+ if (viewRegion.isEmpty ()) + if (viewRegion.isEmpty ())
+ return; + return;
@ -168,19 +168,19 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
-{ -{
- if (m_resizeRoundedLastViewX >= 0 && m_resizeRoundedLastViewY >= 0) - if (m_resizeRoundedLastViewX >= 0 && m_resizeRoundedLastViewY >= 0)
- { - {
- tqrepaintWidgetAtResizeLines (viewport ()); - repaintWidgetAtResizeLines (viewport ());
- tqrepaintWidgetAtResizeLines (m_view); - repaintWidgetAtResizeLines (m_view);
- tqrepaintWidgetAtResizeLines (m_bottomGrip); - repaintWidgetAtResizeLines (m_bottomGrip);
- tqrepaintWidgetAtResizeLines (m_rightGrip); - repaintWidgetAtResizeLines (m_rightGrip);
- tqrepaintWidgetAtResizeLines (m_bottomRightGrip); - repaintWidgetAtResizeLines (m_bottomRightGrip);
- } - }
+ tqrepaintWidgetRegion (viewport (), viewRegion); + repaintWidgetRegion (viewport (), viewRegion);
+ tqrepaintWidgetRegion (m_view, viewRegion); + repaintWidgetRegion (m_view, viewRegion);
+ +
+ tqrepaintWidgetRegion (m_bottomGrip, viewRegion); + repaintWidgetRegion (m_bottomGrip, viewRegion);
+ tqrepaintWidgetRegion (m_rightGrip, viewRegion); + repaintWidgetRegion (m_rightGrip, viewRegion);
+ tqrepaintWidgetRegion (m_bottomRightGrip, viewRegion); + repaintWidgetRegion (m_bottomRightGrip, viewRegion);
} }
@ -502,11 +502,11 @@ diff -u -p -r1.3 kpviewscrollablecontainer.h
QRect mapViewToGlobal (const QRect &viewRect); QRect mapViewToGlobal (const QRect &viewRect);
+ QRegion mapViewToGlobal (const QRegion &viewRegion); + QRegion mapViewToGlobal (const QRegion &viewRegion);
- void tqrepaintWidgetAtResizeLineViewRect (QWidget *widget, - void repaintWidgetAtResizeLineViewRect (QWidget *widget,
- const QRect &resizeLineViewRect); - const QRect &resizeLineViewRect);
- void tqrepaintWidgetAtResizeLines (QWidget *widget); - void repaintWidgetAtResizeLines (QWidget *widget);
- void eraseResizeLines (); - void eraseResizeLines ();
+ void tqrepaintWidgetRegion (QWidget *widget, + void repaintWidgetRegion (QWidget *widget,
+ const QRegion &viewRegion); + const QRegion &viewRegion);
+ void eraseResizeLines (const QRegion &viewRegion); + void eraseResizeLines (const QRegion &viewRegion);

@ -499,7 +499,7 @@ void kpEffectBalanceWidget::resetAll ()
return; return;
// Prevent multiple settingsChanged() which would normally result in // Prevent multiple settingsChanged() which would normally result in
// redundant, expensive preview tqrepaints // redundant, expensive preview repaints
blockSignals (true); blockSignals (true);
resetBrightness (); resetBrightness ();

@ -564,7 +564,7 @@ void KookaView::startOCR( KookaImage *img )
connect( ocrFabric, TQT_SIGNAL( newOCRResultText( const TQString& )), connect( ocrFabric, TQT_SIGNAL( newOCRResultText( const TQString& )),
m_dockOCRText, TQT_SLOT( show() )); m_dockOCRText, TQT_SLOT( show() ));
connect( ocrFabric, TQT_SIGNAL( tqrepaintOCRResImage( )), connect( ocrFabric, TQT_SIGNAL( repaintOCRResImage( )),
img_canvas, TQT_SLOT(tqrepaint())); img_canvas, TQT_SLOT(tqrepaint()));
connect( ocrFabric, TQT_SIGNAL( clearOCRResultText()), connect( ocrFabric, TQT_SIGNAL( clearOCRResultText()),

@ -1328,7 +1328,7 @@ void KSANEOCR::slMisspelling( const TQString& originalword, const TQStringList&
/* draw a line under the word to check */ /* draw a line under the word to check */
/* copy the source */ /* copy the source */
emit tqrepaintOCRResImage(); emit repaintOCRResImage();
} }
else else
{ {

@ -162,7 +162,7 @@ signals:
/** /**
* signal the tells that the result image was modified. * signal the tells that the result image was modified.
*/ */
void tqrepaintOCRResImage( ); void repaintOCRResImage( );
/** /**
* indicates that the text editor holding the text that came through * indicates that the text editor holding the text that came through

@ -157,7 +157,7 @@ void PMColorSettings::applySettings( )
tqrepaint = true; tqrepaint = true;
} }
if( tqrepaint ) if( tqrepaint )
emit tqrepaintViews( ); emit repaintViews( );
} }
#include "pmcolorsettings.moc" #include "pmcolorsettings.moc"

@ -351,7 +351,7 @@ private:
*/ */
void selectControlPoint( PMControlPoint* cp, bool select, bool deselectOthers = true ); void selectControlPoint( PMControlPoint* cp, bool select, bool deselectOthers = true );
/** /**
* Invalidates the projection and tqrepaints the view * Invalidates the projection and repaints the view
*/ */
void tqinvalidateProjection( bool graphicaChange = false ); void tqinvalidateProjection( bool graphicaChange = false );

@ -149,7 +149,7 @@ void PMGridSettings::applySettings( )
PMControlPoint::setScaleGrid( m_pScaleGrid->value( ) ); PMControlPoint::setScaleGrid( m_pScaleGrid->value( ) );
PMControlPoint::setRotateGrid( m_pRotateGrid->value( ) ); PMControlPoint::setRotateGrid( m_pRotateGrid->value( ) );
if( tqrepaint ) if( tqrepaint )
emit tqrepaintViews( ); emit repaintViews( );
} }
#include "pmgridsettings.moc" #include "pmgridsettings.moc"

@ -544,7 +544,7 @@ void PMObjectSettings::applySettings( )
tqrepaint = true; tqrepaint = true;
} }
if( tqrepaint ) if( tqrepaint )
emit tqrepaintViews( ); emit repaintViews( );
} }
#include "pmobjectsettings.moc" #include "pmobjectsettings.moc"

@ -180,7 +180,7 @@ void PMPovraySettings::applySettings( )
PMPovrayRenderWidget::setPovrayLibraryPaths( plist ); PMPovrayRenderWidget::setPovrayLibraryPaths( plist );
PMResourceLocator::clearCache( ); PMResourceLocator::clearCache( );
PMText::povrayLibraryPathsChanged( ); PMText::povrayLibraryPathsChanged( );
emit tqrepaintViews( ); emit repaintViews( );
} }
} }

@ -229,7 +229,7 @@ void PMSettingsDialog::registerPage( TQWidget* topPage,
else else
{ {
m_pages.push_back( PMRegisteredSettingsPage( topPage, page, i ) ); m_pages.push_back( PMRegisteredSettingsPage( topPage, page, i ) );
connect( page, TQT_SIGNAL( tqrepaintViews( ) ), TQT_SLOT( slotRepaint( ) ) ); connect( page, TQT_SIGNAL( repaintViews( ) ), TQT_SLOT( slotRepaint( ) ) );
connect( page, TQT_SIGNAL( showMe( ) ), TQT_SLOT( slotShowPage( ) ) ); connect( page, TQT_SIGNAL( showMe( ) ), TQT_SLOT( slotShowPage( ) ) );
} }
} }

@ -89,7 +89,7 @@ signals:
* Emit this signal if a parameter was changed * Emit this signal if a parameter was changed
* that influences the wire frame rendering. * that influences the wire frame rendering.
*/ */
void tqrepaintViews( ); void repaintViews( );
/** /**
* Tells the settings dialog to show this page. * Tells the settings dialog to show this page.
*/ */

@ -324,7 +324,7 @@ void PMTreeView::slotClear( )
void PMTreeView::itemSelected( PMTreeViewItem* item, bool selected ) void PMTreeView::itemSelected( PMTreeViewItem* item, bool selected )
{ {
tqrepaintItem( item ); repaintItem( item );
if( m_event ) if( m_event )
{ {

@ -137,7 +137,7 @@ public:
void select( int i, int j ); void select( int i, int j );
/** /**
* Blocks/unblocks selection updates. If block is false, the * Blocks/unblocks selection updates. If block is false, the
* selection is tqrepainted. * selection is repainted.
*/ */
void blockSelectionUpdates( bool block ); void blockSelectionUpdates( bool block );

@ -362,7 +362,7 @@ signals:
This signal can be emitted if the document or status of this class This signal can be emitted if the document or status of this class
changed internally so that all associated widgets should be changed internally so that all associated widgets should be
tqrepainted. This could be emitted, e.g. if pages are removed from a repainted. This could be emitted, e.g. if pages are removed from a
document, or if some preferences change that have some direct document, or if some preferences change that have some direct
influence on the way the document is rendered. influence on the way the document is rendered.

@ -700,14 +700,14 @@ void KMultiPage::renderModeChanged()
documentWidget->update(); documentWidget->update();
} }
markList()->tqrepaintThumbnails(); markList()->repaintThumbnails();
} }
void KMultiPage::tqrepaintAllVisibleWidgets() void KMultiPage::repaintAllVisibleWidgets()
{ {
#ifdef DEBUG_KMULTIPAGE #ifdef DEBUG_KMULTIPAGE
kdDebug(1233) << "KMultiPage::tqrepaintAllVisibleWidgets()" << endl; kdDebug(1233) << "KMultiPage::repaintAllVisibleWidgets()" << endl;
#endif #endif
bool everResized = false; bool everResized = false;
@ -872,7 +872,7 @@ void KMultiPage::setRenderer(DocumentRenderer* _renderer)
connect(pageCache, TQT_SIGNAL(paperSizeChanged()), this, TQT_SLOT(renderModeChanged())); connect(pageCache, TQT_SIGNAL(paperSizeChanged()), this, TQT_SLOT(renderModeChanged()));
connect(pageCache, TQT_SIGNAL(textSelected(bool)), this, TQT_SIGNAL(textSelected(bool))); connect(pageCache, TQT_SIGNAL(textSelected(bool)), this, TQT_SIGNAL(textSelected(bool)));
connect(renderer, TQT_SIGNAL(documentIsChanged()), this, TQT_SLOT(renderModeChanged())); connect(renderer, TQT_SIGNAL(documentIsChanged()), this, TQT_SLOT(renderModeChanged()));
connect(this, TQT_SIGNAL(zoomChanged()), this, TQT_SLOT(tqrepaintAllVisibleWidgets())); connect(this, TQT_SIGNAL(zoomChanged()), this, TQT_SLOT(repaintAllVisibleWidgets()));
} }

@ -426,9 +426,9 @@ public slots:
*/ */
void renderModeChanged(); void renderModeChanged();
/* Empties the page cache and --as the name suggests-- tqrepaints all /* Empties the page cache and --as the name suggests-- repaints all
visible widgets. */ visible widgets. */
void tqrepaintAllVisibleWidgets(); void repaintAllVisibleWidgets();
/* Tells the multipage if scrollbars should be used. */ /* Tells the multipage if scrollbars should be used. */
virtual void slotShowScrollbars(bool); virtual void slotShowScrollbars(bool);

@ -542,7 +542,7 @@ void MarkList::slotShowThumbnails(bool show)
} }
void MarkList::tqrepaintThumbnails() void MarkList::repaintThumbnails()
{ {
bool show = showThumbnails; bool show = showThumbnails;
int numOfPages = widgetList.count(); int numOfPages = widgetList.count();

@ -151,7 +151,7 @@ public slots:
void clear(); void clear();
void slotShowThumbnails(bool); void slotShowThumbnails(bool);
void tqrepaintThumbnails(); void repaintThumbnails();
void updateWidgetSize(const PageNumber&); void updateWidgetSize(const PageNumber&);

Loading…
Cancel
Save