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

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 598cf55c6e
commit c3509de54b

@ -228,7 +228,7 @@ void CharTable::paintEvent(TQPaintEvent* e)
TQFrame::paintEvent(e); TQFrame::paintEvent(e);
} }
void CharTable::tqrepaintCell(int r, int c) void CharTable::repaintCell(int r, int c)
{ {
TQPainter p(this); TQPainter p(this);
@ -307,8 +307,8 @@ void CharTable::selectCell(int row, int col)
_activeRow = row; _activeRow = row;
_activeCol = col; _activeCol = col;
tqrepaintCell(oldRow, oldCol); repaintCell(oldRow, oldCol);
tqrepaintCell(_activeRow, _activeCol); repaintCell(_activeRow, _activeCol);
TQClipboard *cb = TQApplication::tqclipboard(); TQClipboard *cb = TQApplication::tqclipboard();
TQObject::disconnect( cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) ); TQObject::disconnect( cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) );
@ -330,7 +330,7 @@ void CharTable::clearCell()
_activeRow = -1; _activeRow = -1;
_activeCol = -1; _activeCol = -1;
tqrepaintCell(oldRow, oldCol); repaintCell(oldRow, oldCol);
TQObject::disconnect( TQApplication::tqclipboard(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) ); TQObject::disconnect( TQApplication::tqclipboard(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) );
} }

@ -75,7 +75,7 @@ protected:
void mouseMoveEvent(TQMouseEvent*); void mouseMoveEvent(TQMouseEvent*);
void paintCell(TQPainter*, int, int); void paintCell(TQPainter*, int, int);
void tqrepaintCell(int, int); void repaintCell(int, int);
void selectCell(int row, int col); void selectCell(int row, int col);
void insertString(TQString s); void insertString(TQString s);

@ -543,7 +543,7 @@ void KDFWidget::popupMenu( TQListViewItem *item, const TQPoint &p )
/************************************************************************** /**************************************************************************
* recalculates and tqrepaints the pixBars * recalculates and repaints the pixBars
**/ **/
void KDFWidget::updateDiskBarPixmaps( void ) void KDFWidget::updateDiskBarPixmaps( void )
{ {

@ -187,7 +187,7 @@ void KEditor::doEditAction( KEditAction Action )
} }
} }
HexEdit->tqrepaintChanged(); HexEdit->repaintChanged();
HexEdit->ensureCursorVisible(); HexEdit->ensureCursorVisible();
HexEdit->unpauseCursor(); HexEdit->unpauseCursor();

@ -127,7 +127,7 @@ void KNavigator::moveCursor( KMoveAction Action, bool Select )
if( Select ) if( Select )
BufferRanges->setSelectionEnd( BufferCursor->realIndex() ); BufferRanges->setSelectionEnd( BufferCursor->realIndex() );
HexEdit->tqrepaintChanged(); HexEdit->repaintChanged();
HexEdit->ensureCursorVisible(); HexEdit->ensureCursorVisible();
HexEdit->unpauseCursor(); HexEdit->unpauseCursor();

@ -115,7 +115,7 @@ bool KValueEditor::handleKeyPress( TQKeyEvent *KeyEvent )
BufferCursor->gotoRealIndex(); BufferCursor->gotoRealIndex();
KSection ChangedRange( Index,HexEdit->DataBuffer->size()-1 ); KSection ChangedRange( Index,HexEdit->DataBuffer->size()-1 );
HexEdit->BufferRanges->addChangedRange( ChangedRange ); HexEdit->BufferRanges->addChangedRange( ChangedRange );
HexEdit->tqrepaintChanged(); HexEdit->repaintChanged();
HexEdit->ensureCursorVisible(); HexEdit->ensureCursorVisible();
HexEdit->unpauseCursor(); HexEdit->unpauseCursor();
HexEdit->updateCursor(); HexEdit->updateCursor();

