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

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

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

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

@ -705,11 +705,11 @@ void kpDocumentSaveOptionsWidget::setMode (Mode mode)
// 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.
// TQt bug.
TQTimer::singleShot (0, this, TQT_SLOT (tqrepaintLabels ()));
TQTimer::singleShot (0, this, TQT_SLOT (repaintLabels ()));
}
// protected slot
void kpDocumentSaveOptionsWidget::tqrepaintLabels ()
void kpDocumentSaveOptionsWidget::repaintLabels ()
{
if (mode () != Quality)
m_colorDepthLabel->tqrepaint ();

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

@ -344,10 +344,10 @@ protected:
public:
/**
* 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.
*
* @param region Region (in view coordinates) that needs tqrepainting.
* @param region Region (in view coordinates) that needs repainting.
*/
void addToQueuedArea (const TQRegion &region);
@ -355,10 +355,10 @@ public:
* Convenience function. Same as above.
*
* 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.
*
* @param rect Rectangle (in view coordinates) that needs tqrepainting.
* @param rect Rectangle (in view coordinates) that needs repainting.
*/
void addToQueuedArea (const TQRect &rect);

@ -157,7 +157,7 @@ public:
//
// This is better than TQWidget::setUpdatesEnabled() because
// 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;
void setQueueUpdates ();
void restoreQueueUpdates ();

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

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

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

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

@ -564,7 +564,7 @@ void KookaView::startOCR( KookaImage *img )
connect( ocrFabric, TQT_SIGNAL( newOCRResultText( const TQString& )),
m_dockOCRText, TQT_SLOT( show() ));
connect( ocrFabric, TQT_SIGNAL( tqrepaintOCRResImage( )),
connect( ocrFabric, TQT_SIGNAL( repaintOCRResImage( )),
img_canvas, TQT_SLOT(tqrepaint()));
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 */
/* copy the source */
emit tqrepaintOCRResImage();
emit repaintOCRResImage();
}
else
{

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

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

@ -351,7 +351,7 @@ private:
*/
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 );

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

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

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

@ -229,7 +229,7 @@ void PMSettingsDialog::registerPage( TQWidget* topPage,
else
{
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( ) ) );
}
}

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

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

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

@ -362,7 +362,7 @@ signals:
This signal can be emitted if the document or status of this class
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
influence on the way the document is rendered.

@ -700,14 +700,14 @@ void KMultiPage::renderModeChanged()
documentWidget->update();
}
markList()->tqrepaintThumbnails();
markList()->repaintThumbnails();
}
void KMultiPage::tqrepaintAllVisibleWidgets()
void KMultiPage::repaintAllVisibleWidgets()
{
#ifdef DEBUG_KMULTIPAGE
kdDebug(1233) << "KMultiPage::tqrepaintAllVisibleWidgets()" << endl;
kdDebug(1233) << "KMultiPage::repaintAllVisibleWidgets()" << endl;
#endif
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(textSelected(bool)), this, TQT_SIGNAL(textSelected(bool)));
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();
/* Empties the page cache and --as the name suggests-- tqrepaints all
/* Empties the page cache and --as the name suggests-- repaints all
visible widgets. */
void tqrepaintAllVisibleWidgets();
void repaintAllVisibleWidgets();
/* Tells the multipage if scrollbars should be used. */
virtual void slotShowScrollbars(bool);

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

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

Loading…
Cancel
Save