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

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 0ec9a2e4ec
commit 6171b51130

@ -273,11 +273,11 @@ void KateFileList::slotModChanged (Kate::Document *doc)
for ( uint i=0; i < m_editHistory.count(); i++ )
{
m_editHistory.tqat( i )->setEditHistPos( i+1 );
tqrepaintItem( m_editHistory.tqat( i ) );
repaintItem( m_editHistory.tqat( i ) );
}
}
else
tqrepaintItem( item );
repaintItem( item );
}
void KateFileList::slotModifiedOnDisc (Kate::Document *doc, bool, unsigned char)
@ -296,7 +296,7 @@ void KateFileList::slotNameChanged (Kate::Document *doc)
if ( ((KateFileListItem*)item)->document() == doc )
{
item->setText( 0, doc->docName() );
tqrepaintItem( item );
repaintItem( item );
break;
}
item = item->nextSibling();
@ -343,7 +343,7 @@ void KateFileList::slotViewChanged ()
for ( uint i=0; i < m_viewHistory.count(); i++ )
{
m_viewHistory.tqat( i )->setViewHistPos( i+1 );
tqrepaintItem( m_viewHistory.tqat( i ) );
repaintItem( m_viewHistory.tqat( i ) );
}
}

@ -191,7 +191,7 @@ int KBackgroundRenderer::doBackground(bool quit)
int tile_val = TQPixmap::defaultDepth() >= 24 ? 1 : 2;
// some dithering may be needed even with bpb==15/16, so don't use tileWidth==1
// for them
// with tileWidth>2, tqrepainting the desktop causes nasty effect (XFree86 4.1.0 )
// with tileWidth>2, repainting the desktop causes nasty effect (XFree86 4.1.0 )
if( XQueryBestTile( qt_xdisplay(), qt_xrootwin(), tile_val, tile_val,
&tileWidth, &tileHeight ) != Success )
tileWidth = tileHeight = tile_val; // some defaults

@ -345,7 +345,7 @@ void KBackgroundManager::slotChangeNumberOfDesktops(int num)
/*
* Call this when the desktop has been changed.
* Desk is in KWin convention: [1..desks], instead of [0..desks-1].
* 0 tqrepaints the current desktop.
* 0 repaints the current desktop.
*/
void KBackgroundManager::slotChangeDesktop(int desk)
{
@ -405,7 +405,7 @@ void KBackgroundManager::slotChangeDesktop(int desk)
/*
* Call this when the viewport has been changed.
* Desk is in KWin convention: [1..desks], instead of [0..desks-1].
* 0 tqrepaints the current viewport.
* 0 repaints the current viewport.
*/
void KBackgroundManager::slotChangeViewport(int desk, const TQPoint& viewport)
{
@ -931,7 +931,7 @@ void KBackgroundManager::setWallpaper(int desk, TQString wallpaper, int mode)
slotChangeDesktop(sdesk);
}
void KBackgroundManager::tqrepaintBackground()
void KBackgroundManager::repaintBackground()
{
if (m_pDesktop)
m_pDesktop->tqrepaint();
@ -966,7 +966,7 @@ void KBackgroundManager::desktopResized()
m_pDesktop->resize( kapp->desktop()->geometry().size());
// Repaint desktop
slotChangeDesktop(0);
tqrepaintBackground();
repaintBackground();
// Redraw all desktops so that applications relying on exported data, e.g. kpager, continue to work properly
TQSize s(m_pKwinmodule->numberOfViewports(m_pKwinmodule->currentDesktop()));

@ -91,7 +91,7 @@ private slots:
void slotChangeDesktop(int);
void slotChangeViewport(int, const TQPoint&);
void slotChangeNumberOfDesktops(int);
void tqrepaintBackground();
void repaintBackground();
void desktopResized();
void clearRoot();
void saveImages();

@ -222,7 +222,7 @@ void Action_list_widget::edit_listview_item( Action_list_item* item_P )
{
item_P->set_action( new_action );
item_P->widthChanged( 0 );
actions_listview->tqrepaintItem( item_P );
actions_listview->repaintItem( item_P );
}
delete dlg;
}

@ -49,7 +49,7 @@ Actions_listview_widget::Actions_listview_widget( TQWidget* parent_P, const char
void Actions_listview_widget::action_name_changed( const TQString& )
{
current_action()->widthChanged( 0 );
actions_listview->tqrepaintItem( current_action());
actions_listview->repaintItem( current_action());
}
void Actions_listview_widget::set_action_data( Action_data_base* data_P, bool recent_action_P )

@ -328,7 +328,7 @@ void Condition_list_widget::edit_listview_item( Condition_list_item* item_P )
conditions.insert( pos, new_condition );
}
item_P->widthChanged( 0 );
conditions_listview->tqrepaintItem( item_P );
conditions_listview->repaintItem( item_P );
}
#ifdef KHOTKEYS_DEBUG
kdDebug( 1217 ) << "Condition_list_widget::edit_listview_item():" << endl;