@ -129,7 +129,7 @@ void KBytesEdit::setKeepsMemory( bool KM )
bool KBytesEdit::isAutoDelete() const { return AutoDelete; } bool KBytesEdit::isAutoDelete() const { return AutoDelete; }
void KBytesEdit::tqrepaintRange( int i1, int i2 ) void KBytesEdit::repaintRange( int i1, int i2 )
{ {
bool ChangeCursor = !(CursorPaused) && KSection(i1,i2).includes( BufferCursor->index() ); bool ChangeCursor = !(CursorPaused) && KSection(i1,i2).includes( BufferCursor->index() );
if( ChangeCursor ) if( ChangeCursor )
@ -137,7 +137,7 @@ void KBytesEdit::tqrepaintRange( int i1, int i2 )
BufferRanges->addChangedRange( i1, i2 ); BufferRanges->addChangedRange( i1, i2 );
tqrepaintChanged(); repaintChanged();
if( ChangeCursor ) if( ChangeCursor )
unpauseCursor(); unpauseCursor();

@ -36,7 +36,7 @@ class KBytesEditPrivate;
* *
* 1. used as viewer * 1. used as viewer
* a) static data ranges -> no changes for data pointer and length * a) static data ranges -> no changes for data pointer and length
* possible changes are told to the widget by tqrepaintRange * possible changes are told to the widget by repaintRange
* b) changing data ranges -> data pointer and length might change * b) changing data ranges -> data pointer and length might change
* changes told by * changes told by
* * resetData( char *, int size, bool tqrepaint ); * * resetData( char *, int size, bool tqrepaint );
@ -138,7 +138,7 @@ class KHEXEDIT_EXPORT KBytesEdit : public KHexEdit
void setKeepsMemory( bool KM = true ); void setKeepsMemory( bool KM = true );
/** tqrepaint the indizes from i1 to i2 */ /** tqrepaint the indizes from i1 to i2 */
void tqrepaintRange( int i1, int i2 ); void repaintRange( int i1, int i2 );
protected: protected:
/** deletes the databuffer */ /** deletes the databuffer */

@ -129,10 +129,10 @@ void KColumnsView::updateView()
} }
void KColumnsView::tqrepaintView() void KColumnsView::repaintView()
{ {
resizeContents( totalWidth(), totalHeight() ); resizeContents( totalWidth(), totalHeight() );
tqrepaintContents( false ); repaintContents( false );
} }

@ -113,7 +113,7 @@ class KColumnsView : public TQScrollView
protected: // painting protected: // painting
void updateView(); void updateView();
void tqrepaintView(); void repaintView();
private: private:
/** hiding it*/ /** hiding it*/

