Browse Source

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
tags/v3.5.13
tpearson 9 years ago
parent
commit
03d51915bf
29 changed files with 70 additions and 70 deletions
  1. +2
    -2
      kcoloredit/gradientselection.cpp
  2. +3
    -3
      kcoloredit/paletteviewscrolledarea.cpp
  3. +3
    -3
      kcoloredit/paletteviewscrolledarea.h
  4. +1
    -1
      kiconedit/kicongrid.h
  5. +2
    -2
      kolourpaint/kpdocumentsaveoptionswidget.cpp
  6. +1
    -1
      kolourpaint/kpdocumentsaveoptionswidget.h
  7. +4
    -4
      kolourpaint/kpview.h
  8. +1
    -1
      kolourpaint/kpviewmanager.h
  9. +10
    -10
      kolourpaint/kpviewscrollablecontainer.cpp
  10. +2
    -2
      kolourpaint/kpviewscrollablecontainer.h
  11. +19
    -19
      kolourpaint/patches/doc_resize_no_flicker.diff
  12. +1
    -1
      kolourpaint/pixmapfx/kpeffectbalance.cpp
  13. +1
    -1
      kooka/kookaview.cpp
  14. +1
    -1
      kooka/ksaneocr.cpp
  15. +1
    -1
      kooka/ksaneocr.h
  16. +1
    -1
      kpovmodeler/pmcolorsettings.cpp
  17. +1
    -1
      kpovmodeler/pmglview.h
  18. +1
    -1
      kpovmodeler/pmgridsettings.cpp
  19. +1
    -1
      kpovmodeler/pmobjectsettings.cpp
  20. +1
    -1
      kpovmodeler/pmpovraysettings.cpp
  21. +1
    -1
      kpovmodeler/pmsettingsdialog.cpp
  22. +1
    -1
      kpovmodeler/pmsettingsdialog.h
  23. +1
    -1
      kpovmodeler/pmtreeview.cpp
  24. +1
    -1
      kpovmodeler/pmvectorlistedit.h
  25. +1
    -1
      kviewshell/documentRenderer.h
  26. +4
    -4
      kviewshell/kmultipage.cpp
  27. +2
    -2
      kviewshell/kmultipage.h
  28. +1
    -1
      kviewshell/marklist.cpp
  29. +1
    -1
      kviewshell/marklist.h

+ 2
- 2
kcoloredit/gradientselection.cpp View File

@@ -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);
}


+ 3
- 3
kcoloredit/paletteviewscrolledarea.cpp View File

@@ -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();
}
}



+ 3
- 3
kcoloredit/paletteviewscrolledarea.h View File

@@ -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 */


+ 1
- 1
kiconedit/kicongrid.h View File

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


+ 2
- 2
kolourpaint/kpdocumentsaveoptionswidget.cpp View File

@@ -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 ();


+ 1
- 1
kolourpaint/kpdocumentsaveoptionswidget.h View File

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

protected slots:
void tqrepaintLabels ();
void repaintLabels ();


protected slots:


+ 4
- 4
kolourpaint/kpview.h View File

@@ -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);



+ 1
- 1
kolourpaint/kpviewmanager.h View File

@@ -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 ();


+ 10
- 10
kolourpaint/kpviewscrollablecontainer.cpp View File

@@ -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);
}
}



+ 2
- 2
kolourpaint/kpviewscrollablecontainer.h View File

@@ -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 ();


+ 19
- 19
kolourpaint/patches/doc_resize_no_flicker.diff View File

@@ -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);


+ 1
- 1
kolourpaint/pixmapfx/kpeffectbalance.cpp View File

@@ -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 ();


+ 1
- 1
kooka/kookaview.cpp View File

@@ -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()),


+ 1
- 1
kooka/ksaneocr.cpp View File

@@ -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
{


+ 1
- 1
kooka/ksaneocr.h View File

@@ -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


+ 1
- 1
kpovmodeler/pmcolorsettings.cpp View File

@@ -157,7 +157,7 @@ void PMColorSettings::applySettings( )
tqrepaint = true;
}
if( tqrepaint )
emit tqrepaintViews( );
emit repaintViews( );
}

#include "pmcolorsettings.moc"

+ 1
- 1
kpovmodeler/pmglview.h View File

@@ -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 );



+ 1
- 1
kpovmodeler/pmgridsettings.cpp View File

@@ -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"

+ 1
- 1
kpovmodeler/pmobjectsettings.cpp View File

@@ -544,7 +544,7 @@ void PMObjectSettings::applySettings( )
tqrepaint = true;
}
if( tqrepaint )
emit tqrepaintViews( );
emit repaintViews( );
}

#include "pmobjectsettings.moc"

+ 1
- 1
kpovmodeler/pmpovraysettings.cpp View File

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



+ 1
- 1
kpovmodeler/pmsettingsdialog.cpp View File

@@ -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( ) ) );
}
}


+ 1
- 1
kpovmodeler/pmsettingsdialog.h View File

@@ -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.
*/


+ 1
- 1
kpovmodeler/pmtreeview.cpp View File

@@ -324,7 +324,7 @@ void PMTreeView::slotClear( )

void PMTreeView::itemSelected( PMTreeViewItem* item, bool selected )
{
tqrepaintItem( item );
repaintItem( item );

if( m_event )
{


+ 1
- 1
kpovmodeler/pmvectorlistedit.h View File

@@ -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 );



+ 1
- 1
kviewshell/documentRenderer.h View File

@@ -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.



+ 4
- 4
kviewshell/kmultipage.cpp View File

@@ -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()));
}




+ 2
- 2
kviewshell/kmultipage.h View File

@@ -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);


+ 1
- 1
kviewshell/marklist.cpp View File

@@ -542,7 +542,7 @@ void MarkList::slotShowThumbnails(bool show)
}


void MarkList::tqrepaintThumbnails()
void MarkList::repaintThumbnails()
{
bool show = showThumbnails;
int numOfPages = widgetList.count();


+ 1
- 1
kviewshell/marklist.h View File

@@ -151,7 +151,7 @@ public slots:
void clear();

void slotShowThumbnails(bool);
void tqrepaintThumbnails();
void repaintThumbnails();

void updateWidgetSize(const PageNumber&);



Loading…
Cancel
Save