@ -434,7 +434,7 @@ const char* const Tab_widget::tab_labels[ Tab_widget::TAB_END ] = {
void Tab_widget::show_pages( const Pages_set& pages_P )
{
hide(); // this seems to be necessary, otherwise it's not tqrepainter properly
hide(); // this seems to be necessary, otherwise it's not repainter properly
for( tab_pos_t i = TAB_FIRST;
i < TAB_END;
++i )

@ -192,7 +192,7 @@ void Windowdef_list_widget::edit_listview_item( Windowdef_list_item* item_P )
{
item_P->set_window( new_window );
item_P->widthChanged( 0 ); // SELI tohle i u dalsich listview?
windows_listview->tqrepaintItem( item_P );
windows_listview->repaintItem( item_P );
}
delete dlg;
}

@ -48,7 +48,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This is because TQMenuBar tries really hard to keep its preffered size,
se even if the X window for the menubar has the size enforced by this
applet, Qt thinks it has the size Qt wants. This results in parts
of the menubar not being tqrepainted. Also, old KMenuBar always forced
of the menubar not being repainted. Also, old KMenuBar always forced
with to be the width of the screen, so even if the menubar has only
few entries, this applet will still indicate the menubar doesn't
fit completely in it. There's no way to fix this, besides upgrading

@ -646,7 +646,7 @@ void KasBar::updateItem( KasItem *i )
update( TQRect( pos, TQSize( itemExtent(), itemExtent() ) ) );
}
void KasBar::tqrepaintItem(KasItem *i, bool erase )
void KasBar::repaintItem(KasItem *i, bool erase )
{
if ( !i )
return;

@ -188,7 +188,7 @@ public:
void updateItem( KasItem *i );
/** Redraws the specified item. */
void tqrepaintItem(KasItem *i, bool erase = true );
void repaintItem(KasItem *i, bool erase = true );
/** Returns the item at p or 0. */
KasItem* itemAt(const TQPoint &p);

@ -555,7 +555,7 @@ void KasItem::tqrepaint()
void KasItem::tqrepaint( bool erase )
{
if ( kas->isVisible() )
kas->tqrepaintItem( this, erase );
kas->repaintItem( this, erase );
}
void KasItem::update()

@ -1718,7 +1718,7 @@ void ContainerArea::setPosition(KPanelExtension::Position p)
m_contents->move(0, 0);
setBackground();
// container extension tqrepaints for us!
// container extension repaints for us!
//tqrepaint();
}

@ -422,7 +422,7 @@ void PanelKMenu::repairDisplay(void) {
// This forces a layout/tqrepaint of the qpopupmenu
tqrepaint(); // This ensures that the side bar image was applied
styleChange(tqstyle()); // This forces a call to the private function updateSize(TRUE) inside the qpopupmenu.
update(); // This tqrepaints the entire popup menu to apply the widget size/tqalignment changes made above
update(); // This repaints the entire popup menu to apply the widget size/tqalignment changes made above
}
}