@ -737,7 +737,7 @@ bool KHexEdit::selectWord( /*unsigned TODO:change all unneeded signed into unsig
BufferRanges->setFirstWordSelection( WordSection ); BufferRanges->setFirstWordSelection( WordSection );
BufferCursor->gotoIndex( WordSection.end()+1 ); BufferCursor->gotoIndex( WordSection.end()+1 );
tqrepaintChanged(); repaintChanged();
unpauseCursor(); unpauseCursor();
return true; return true;
@ -757,7 +757,7 @@ void KHexEdit::select( KSection Section )
BufferRanges->setSelection( Section ); BufferRanges->setSelection( Section );
BufferCursor->gotoIndex( Section.end()+1 ); BufferCursor->gotoIndex( Section.end()+1 );
tqrepaintChanged(); repaintChanged();
unpauseCursor(); unpauseCursor();
@ -781,7 +781,7 @@ void KHexEdit::selectAll( bool Select )
BufferCursor->gotoEnd(); BufferCursor->gotoEnd();
} }
tqrepaintChanged(); repaintChanged();
unpauseCursor(); unpauseCursor();
@ -967,7 +967,7 @@ void KHexEdit::insert( const TQByteArray &D )
if( Changed ) if( Changed )
{ {
BufferRanges->addChangedRange( ChangedRange ); BufferRanges->addChangedRange( ChangedRange );
tqrepaintChanged(); repaintChanged();
} }
ensureCursorVisible(); ensureCursorVisible();
@ -994,7 +994,7 @@ void KHexEdit::removeSelectedData()
KSection ChangedRange = removeData( Selection ); KSection ChangedRange = removeData( Selection );
BufferRanges->removeSelection(); BufferRanges->removeSelection();
tqrepaintChanged(); repaintChanged();
BufferCursor->gotoCIndex( Selection.start() ); BufferCursor->gotoCIndex( Selection.start() );
@ -1059,7 +1059,7 @@ void KHexEdit::setCursorPosition( int Index, bool Behind )
bool RangesModifed = BufferRanges->isModified(); bool RangesModifed = BufferRanges->isModified();
if( RangesModifed ) if( RangesModifed )
{ {
tqrepaintChanged(); repaintChanged();
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor ); viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
@ -1201,7 +1201,7 @@ bool KHexEdit::eventFilter( TQObject *O, TQEvent *E )
// doc->setDefaultFormat( doc->formatCollection()->defaultFormat()->font(), c ); // doc->setDefaultFormat( doc->formatCollection()->defaultFormat()->font(), c );
// lastFormatted = doc->firstParagraph(); // lastFormatted = doc->firstParagraph();
// formatMore(); // formatMore();
// tqrepaintChanged(); // repaintChanged();
// } // }
// } // }
@ -1397,12 +1397,12 @@ void KHexEdit::keyPressEvent( TQKeyEvent *KeyEvent )
} }
void KHexEdit::tqrepaintChanged() void KHexEdit::repaintChanged()
{ {
if( !isUpdatesEnabled() || !viewport()->isUpdatesEnabled() || !BufferRanges->isModified() ) if( !isUpdatesEnabled() || !viewport()->isUpdatesEnabled() || !BufferRanges->isModified() )
return; return;
// TODO: we do this only to let the scrollview handle new or removed lines. overlaps with tqrepaintRange // TODO: we do this only to let the scrollview handle new or removed lines. overlaps with repaintRange
resizeContents( totalWidth(), totalHeight() ); resizeContents( totalWidth(), totalHeight() );
KPixelXs Xs( contentsX(), visibleWidth(), true ); KPixelXs Xs( contentsX(), visibleWidth(), true );
@ -1559,7 +1559,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e )
BufferRanges->setSelectionStart( BufferLayout->indexAtLineStart(DoubleClickLine) ); BufferRanges->setSelectionStart( BufferLayout->indexAtLineStart(DoubleClickLine) );
BufferCursor->gotoLineEnd(); BufferCursor->gotoLineEnd();
BufferRanges->setSelectionEnd( BufferCursor->realIndex() ); BufferRanges->setSelectionEnd( BufferCursor->realIndex() );
tqrepaintChanged(); repaintChanged();
unpauseCursor(); unpauseCursor();
return; return;
@ -1606,7 +1606,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e )
if( BufferRanges->isModified() ) if( BufferRanges->isModified() )
{ {
tqrepaintChanged(); repaintChanged();
viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor ); viewport()->setCursor( isReadOnly() ? arrowCursor : ibeamCursor );
} }
@ -1699,7 +1699,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e )
ClipboardMode = TQClipboard::Clipboard; ClipboardMode = TQClipboard::Clipboard;
// ensure selection changes to be drawn TODO: create a insert/pasteAtCursor that leaves out drawing // ensure selection changes to be drawn TODO: create a insert/pasteAtCursor that leaves out drawing
tqrepaintChanged(); repaintChanged();
ensureCursorVisible(); ensureCursorVisible();
unpauseCursor(); unpauseCursor();
@ -1803,7 +1803,7 @@ void KHexEdit::handleMouseMove( const TQPoint& Point ) // handles the move of th
if( BufferRanges->selectionStarted() ) if( BufferRanges->selectionStarted() )
BufferRanges->setSelectionEnd( BufferCursor->realIndex() ); BufferRanges->setSelectionEnd( BufferCursor->realIndex() );
tqrepaintChanged(); repaintChanged();
unpauseCursor(); unpauseCursor();
} }
@ -1953,7 +1953,7 @@ void KHexEdit::handleInternalDrag( TQDropEvent *e )
BufferRanges->addChangedRange( ChangedRange ); BufferRanges->addChangedRange( ChangedRange );
BufferRanges->removeSelection(); BufferRanges->removeSelection();
tqrepaintChanged(); repaintChanged();
ensureCursorVisible(); ensureCursorVisible();
// open ui // open ui

@ -216,7 +216,7 @@ class KHEXEDIT_EXPORT KHexEdit : public KColumnsView
void placeCursor( const TQPoint &Point ); void placeCursor( const TQPoint &Point );
/***/ /***/
void setCursorColumn( KBufferColumnId ); void setCursorColumn( KBufferColumnId );
// void tqrepaintByte( int row, int column, bool Erase = true ); // void repaintByte( int row, int column, bool Erase = true );
// void updateByte( int row, int column ); // void updateByte( int row, int column );
// void ensureByteVisible( int row, int column ); // void ensureByteVisible( int row, int column );
@ -397,8 +397,8 @@ class KHEXEDIT_EXPORT KHexEdit : public KColumnsView
/** handles screen update in case of a change to any of the width sizes /** handles screen update in case of a change to any of the width sizes
*/ */
void updateViewByWidth(); void updateViewByWidth();
/** tqrepaints all the parts that are signed as changed */ /** repaints all the parts that are signed as changed */
void tqrepaintChanged(); void repaintChanged();
protected: // drawing related operations protected: // drawing related operations
/** recreates the cursor pixmaps and paints active and inactive cursors if doable */ /** recreates the cursor pixmaps and paints active and inactive cursors if doable */

@ -247,9 +247,9 @@ bool KBytesEditWidget::hasSelectedData() const
} }
void KBytesEditWidget::tqrepaintRange( int i1, int i2 ) void KBytesEditWidget::repaintRange( int i1, int i2 )
{ {
BytesEdit->tqrepaintRange( i1, i2 ); BytesEdit->repaintRange( i1, i2 );
} }