@ -226,7 +226,7 @@ KPanelApplet* AppletProxy::loadApplet(const AppletInfo& info)
return init_ptr(0, info.configFile());
}
void AppletProxy::tqrepaintApplet(TQWidget* widget)
void AppletProxy::repaintApplet(TQWidget* widget)
{
widget->tqrepaint();
@ -243,7 +243,7 @@ void AppletProxy::tqrepaintApplet(TQWidget* widget)
TQWidget *w = dynamic_cast<TQWidget*>(*it);
if (w)
{
tqrepaintApplet(w);
repaintApplet(w);
}
}
}
@ -441,7 +441,7 @@ bool AppletProxy::process(const TQCString &fun, const TQByteArray &data,
_applet->blockSignals(true);
_applet->setBackgroundMode(TQt::FixedPixmap);
_applet->setPaletteBackgroundPixmap(_bg);
tqrepaintApplet(_applet);
repaintApplet(_applet);
_applet->blockSignals(false);
}
return true;

@ -56,7 +56,7 @@ protected slots:
void slotApplicationRemoved(const TQCString&);
private:
void tqrepaintApplet(TQWidget* widget);
void repaintApplet(TQWidget* widget);
AppletInfo *_info;
KPanelApplet *_applet;

@ -829,7 +829,7 @@ void KEBListViewItem::setSelected(bool s)
{
ListView::self()->selected(this, false);
TQListViewItem::setSelected( false );
ListView::deselectAllChildren( this ); //tqrepaints
ListView::deselectAllChildren( this ); //repaints
}
else if(parentSelected(this))
return;

@ -216,7 +216,7 @@ void KonqListViewItem::setPixmap( int column, const TQPixmap& pm )
}
// If we're just replacing the icon with another one its size -- i.e. a
// "highlighted" icon, don't bother tqrepainting the whole widget.
// "highlighted" icon, don't bother repainting the whole widget.
TQListView *lv = m_pListViewWidget;
@ -225,7 +225,7 @@ void KonqListViewItem::setPixmap( int column, const TQPixmap& pm )
int y = lv->itemPos( this );
int w = newWidth;
int h = height();
lv->tqrepaintContents( x, y, w, h );
lv->repaintContents( x, y, w, h );
}
const TQPixmap* KonqListViewItem::pixmap( int column ) const

@ -410,7 +410,7 @@ void KonqBaseListViewWidget::contentsMousePressEvent( TQMouseEvent *e )
TQRect r( m_rubber->normalize() );
delete m_rubber;
m_rubber = 0;
tqrepaintContents( r, FALSE );
repaintContents( r, FALSE );
}
delete m_selected;
@ -448,7 +448,7 @@ void KonqBaseListViewWidget::contentsMouseReleaseEvent( TQMouseEvent *e )
TQRect r( m_rubber->normalize() );
delete m_rubber;
m_rubber = 0;
tqrepaintContents( r, FALSE );
repaintContents( r, FALSE );
}
if ( m_scrollTimer )

@ -835,7 +835,7 @@ void TEWidget::setImage(const ca* const newimg, int lines, int columns)
const ca* lcl = &image[y*this->columns];
const ca* const ext = &newimg[y*columns];
// The dirty mask indicates which characters need tqrepainting. We also
// The dirty mask indicates which characters need repainting. We also
// mark surrounding neighbours dirty, in case the character exceeds
// its cell boundaries
memset(dirtyMask, 0, cols+2);
@ -1976,13 +1976,13 @@ void TEWidget::imEndEvent( TQIMEvent *e )
int tLx = tL.x();
int tLy = tL.y();
TQRect tqrepaintRect = TQRect( bX+tLx, bY+tLy+font_h*m_imStartLine,
TQRect repaintRect = TQRect( bX+tLx, bY+tLy+font_h*m_imStartLine,
contentsRect().width(), contentsRect().height() );
m_imStart = 0;
m_imPreeditLength = 0;
m_isIMEdit = m_isIMSel = false;
tqrepaint( tqrepaintRect, true );
tqrepaint( repaintRect, true );
}
// Override any Ctrl+<key> accelerator when pressed with the keyboard