@ -87,7 +87,7 @@ class KBytesEditWidget : public TQWidget, public KHE::BytesEditInterface,
virtual bool isReadOnly() const; virtual bool isReadOnly() const;
virtual bool isModified() const; virtual bool isModified() const;
/** tqrepaint the indizes from i1 to i2 */ /** tqrepaint the indizes from i1 to i2 */
virtual void tqrepaintRange( int i1, int i2 ); virtual void repaintRange( int i1, int i2 );
public: // cursor interface public: // cursor interface
/** */ /** */

@ -1,4 +1,4 @@
(1) If I do not resize the widget to be reparented then it will take up all (1) If I do not resize the widget to be reparented then it will take up all
the size of its new tqparent, and the tqparent will never receive a the size of its new tqparent, and the tqparent will never receive a
tqrepaint event, and will thus never get a chance to resize its new child tqrepaint event, and will thus never get a chance to resize its new child
to a proper size (This is namely done in tqrepaintEvent() ). to a proper size (This is namely done in repaintEvent() ).

@ -99,7 +99,7 @@ public:
virtual bool updateSelection(bool tqparentSelected); virtual bool updateSelection(bool tqparentSelected);
/** /**
Clears the selection and tqrepaints the widget if `update' is true. Clears the selection and repaints the widget if `update' is true.
*/ */
virtual void clearSelection(); virtual void clearSelection();

@ -36,7 +36,7 @@ KSim::Frame::~Frame()
{ {
} }
void KSim::Frame::configureObject(bool tqrepaintWidget) void KSim::Frame::configureObject(bool repaintWidget)
{ {
m_image.load(themeLoader().current().framePixmap(type())); m_image.load(themeLoader().current().framePixmap(type()));
@ -58,7 +58,7 @@ void KSim::Frame::configureObject(bool tqrepaintWidget)
themeLoader().reColourImage(m_image); themeLoader().reColourImage(m_image);
m_background.convertFromImage(m_image.smoothScale(size())); m_background.convertFromImage(m_image.smoothScale(size()));
if (tqrepaintWidget) if (repaintWidget)
update(); update();
} }

@ -40,7 +40,7 @@ namespace KSim
~Frame(); ~Frame();
const TQPixmap *const background() const { return &m_background; } const TQPixmap *const background() const { return &m_background; }
virtual void configureObject(bool tqrepaintWidget=true); virtual void configureObject(bool repaintWidget=true);
protected: protected:
virtual void paintEvent(TQPaintEvent *); virtual void paintEvent(TQPaintEvent *);

@ -249,7 +249,7 @@ void KSim::Chart::buildPixmaps()
} }
} }
void KSim::Chart::configureObject(bool tqrepaintWidget) void KSim::Chart::configureObject(bool repaintWidget)
{ {
TQSize oldSize = tqsizeHint(); TQSize oldSize = tqsizeHint();
KSim::Config::config()->setGroup("Misc"); KSim::Config::config()->setGroup("Misc");
@ -275,7 +275,7 @@ void KSim::Chart::configureObject(bool tqrepaintWidget)
setConfigValues(); setConfigValues();
if (tqrepaintWidget) if (repaintWidget)
update(); update();
} }

@ -104,7 +104,7 @@ namespace KSim
/** /**
* reimplemented for internal reasons * reimplemented for internal reasons
*/ */
virtual void configureObject(bool tqrepaintWidget = true); virtual void configureObject(bool repaintWidget = true);
/** /**
* reimplemented for internal reasons * reimplemented for internal reasons

@ -63,7 +63,7 @@ namespace KSim
* } * }
* ~Test() {} * ~Test() {}
* *
* void configureObject(bool tqrepaintWidget) * void configureObject(bool repaintWidget)
* { * {
* // Re-Create view code here * // Re-Create view code here
* } * }

@ -79,7 +79,7 @@ const TQString &KSim::Label::text() const
return d->text; return d->text;
} }
void KSim::Label::configureObject(bool tqrepaintWidget) void KSim::Label::configureObject(bool repaintWidget)
{ {
TQString image = themeLoader().current().meterPixmap(type(), false); TQString image = themeLoader().current().meterPixmap(type(), false);
if (image.isEmpty()) if (image.isEmpty())
@ -91,7 +91,7 @@ void KSim::Label::configureObject(bool tqrepaintWidget)
TQSize oldSize = tqsizeHint(); TQSize oldSize = tqsizeHint();
setConfigValues(); setConfigValues();
retqlayoutLabel(oldSize, tqrepaintWidget); retqlayoutLabel(oldSize, repaintWidget);
} }
void KSim::Label::setPixmap(const TQPixmap &pixmap) void KSim::Label::setPixmap(const TQPixmap &pixmap)

@ -96,7 +96,7 @@ namespace KSim
/** /**
* recreates the labels look & feel * recreates the labels look & feel
*/ */
virtual void configureObject(bool tqrepaintWidget = true); virtual void configureObject(bool repaintWidget = true);
/** /**
* sets a pixmap for the label * sets a pixmap for the label
*/ */

@ -108,7 +108,7 @@ const TQRect &KSim::Progress::rectOrigin() const
return d->rectOrigin; return d->rectOrigin;
} }
void KSim::Progress::configureObject(bool tqrepaintWidget) void KSim::Progress::configureObject(bool repaintWidget)
{ {
KSim::Label::configureObject(false); KSim::Label::configureObject(false);
@ -120,7 +120,7 @@ void KSim::Progress::configureObject(bool tqrepaintWidget)
setMeterPixmap(themeLoader().current().splitPixmap(KSim::Theme::KrellMeter)); setMeterPixmap(themeLoader().current().splitPixmap(KSim::Theme::KrellMeter));
} }
if (tqrepaintWidget) if (repaintWidget)
update(); update();
} }

@ -118,7 +118,7 @@ namespace KSim
/** /**
* reimplemented for internal reasons * reimplemented for internal reasons
*/ */
virtual void configureObject(bool tqrepaintWidget = true); virtual void configureObject(bool repaintWidget = true);
/** /**
* reimplemented for internal reasons * reimplemented for internal reasons
*/ */

@ -197,7 +197,7 @@ protected:
private: private:
bool widgetUpdate; bool widgetUpdate;
bool tqrepaintInProgress; bool repaintInProgress;
//bool reloading; //bool reloading;
bool want_right_button; bool want_right_button;
bool want_meter_wheel_event; bool want_meter_wheel_event;

@ -188,7 +188,7 @@ void KWidgetListbox::showItems(show_callback func, void* data)
void KWidgetListbox::showEvent(TQShowEvent*) void KWidgetListbox::showEvent(TQShowEvent*)
{ {
//kdDebug() << k_funcinfo << endl; //kdDebug() << k_funcinfo << endl;
tqrepaintContents(false); repaintContents(false);
} }
void KWidgetListbox::paintCell(TQPainter*, int, int, const TQRect&, void KWidgetListbox::paintCell(TQPainter*, int, int, const TQRect&,

Loading…
Cancel
Save