@ -225,13 +225,13 @@ void SensorBrowser::answerReceived( int id, const TQString &answer )
parent = lvi;
// The child indicator might need to be updated.
tqrepaintItem( parent );
repaintItem( parent );
} else
parent = sibling;
}
}
tqrepaintItem( (*it)->listViewItem() );
repaintItem( (*it)->listViewItem() );
}
void SensorBrowser::viewportMouseMoveEvent( TQMouseEvent *e )

@ -909,7 +909,7 @@ ProcessList::selectAllItems(bool select)
for ( ; it.current(); ++it )
{
it.current()->setSelected(select);
tqrepaintItem(it.current());
repaintItem(it.current());
if (select)
selectedPIds.append(it.current()->text(1).toInt());
}
@ -928,7 +928,7 @@ ProcessList::selectAllChilds(int pid, bool select)
{
int currPId = it.current()->text(1).toInt();
it.current()->setSelected(select);
tqrepaintItem(it.current());
repaintItem(it.current());
if (select)
selectedPIds.append(currPId);
else

@ -390,7 +390,7 @@ void SignalPlotter::paintEvent( TQPaintEvent* )
uint w = width();
uint h = height();
/* Do not do tqrepaints when the widget is not yet setup properly. */
/* Do not do repaints when the widget is not yet setup properly. */
if ( w <= 2 )
return;

@ -202,7 +202,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration
*/
void updateLayout() const;
/**
* Makes sure all buttons are tqrepainted.
* Makes sure all buttons are repainted.
*/
void updateButtons() const;
/**

@ -573,13 +573,13 @@ class KWIN_EXPORT KDecoration
* whether it's shaded. Decorations often turn off their bottom border when the
* window is shaded, and turn off their left/right/bottom borders when
* the window is maximized and moving and resizing of maximized windows is disabled.
* This function mustn't do any tqrepaints or resizes. Also, if the sizes returned
* This function mustn't do any repaints or resizes. Also, if the sizes returned
* by this function don't match the real values, this may result in drawing errors
* or other problems.
*
* @see KDecorationOptions::moveResizeMaximizedWindows()
*/
// mustn't do any tqrepaints, resizes or anything like that
// mustn't do any repaints, resizes or anything like that
virtual void borders( int& left, int& right, int& top, int& bottom ) const = 0;
/**
* This method is called by kwin when the style should resize the decoration window.

@ -61,7 +61,7 @@ KDecorationPreview::~KDecorationPreview()
void KDecorationPreview::performRepaintTest(int n)
{
kdDebug() << "start " << n << " tqrepaints..." << endl;
kdDebug() << "start " << n << " repaints..." << endl;
bridge->setCaption("Deco Benchmark");
deco->captionChange();
positionPreviews(0);

@ -1145,7 +1145,7 @@ void Workspace::refresh()
going to be hidden are first obscured by new windows with no background
( i.e. transparent ) placed right below the windows. These invisible windows
are removed after the switch is complete.
Reduces desktop ( wallpaper ) tqrepaints during desktop switching
Reduces desktop ( wallpaper ) repaints during desktop switching
*/
class ObscuringWindows
{

@ -548,7 +548,7 @@ void KonqDirPart::slotIconSizeToggled( bool toggleOn )
// This slot is called when an iconsize action is checked or by calling
// action->setChecked(false) (previously true). So we must filter out
// the 'untoggled' case to prevent odd results here (tqrepaints/loops!)
// the 'untoggled' case to prevent odd results here (repaints/loops!)
if ( !toggleOn )
return;

@ -478,7 +478,7 @@ void KonqIconViewWidget::slotMovieUpdate( const TQRect& rect )
}
d->pActiveItem->setPixmapDirect( frame, false, false /*no redraw*/ );
TQRect pixRect = d->pActiveItem->pixmapRect(false);
tqrepaintContents( pixRect.x() + rect.x(), pixRect.y() + rect.y(), rect.width(), rect.height(), false );
repaintContents( pixRect.x() + rect.x(), pixRect.y() + rect.y(), rect.width(), rect.height(), false );
}
}
@ -648,7 +648,7 @@ void KonqIconViewWidget::setIcons( int size, const TQStringList& stopImagePrevie
}
bool stopAll = !stopImagePreviewFor.isEmpty() && stopImagePreviewFor.first() == "*";
// Disable tqrepaints that can be triggered by ivi->setIcon(). Since icons are
// Disable repaints that can be triggered by ivi->setIcon(). Since icons are
// resized in-place, if the icon size is increasing it can happens that the right
// or bottom icons exceed the size of the viewport.. here we prevent the tqrepaint
// event that will be triggered in that case.
@ -1703,7 +1703,7 @@ void KonqIconViewWidget::lineupIcons()
}
// Perform the actual moving
TQRegion tqrepaintRegion;
TQRegion repaintRegion;
TQValueList<TQIconViewItem*> movedItems;
for ( i = 0; i < nx; i++ ) {
@ -1722,7 +1722,7 @@ void KonqIconViewWidget::lineupIcons()
movedItems.prepend( item );
item->move( newX, newY );
if ( item->rect() != oldRect )
tqrepaintRegion = tqrepaintRegion.unite( oldRect );
repaintRegion = repaintRegion.unite( oldRect );
}
}
delete bin;
@ -1734,16 +1734,16 @@ void KonqIconViewWidget::lineupIcons()
if ( newItemWidth )
updateContents();
else {
// Repaint only tqrepaintRegion...
TQMemArray<TQRect> rects = tqrepaintRegion.tqrects();
// Repaint only repaintRegion...
TQMemArray<TQRect> rects = repaintRegion.tqrects();
for ( uint l = 0; l < rects.count(); l++ ) {
kdDebug( 1203 ) << "Repainting (" << rects[l].x() << ","
<< rects[l].y() << ")\n";
tqrepaintContents( rects[l], false );
repaintContents( rects[l], false );
}
// Repaint icons that were moved
while ( !movedItems.isEmpty() ) {
tqrepaintItem( movedItems.first() );
repaintItem( movedItems.first() );
movedItems.remove( movedItems.first() );
}
}
@ -1760,7 +1760,7 @@ void KonqIconViewWidget::lineupIcons( TQIconView::Arrangement arrangement )
gridValues( &x0, &y0, &dx, &dy, &nxmax, &nymax );
int textHeight = iconTextHeight() * fontMetrics().height();
TQRegion tqrepaintRegion;
TQRegion repaintRegion;
TQValueList<TQIconViewItem*> movedItems;
int nx = 0, ny = 0;
@ -1775,7 +1775,7 @@ void KonqIconViewWidget::lineupIcons( TQIconView::Arrangement arrangement )
movedItems.prepend( item );
item->move( newX, newY );
if ( item->rect() != oldRect )
tqrepaintRegion = tqrepaintRegion.unite( oldRect );
repaintRegion = repaintRegion.unite( oldRect );
}
if ( arrangement == TQIconView::LeftToRight ) {
nx++;
@ -1793,16 +1793,16 @@ void KonqIconViewWidget::lineupIcons( TQIconView::Arrangement arrangement )
}
}
// Repaint only tqrepaintRegion...
TQMemArray<TQRect> rects = tqrepaintRegion.tqrects();
// Repaint only repaintRegion...
TQMemArray<TQRect> rects = repaintRegion.tqrects();
for ( uint l = 0; l < rects.count(); l++ ) {
kdDebug( 1203 ) << "Repainting (" << rects[l].x() << ","
<< rects[l].y() << ")\n";
tqrepaintContents( rects[l], false );
repaintContents( rects[l], false );
}
// Repaint icons that were moved
while ( !movedItems.isEmpty() ) {
tqrepaintItem( movedItems.first() );
repaintItem( movedItems.first() );
movedItems.remove( movedItems.first() );
}
}

@ -420,7 +420,7 @@ void qmotif_timeout_handler( XtPointer, XtIntervalId * )
*/
bool QXtEventLoop::processEvents( ProcessEventsFlags flags )
{
// Qt uses posted events to do lots of delayed operations, like tqrepaints... these
// Qt uses posted events to do lots of delayed operations, like repaints... these
// need to be delivered before we go to sleep
TQApplication::sendPostedEvents();

Loading…
Cancel
Save