From 82719e3d3766b49e507b4d0811133884f27c898e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:59:40 -0600 Subject: [PATCH] Remove additional unneeded tq method conversions (cherry picked from commit 59a076e9336f1eebda8650437e6bc61077be1516) --- amor/amor.cpp | 2 +- amor/amorbubble.cpp | 8 ++--- amor/amorbubble.h | 4 +-- amor/amorwidget.cpp | 2 +- amor/amorwidget.h | 2 +- eyesapplet/eyes.cpp | 4 +-- fifteenapplet/fifteenapplet.cpp | 4 +-- fifteenapplet/qttableview.cpp | 56 ++++++++++++++++---------------- fifteenapplet/qttableview.h | 14 ++++---- kmoon/kmoonapplet.cpp | 4 +-- kmoon/kmoonwidget.cpp | 12 +++---- kodo/kimagenumber.cpp | 4 +-- kteatime/tealist.cpp | 6 ++-- kteatime/toplevel.cpp | 18 +++++----- kweather/dockwidget.cpp | 8 ++--- kweather/kweather.cpp | 2 +- kweather/metar_parser.cpp | 10 +++--- kweather/prefdialogdata.ui | 2 +- kweather/reportview.cpp | 26 +++++++-------- kweather/serviceconfigwidget.cpp | 2 +- kweather/weatherbutton.cpp | 6 ++-- kweather/weatherlib.cpp | 4 +-- kworldwatch/about.ui | 2 +- kworldwatch/flags.cpp | 12 +++---- kworldwatch/flow.cpp | 6 ++-- kworldwatch/maploader.cpp | 4 +-- kworldwatch/mapwidget.cpp | 2 +- kworldwatch/zoneclock.cpp | 10 +++--- 28 files changed, 118 insertions(+), 118 deletions(-) diff --git a/amor/amor.cpp b/amor/amor.cpp index 444a8ba..bd0171b 100644 --- a/amor/amor.cpp +++ b/amor/amor.cpp @@ -748,7 +748,7 @@ void Amor::slotOffsetChanged(int off) // void Amor::slotAbout() { - TQString about = i18n("Amor Version %1\n\n").tqarg(AMOR_VERSION) + + TQString about = i18n("Amor Version %1\n\n").arg(AMOR_VERSION) + i18n("Amusing Misuse Of Resources\n\n") + i18n("Copyright (c) 1999 Martin R. Jones \n\n") + i18n("Original Author: Martin R. Jones \n") + diff --git a/amor/amorbubble.cpp b/amor/amorbubble.cpp index 5060f97..0af3c90 100644 --- a/amor/amorbubble.cpp +++ b/amor/amorbubble.cpp @@ -83,12 +83,12 @@ AmorBubble::~AmorBubble() //--------------------------------------------------------------------------- // -// Set the message to display in the bubble. Causes the tqgeometry of the +// Set the message to display in the bubble. Causes the geometry of the // widget to be recalculated. // void AmorBubble::setMessage(const TQString& message) { - mMessage = TQString( "%1" ).tqarg( message ); + mMessage = TQString( "%1" ).arg( message ); // hacks because heightForWidth() doesn't work. setGeometry( -1000, 0, 300, 1000 ); show(); @@ -108,7 +108,7 @@ void AmorBubble::calcGeometry() mBound.setHeight( mBrowser->contentsHeight() ); mBound.moveBy(ARROW_WIDTH+BORDER_SIZE, BORDER_SIZE); - // initialise the default tqgeometry of the bubble + // initialise the default geometry of the bubble int w = mBound.width() + BORDER_SIZE * 2 + ARROW_WIDTH; int h = mBound.height() + BORDER_SIZE * 2; int xpos = mOriginX + BUBBLE_OFFSET; @@ -141,7 +141,7 @@ void AmorBubble::calcGeometry() setGeometry(xpos, ypos, w, h); mBrowser->setGeometry( mBound ); - // create and apply the tqshape mask + // create and apply the shape mask mMask.resize(w, h); mMask.fill(color0); TQPainter maskPainter(&mMask); diff --git a/amor/amorbubble.h b/amor/amorbubble.h index 54e8912..f55cbd2 100644 --- a/amor/amorbubble.h +++ b/amor/amorbubble.h @@ -40,7 +40,7 @@ class TQTimer; //--------------------------------------------------------------------------- // -// AmorBubble displays a message in a tqshaped window +// AmorBubble displays a message in a shaped window // class AmorBubble : public TQWidget { @@ -70,7 +70,7 @@ protected: int mOriginX; // X origin of bubble arrow int mOriginY; // Y origin of bubble arrow TQRect mBound; // bounds of the text - TQBitmap mMask; // tqshape mask + TQBitmap mMask; // shape mask VertPos mArrowVert; // vertical position of the arrow HorzPos mArrowHorz; // horizontal position of the arrow TQTextBrowser *mBrowser; // displays the message diff --git a/amor/amorwidget.cpp b/amor/amorwidget.cpp index e5cc7b0..38dd0d3 100644 --- a/amor/amorwidget.cpp +++ b/amor/amorwidget.cpp @@ -64,7 +64,7 @@ void AmorWidget::setPixmap(const TQPixmap *pixmap) { XShapeCombineMask( x11Display(), winId(), ShapeBounding, 0, 0, mPixmap->mask()->handle(), ShapeSet ); - tqrepaint(false); + repaint(false); } update(); diff --git a/amor/amorwidget.h b/amor/amorwidget.h index 15f9126..3b46d4b 100644 --- a/amor/amorwidget.h +++ b/amor/amorwidget.h @@ -36,7 +36,7 @@ //--------------------------------------------------------------------------- // -// AmorWidget displays a tqshaped pixmap +// AmorWidget displays a shaped pixmap // class AmorWidget : public TQWidget { diff --git a/eyesapplet/eyes.cpp b/eyesapplet/eyes.cpp index 84bdfbe..37dd37b 100644 --- a/eyesapplet/eyes.cpp +++ b/eyesapplet/eyes.cpp @@ -55,11 +55,11 @@ EyesApplet::EyesApplet(const TQString& configFile, Type t, int actions, int EyesApplet::widthForHeight(int h) const { - return static_cast(1.4 * h); // rectangular tqshape. + return static_cast(1.4 * h); // rectangular shape. } int EyesApplet::heightForWidth(int w) const { - return static_cast(w / 1.4); // rectangular tqshape. + return static_cast(w / 1.4); // rectangular shape. } void EyesApplet::resizeEvent( TQResizeEvent*e ) diff --git a/fifteenapplet/fifteenapplet.cpp b/fifteenapplet/fifteenapplet.cpp index 0808480..c173fc4 100644 --- a/fifteenapplet/fifteenapplet.cpp +++ b/fifteenapplet/fifteenapplet.cpp @@ -198,14 +198,14 @@ void PiecesTable::randomizeMap() } } } - tqrepaint(); + repaint(); _randomized = true; } void PiecesTable::resetMap() { initMap(); - tqrepaint(); + repaint(); } void PiecesTable::checkwin() diff --git a/fifteenapplet/qttableview.cpp b/fifteenapplet/qttableview.cpp index 1d4d29c..1c9656b 100644 --- a/fifteenapplet/qttableview.cpp +++ b/fifteenapplet/qttableview.cpp @@ -88,7 +88,7 @@ void QCornerSquare::paintEvent( TQPaintEvent * ) used by functions such as setXOffset() or maxYOffset(). \i The \e widget coordinates. (0,0) is the top-left corner of the widget, - \e including the frame. They are used by functions such as tqrepaint(). + \e including the frame. They are used by functions such as repaint(). \i The \e view coordinates. (0,0) is the top-left corner of the view, \e excluding the frame. This is the least-used coordinate system; it is used by @@ -135,7 +135,7 @@ void QCornerSquare::paintEvent( TQPaintEvent * ) The \link setCellHeight() cell height\endlink and \link setCellWidth() cell width\endlink are set to 0. - Frame line tqshapes (TQFrame::HLink and TQFrame::VLine) are disallowed; + Frame line shapes (TQFrame::HLink and TQFrame::VLine) are disallowed; see TQFrame::setFrameStyle(). Note that the \a f argument is \e not \link setTableFlags() table @@ -207,7 +207,7 @@ void QtTableView::show() /*! - \overload void QtTableView::tqrepaint( bool erase ) + \overload void QtTableView::repaint( bool erase ) Repaints the entire view. */ @@ -221,16 +221,16 @@ void QtTableView::show() If \a w is negative, it is replaced with width() - x. If \a h is negative, it is replaced with height() - y. - Doing a tqrepaint() usually is faster than doing an update(), but + Doing a repaint() usually is faster than doing an update(), but calling update() many times in a row will generate a single paint event. At present, QtTableView is the only widget that reimplements \link - TQWidget::tqrepaint() tqrepaint()\endlink. It does this because by + TQWidget::repaint() repaint()\endlink. It does this because by clearing and then repainting one cell at at time, it can make the screen flicker less than it would otherwise. */ -void QtTableView::tqrepaint( int x, int y, int w, int h, bool erase ) +void QtTableView::repaint( int x, int y, int w, int h, bool erase ) { if ( !isVisible() || testWState(WState_BlockUpdates) ) return; @@ -249,7 +249,7 @@ void QtTableView::tqrepaint( int x, int y, int w, int h, bool erase ) } /*! - \overload void QtTableView::tqrepaint( const TQRect &r, bool erase ) + \overload void QtTableView::repaint( const TQRect &r, bool erase ) Replaints rectangle \a r. If \a erase is TRUE draws the background using the palette's background. */ @@ -288,7 +288,7 @@ void QtTableView::setNumRows( int rows ) nRows = rows; if ( autoUpdate() && isVisible() && ( oldLastVisible != lastRowVisible() || oldTopCell != topCell() ) ) - tqrepaint( oldTopCell != topCell() ); + repaint( oldTopCell != topCell() ); } else { // Be more careful - if destructing, bad things might happen. nRows = rows; @@ -328,7 +328,7 @@ void QtTableView::setNumCols( int cols ) if ( autoUpdate() && isVisible() ) { int maxCol = lastColVisible(); if ( maxCol >= oldCols || maxCol >= nCols ) - tqrepaint(); + repaint(); } updateScrollBars( horRange ); updateFrameSize(); @@ -591,7 +591,7 @@ void QtTableView::setCellWidth( int cellWidth ) updateScrollBars( horSteps | horRange ); if ( autoUpdate() && isVisible() ) - tqrepaint(); + repaint(); } @@ -643,7 +643,7 @@ void QtTableView::setCellHeight( int cellHeight ) #endif cellH = (short)cellHeight; if ( autoUpdate() && isVisible() ) - tqrepaint(); + repaint(); updateScrollBars( verSteps | verRange ); } @@ -817,7 +817,7 @@ void QtTableView::setTableFlags( uint f ) (f & Tbl_snapToVGrid) != 0 && yCellDelta != 0 ) { snapToGrid( (f & Tbl_snapToHGrid) != 0, // do snapping (f & Tbl_snapToVGrid) != 0 ); - repaintMask |= Tbl_snapToGrid; // tqrepaint table + repaintMask |= Tbl_snapToGrid; // repaint table } } @@ -825,7 +825,7 @@ void QtTableView::setTableFlags( uint f ) setAutoUpdate( TRUE ); updateScrollBars(); if ( isVisible() && (f & repaintMask) ) - tqrepaint(); + repaint(); } } @@ -881,7 +881,7 @@ void QtTableView::clearTableFlags( uint f ) (f & Tbl_smoothVScrolling) != 0 && yCellDelta != 0 ) { snapToGrid( (f & Tbl_smoothHScrolling) != 0, // do snapping (f & Tbl_smoothVScrolling) != 0 ); - repaintMask |= Tbl_smoothScrolling; // tqrepaint table + repaintMask |= Tbl_smoothScrolling; // repaint table } } if ( f & Tbl_snapToHGrid ) { @@ -894,7 +894,7 @@ void QtTableView::clearTableFlags( uint f ) setAutoUpdate( TRUE ); updateScrollBars(); // returns immediately if nothing to do if ( isVisible() && (f & repaintMask) ) - tqrepaint(); + repaint(); } } @@ -916,20 +916,20 @@ void QtTableView::clearTableFlags( uint f ) automatically whenever it has changed in some way (for example, when a \link setTableFlags() flag\endlink is changed). - If \a enable is FALSE, the view does NOT tqrepaint itself or update + If \a enable is FALSE, the view does NOT repaint itself or update its internal state variables when it is changed. This can be useful to avoid flicker during large changes and is singularly useless otherwise. Disable auto-update, do the changes, re-enable - auto-update and call tqrepaint(). + auto-update and call repaint(). \warning Do not leave the view in this state for a long time (i.e., between events). If, for example, the user interacts with the view when auto-update is off, strange things can happen. - Setting auto-update to TRUE does not tqrepaint the view; you must call - tqrepaint() to do this. + Setting auto-update to TRUE does not repaint the view; you must call + repaint() to do this. - \sa autoUpdate(), tqrepaint() + \sa autoUpdate(), repaint() */ void QtTableView::setAutoUpdate( bool enable ) @@ -963,7 +963,7 @@ void QtTableView::updateCell( int row, int col, bool erase ) TQRect uR = TQRect( xPos, yPos, cellW ? cellW : cellWidth(col), cellH ? cellH : cellHeight(row) ); - tqrepaint( uR.intersect(viewRect()), erase ); + repaint( uR.intersect(viewRect()), erase ); } @@ -1379,7 +1379,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) // Note that this needs to be done regardless whether we do // eraseInPaint or not. Reason: a subclass may implement - // flicker-freeness and encourage the use of tqrepaint(FALSE). + // flicker-freeness and encourage the use of repaint(FALSE). // The subclass, however, cannot draw all pixels, just those // inside the cells. So QtTableView is reponsible for all pixels // outside the cells. @@ -1426,7 +1426,7 @@ void QtTableView::resizeEvent( TQResizeEvent * ) void QtTableView::updateView() { - tqrepaint( viewRect() ); + repaint( viewRect() ); } /*! @@ -1522,7 +1522,7 @@ void QtTableView::setHorScrollBar( bool on, bool update ) else sbDirty = sbDirty | verMask; if ( hideScrollBar && isVisible() ) - tqrepaint( hScrollBar->x(), hScrollBar->y(), + repaint( hScrollBar->x(), hScrollBar->y(), width() - hScrollBar->x(), hScrollBar->height() ); } if ( update ) @@ -1561,7 +1561,7 @@ void QtTableView::setVerScrollBar( bool on, bool update ) else sbDirty = sbDirty | horMask; if ( hideScrollBar && isVisible() ) - tqrepaint( vScrollBar->x(), vScrollBar->y(), + repaint( vScrollBar->x(), vScrollBar->y(), vScrollBar->width(), height() - vScrollBar->y() ); } if ( update ) @@ -2006,7 +2006,7 @@ void QtTableView::updateScrollBars( uint f ) if ( sbDirty & horValue ) hScrollBar->setValue( xOffs ); - // show scrollbar only when it has a sane tqgeometry + // show scrollbar only when it has a sane geometry if ( !hScrollBar->isVisible() ) hScrollBar->show(); } @@ -2030,7 +2030,7 @@ void QtTableView::updateScrollBars( uint f ) if ( sbDirty & verValue ) vScrollBar->setValue( yOffs ); - // show scrollbar only when it has a sane tqgeometry + // show scrollbar only when it has a sane geometry if ( !vScrollBar->isVisible() ) vScrollBar->show(); } @@ -2253,7 +2253,7 @@ void QtTableView::showOrHideScrollBars() Call this function when the table view's total size is changed; typically because the result of cellHeight() or cellWidth() have changed. - This function does not tqrepaint the widget. + This function does not repaint the widget. */ void QtTableView::updateTableSize() diff --git a/fifteenapplet/qttableview.h b/fifteenapplet/qttableview.h index 081ed64..5333376 100644 --- a/fifteenapplet/qttableview.h +++ b/fifteenapplet/qttableview.h @@ -32,9 +32,9 @@ public: virtual void setPalette( const TQPalette & ); void show(); - void tqrepaint( bool erase=TRUE ); - void tqrepaint( int x, int y, int w, int h, bool erase=TRUE ); - void tqrepaint( const TQRect &, bool erase=TRUE ); + void repaint( bool erase=TRUE ); + void repaint( int x, int y, int w, int h, bool erase=TRUE ); + void repaint( const TQRect &, bool erase=TRUE ); protected: QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 ); @@ -235,11 +235,11 @@ inline TQRect QtTableView::cellUpdateRect() const inline bool QtTableView::autoUpdate() const { return isUpdatesEnabled(); } -inline void QtTableView::tqrepaint( bool erase ) -{ tqrepaint( 0, 0, width(), height(), erase ); } +inline void QtTableView::repaint( bool erase ) +{ repaint( 0, 0, width(), height(), erase ); } -inline void QtTableView::tqrepaint( const TQRect &r, bool erase ) -{ tqrepaint( r.x(), r.y(), r.width(), r.height(), erase ); } +inline void QtTableView::repaint( const TQRect &r, bool erase ) +{ repaint( r.x(), r.y(), r.width(), r.height(), erase ); } inline void QtTableView::updateScrollBars() { updateScrollBars( 0 ); } diff --git a/kmoon/kmoonapplet.cpp b/kmoon/kmoonapplet.cpp index 757869b..103855e 100644 --- a/kmoon/kmoonapplet.cpp +++ b/kmoon/kmoonapplet.cpp @@ -136,7 +136,7 @@ void MoonPAWidget::settings() config->writeEntry("Mask", moon->mask()); config->sync(); } - tqrepaint(); + repaint(); } void MoonPAWidget::timerEvent( TQTimerEvent * ) @@ -145,7 +145,7 @@ void MoonPAWidget::timerEvent( TQTimerEvent * ) time(&clock); struct tm *t = localtime(&clock); moon->calcStatus(mktime(t)); - moon->tqrepaint(); + moon->repaint(); } void MoonPAWidget::mousePressEvent( TQMouseEvent *e) diff --git a/kmoon/kmoonwidget.cpp b/kmoon/kmoonwidget.cpp index b2097a0..fb62d4d 100644 --- a/kmoon/kmoonwidget.cpp +++ b/kmoon/kmoonwidget.cpp @@ -217,14 +217,14 @@ void MoonWidget::calcStatus( time_t time ) } renderGraphic(); - tqrepaint(); + repaint(); } TQImage MoonWidget::loadMoon(int index) { if (index == 0) // the new moon has the wrong filename index = 29; - TQString filename = TQString("kmoon/pics/moon%1.png").tqarg(index); + TQString filename = TQString("kmoon/pics/moon%1.png").arg(index); TQString path = locate("data", filename); if (path.isNull()) kdFatal() << "cound't find " << filename << ". Exiting.\n"; @@ -238,21 +238,21 @@ void MoonWidget::setAngle(int value) { _angle = value; renderGraphic(); - tqrepaint(); + repaint(); } void MoonWidget::setNorthHemi(bool n) { _north = n; renderGraphic(); - tqrepaint(); + repaint(); } void MoonWidget::setMask(bool value) { _mask = value; renderGraphic(); - tqrepaint(); + repaint(); } void MoonWidget::paintEvent(TQPaintEvent *) @@ -263,7 +263,7 @@ void MoonWidget::paintEvent(TQPaintEvent *) void MoonWidget::resizeEvent(TQResizeEvent *) { renderGraphic(); - tqrepaint(); + repaint(); } void MoonWidget::renderGraphic() diff --git a/kodo/kimagenumber.cpp b/kodo/kimagenumber.cpp index 86a44ba..b01c4b6 100644 --- a/kodo/kimagenumber.cpp +++ b/kodo/kimagenumber.cpp @@ -47,7 +47,7 @@ void KImageNumber::paintEvent(TQPaintEvent*) data.sprintf("%06.1f", m_value); for(unsigned int i=0; i < data.length(); i++) { - int wl = data.tqat(i).latin1() - '0'; + int wl = data.at(i).latin1() - '0'; if(data.at(i) == '.') wl = 10; bitBlt(this, i*each, 0, fontPix, wl*each, 0, each, fontPix->height()); @@ -57,7 +57,7 @@ void KImageNumber::paintEvent(TQPaintEvent*) void KImageNumber::setValue(double v) { m_value = v; - tqrepaint(false); + repaint(false); } double KImageNumber::value() const diff --git a/kteatime/tealist.cpp b/kteatime/tealist.cpp index dcc4209..ae32339 100644 --- a/kteatime/tealist.cpp +++ b/kteatime/tealist.cpp @@ -15,12 +15,12 @@ TQString int2time(int time) { TQString str; if (time / 60) - str.append(i18n("%1 min").tqarg(time / 60)); + str.append(i18n("%1 min").arg(time / 60)); if (time % 60) if (str.isEmpty()) - str.append(i18n("%1 s").tqarg(time % 60)); + str.append(i18n("%1 s").arg(time % 60)); else - str.append(i18n(" %1 s").tqarg(time % 60)); + str.append(i18n(" %1 s").arg(time % 60)); return str; } diff --git a/kteatime/toplevel.cpp b/kteatime/toplevel.cpp index 4b27f30..5deb404 100644 --- a/kteatime/toplevel.cpp +++ b/kteatime/toplevel.cpp @@ -207,7 +207,7 @@ void TopLevel::resizeEvent ( TQResizeEvent * ) teaNotReadyPixmap = loadSizedIcon("tea_not_ready", width()); teaAnim1Pixmap = loadSizedIcon("tea_anim1", width()); teaAnim2Pixmap = loadSizedIcon("tea_anim2", width()); - tqrepaint(); + repaint(); } /** Handle mousePressEvent */ @@ -302,7 +302,7 @@ void TopLevel::timerEvent(TQTimerEvent *) menu->setItemChecked(current_selected, true); } - TQString teaMessage = i18n("The %1 is now ready!").tqarg(current_name); + TQString teaMessage = i18n("The %1 is now ready!").arg(current_name); // invoke action if (useNotify) { KNotifyClient::event(winId(), "tea", teaMessage); @@ -317,7 +317,7 @@ void TopLevel::timerEvent(TQTimerEvent *) teaMessage, teaAnim1Pixmap, this, "popup", 0); // FIXME: does auto-deletion work without timeout? setToolTip(teaMessage); - tqrepaint(); + repaint(); } else { // timer not yet run out; just update tray-icon (if configured)... if (useTrayVis) { @@ -325,18 +325,18 @@ void TopLevel::timerEvent(TQTimerEvent *) if (pDone - percentDone > 8) { // update icon not every second, but only if somewhat noticable percentDone = pDone; - tqrepaint(); + repaint(); } } // ...and Tooltip TQString min = int2time(seconds); - setToolTip(i18n("%1 left for %2").tqarg(min).tqarg(current_name)); + setToolTip(i18n("%1 left for %2").arg(min).arg(current_name)); } } else { // no tea is steeping; just animate icon if (ready) { firstFrame = !firstFrame; - tqrepaint(); + repaint(); } } } @@ -447,7 +447,7 @@ void TopLevel::start() ready = false; enable_menuEntries(); // disable "start", enable "stop" - tqrepaint(); + repaint(); } } @@ -467,7 +467,7 @@ void TopLevel::stop() } setToolTip(i18n("The Tea Cooker"), true); - tqrepaint(); + repaint(); } /* open dialog to start an 'anonymous' tea */ @@ -721,7 +721,7 @@ void TopLevel::config() rightside->addWidget(editgroup, 0, 0); TQHBox *propbox = new TQHBox(editgroup); - // FIXME: - must enforce correct vertical tqalignment of each label-editor pair + // FIXME: - must enforce correct vertical alignment of each label-editor pair // (better use one HBox for each label-editor pair?) TQVBox *propleft = new TQVBox(propbox); TQVBox *propright = new TQVBox(propbox); diff --git a/kweather/dockwidget.cpp b/kweather/dockwidget.cpp index bfcc097..f5205d4 100644 --- a/kweather/dockwidget.cpp +++ b/kweather/dockwidget.cpp @@ -112,19 +112,19 @@ void dockwidget::showWeather() "" + i18n( "Rel. Humidity:" ) + "%4" "" + i18n( "Wind Speed:" ) + "%5") - .tqarg(temp).tqarg(dewPoint).tqarg(pressure).tqarg(relHumidity).tqarg(wind); + .arg(temp).arg(dewPoint).arg(pressure).arg(relHumidity).arg(wind); if ( !heatIndex.isEmpty() ) - tip += TQString("" + i18n( "Heat Index:" ) + "%1").tqarg(heatIndex); + tip += TQString("" + i18n( "Heat Index:" ) + "%1").arg(heatIndex); else if ( !windChill.isEmpty() ) - tip += TQString("" + i18n( "Wind Chill:" ) + "%1").tqarg(windChill); + tip += TQString("" + i18n( "Wind Chill:" ) + "%1").arg(windChill); else tip += "  "; tip += ""; tip += TQString("" + i18n( "Sunrise:" ) + "%1" + "" + i18n( "Sunset:" ) + "%2") - .tqarg(sunRiseTime).tqarg(sunSetTime); + .arg(sunRiseTime).arg(sunSetTime); tip += ""; diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp index 324a610..9dd5def 100644 --- a/kweather/kweather.cpp +++ b/kweather/kweather.cpp @@ -86,7 +86,7 @@ kweather::~kweather() void kweather::initContextMenu() { mContextMenu = new KPopupMenu(this); - mContextMenu->insertTitle(i18n("KWeather - %1").tqarg( reportLocation ), -1, 0); + mContextMenu->insertTitle(i18n("KWeather - %1").arg( reportLocation ), -1, 0); mContextMenu->insertItem(SmallIcon("viewmag"), i18n("Show &Report"), this, TQT_SLOT(doReport()), 0, -1, 1); mContextMenu->insertItem(SmallIcon("reload"), i18n("&Update Now"), diff --git a/kweather/metar_parser.cpp b/kweather/metar_parser.cpp index d65d4da..b6715f0 100644 --- a/kweather/metar_parser.cpp +++ b/kweather/metar_parser.cpp @@ -170,22 +170,22 @@ bool MetarParser::parseCover(const TQString &s) if (sCode == "FEW") { - skycondition = i18n( "Few clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Few clouds at %1" ).arg(sClouds); weatherInfo.clouds += 2; } else if (sCode == "SCT") { - skycondition = i18n( "Scattered clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Scattered clouds at %1" ).arg(sClouds); weatherInfo.clouds += 4; } else if (sCode == "BKN") { - skycondition = i18n( "Broken clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Broken clouds at %1" ).arg(sClouds); weatherInfo.clouds += 8; } else if (sCode == "OVC") { - skycondition = i18n( "Overcast clouds at %1" ).tqarg(sClouds); + skycondition = i18n( "Overcast clouds at %1" ).arg(sClouds); weatherInfo.clouds += 64; } else if ((sCode == "CLR") || (sCode == "SKC") || (sCode == "CAVOK")) @@ -343,7 +343,7 @@ bool MetarParser::parseCurrent(const TQString &s) else if (sCode.contains("DS")) phenomena = i18n("Dust Storm"); - if (currentWeather.isEmpty()) currentWeather = i18n("%1 is the intensity, %2 is the descriptor and %3 is the phenomena", "%1 %2 %3").tqarg(intensity).tqarg(descriptor).tqarg(phenomena); + if (currentWeather.isEmpty()) currentWeather = i18n("%1 is the intensity, %2 is the descriptor and %3 is the phenomena", "%1 %2 %3").arg(intensity).arg(descriptor).arg(phenomena); if (!currentWeather.isEmpty()) weatherInfo.qsCurrentList << currentWeather; diff --git a/kweather/prefdialogdata.ui b/kweather/prefdialogdata.ui index 596c54a..7b61ead 100644 --- a/kweather/prefdialogdata.ui +++ b/kweather/prefdialogdata.ui @@ -129,7 +129,7 @@ Panel Display Options - + AlignVCenter|AlignLeft diff --git a/kweather/reportview.cpp b/kweather/reportview.cpp index f25df19..3ef28b4 100644 --- a/kweather/reportview.cpp +++ b/kweather/reportview.cpp @@ -93,7 +93,7 @@ void reportView::render(){ TQStringList cover = m_weatherService->cover(m_locationCode ); TQStringList weather = m_weatherService->weather(m_locationCode ); - setCaption(i18n("Weather Report - %1").tqarg( locationName ) ); + setCaption(i18n("Weather Report - %1").arg( locationName ) ); TQString weatherText = "
    \n"; @@ -114,24 +114,24 @@ void reportView::render(){ TQString contents = "").tqarg( TQApplication::reverseLayout()?"rtl":"ltr") + - "
    " + i18n( "Weather Report - %1 - %2" ).tqarg( locationName ).tqarg( countryName ) + + .arg(bgColor).arg(textColor).arg(textColor).arg(textColor).arg(textColor) + + TQString("").arg( TQApplication::reverseLayout()?"rtl":"ltr") + + "
    " + i18n( "Weather Report - %1 - %2" ).arg( locationName ).arg( countryName ) + "
    \n"; if ( ! date.isEmpty() ) - contents += "
    " + i18n( "Latest data from %1" ).tqarg(date) + "
    \n"; + contents += "
    " + i18n( "Latest data from %1" ).arg(date) + "
    \n"; contents += TQString( "" "") - .tqarg(bgColor).tqarg(KURL(icon).url()).tqarg(weatherText) + + .arg(bgColor).arg(KURL(icon).url()).arg(weatherText) + "
    " "%3
    " + TQString("" @@ -145,15 +145,15 @@ void reportView::render(){ + "" "") - .tqarg(temp).tqarg(dewPoint).tqarg(pressure).tqarg(relHumidity) - .tqarg(wind) + ""; + .arg(temp).arg(dewPoint).arg(pressure).arg(relHumidity) + .arg(wind) + ""; if (!heatIndex.isEmpty()) contents += TQString("").tqarg(heatIndex); + + i18n( "Heat Index:" ) + "").arg(heatIndex); else if (!windChill.isEmpty()) contents += TQString("").tqarg(windChill); + + i18n( "Wind Chill:" ) + "").arg(windChill); else contents += ""; contents += ""; @@ -162,7 +162,7 @@ void reportView::render(){ + i18n( "Sunrise:" ) + "" + "") - .tqarg(sunRiseTime).tqarg(sunSetTime); + .arg(sunRiseTime).arg(sunSetTime); contents += "
    " + i18n( "Temperature:" ) + "%1%4
    " + i18n( "Wind Speed:" ) + "%5  " - + i18n( "Heat Index:" ) + "%1%1" - + i18n( "Wind Chill:" ) + "%1%1  
    %1 " + i18n( "Sunset:" ) + "%2
    "; diff --git a/kweather/serviceconfigwidget.cpp b/kweather/serviceconfigwidget.cpp index 08a3b51..a71d4b6 100644 --- a/kweather/serviceconfigwidget.cpp +++ b/kweather/serviceconfigwidget.cpp @@ -194,7 +194,7 @@ void ServiceConfigWidget::loadLocations() parseStationEntry( entryIt.data(), station, uid ); new StationItem( stateItem, station, uid ); mStationMap.insert( uid, TQString( "%1, %2" ) - .tqarg( station ).tqarg( *stateIt ) ); + .arg( station ).arg( *stateIt ) ); } } } diff --git a/kweather/weatherbutton.cpp b/kweather/weatherbutton.cpp index ceb4360..ee88962 100644 --- a/kweather/weatherbutton.cpp +++ b/kweather/weatherbutton.cpp @@ -124,14 +124,14 @@ void WeatherButton::slotIconChanged( int group ) return; generateIcons(); - tqrepaint( false ); + repaint( false ); } void WeatherButton::enterEvent( TQEvent *e ) { m_highlight = true; - tqrepaint( false ); + repaint( false ); TQButton::enterEvent( e ); } @@ -139,7 +139,7 @@ void WeatherButton::leaveEvent( TQEvent *e ) { m_highlight = false; - tqrepaint( false ); + repaint( false ); TQButton::enterEvent( e ); } diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp index ae40734..59a10dc 100644 --- a/kweather/weatherlib.cpp +++ b/kweather/weatherlib.cpp @@ -144,7 +144,7 @@ void WeatherLib::slotCopyDone(KIO::Job* job) // File error kdDebug( 12006 ) << "File empty error..." << endl; KPassivePopup::message( i18n("KWeather Error!"), - i18n("The temp file %1 was empty.").tqarg(d->target->name()), 0L,"error" ); + i18n("The temp file %1 was empty.").arg(d->target->name()), 0L,"error" ); d->updated = false; } } @@ -153,7 +153,7 @@ void WeatherLib::slotCopyDone(KIO::Job* job) // File error kdDebug( 12006 ) << "File read error..." << endl; KPassivePopup::message( i18n("KWeather Error!"), - i18n("Could not read the temp file %1.").tqarg(d->target->name()), 0L,"error" ); + i18n("Could not read the temp file %1.").arg(d->target->name()), 0L,"error" ); d->updated = false; } delete d->target; diff --git a/kworldwatch/about.ui b/kworldwatch/about.ui index 206a85c..334ea07 100644 --- a/kworldwatch/about.ui +++ b/kworldwatch/about.ui @@ -119,7 +119,7 @@ Copyright: (c) 2000 Matthias Hoelzer-Kluepfel - + WordBreak|AlignVCenter|AlignLeft diff --git a/kworldwatch/flags.cpp b/kworldwatch/flags.cpp index 6f9837f..0b726a8 100644 --- a/kworldwatch/flags.cpp +++ b/kworldwatch/flags.cpp @@ -121,9 +121,9 @@ void FlagList::save(KConfig *config) int cnt=0; for ( ; it.current(); ++it) { - config->writeEntry(TQString("Flag_%1_Color").tqarg(cnt), it.current()->color()); - config->writeEntry(TQString("Flag_%1_Latitude").tqarg(cnt), it.current()->latitude()); - config->writeEntry(TQString("Flag_%1_Longitude").tqarg(cnt), it.current()->longitude()); + config->writeEntry(TQString("Flag_%1_Color").arg(cnt), it.current()->color()); + config->writeEntry(TQString("Flag_%1_Latitude").arg(cnt), it.current()->latitude()); + config->writeEntry(TQString("Flag_%1_Longitude").arg(cnt), it.current()->longitude()); cnt++; } } @@ -136,9 +136,9 @@ void FlagList::load(KConfig *config) for (int i=0; ireadDoubleNumEntry(TQString("Flag_%1_Longitude").tqarg(i)), - config->readDoubleNumEntry(TQString("Flag_%1_Latitude").tqarg(i)), - config->readColorEntry(TQString("Flag_%1_Color").tqarg(i)))); + addFlag(new Flag(config->readDoubleNumEntry(TQString("Flag_%1_Longitude").arg(i)), + config->readDoubleNumEntry(TQString("Flag_%1_Latitude").arg(i)), + config->readColorEntry(TQString("Flag_%1_Color").arg(i)))); } } diff --git a/kworldwatch/flow.cpp b/kworldwatch/flow.cpp index 724275e..cb35521 100644 --- a/kworldwatch/flow.cpp +++ b/kworldwatch/flow.cpp @@ -155,7 +155,7 @@ int SimpleFlow::count() const { \reimp */ TQLayoutItem* SimpleFlow::itemAt(int index) const { - return index >= 0 && index < list.count() ? (const_cast&>(list).tqat(index)) : 0; + return index >= 0 && index < list.count() ? (const_cast&>(list).at(index)) : 0; } /*! @@ -164,8 +164,8 @@ TQLayoutItem* SimpleFlow::itemAt(int index) const { TQLayoutItem* SimpleFlow::takeAt(int index) { if (index < 0 || index >= list.count()) return 0; - TQLayoutItem *item = list.tqat(index); - list.remove(list.tqat(index)); + TQLayoutItem *item = list.at(index); + list.remove(list.at(index)); delete item; invalidate(); diff --git a/kworldwatch/maploader.cpp b/kworldwatch/maploader.cpp index 62fc49a..bb62e4f 100644 --- a/kworldwatch/maploader.cpp +++ b/kworldwatch/maploader.cpp @@ -63,7 +63,7 @@ TQPtrList MapLoader::themes() TQStringList MapLoader::maps(const TQString &theme) { - return KGlobal::dirs()->findAllResources("data", TQString("kworldclock/maps/%1/*.jpg").tqarg(theme)); + return KGlobal::dirs()->findAllResources("data", TQString("kworldclock/maps/%1/*.jpg").arg(theme)); } @@ -101,7 +101,7 @@ void MapLoader::load(unsigned int width, const TQString &theme, unsigned int hei size = 800; } else - image = TQImage(locate("data", TQString("kworldclock/maps/%1/%2.jpg").tqarg(theme).tqarg(size))); + image = TQImage(locate("data", TQString("kworldclock/maps/%1/%2.jpg").arg(theme).arg(size))); if (height == 0) height = width/2; diff --git a/kworldwatch/mapwidget.cpp b/kworldwatch/mapwidget.cpp index 255ce3f..93bca75 100644 --- a/kworldwatch/mapwidget.cpp +++ b/kworldwatch/mapwidget.cpp @@ -366,7 +366,7 @@ TQString MapWidget::cityTime(const TQString &city) time_t t = time(NULL); TQDateTime dt; dt.setTime_t(t); - result.append(TQString("%1, %2").tqarg(KGlobal::locale()->formatTime(dt.time(), true)).tqarg(KGlobal::locale()->formatDate(dt.date(), true))); + result.append(TQString("%1, %2").arg(KGlobal::locale()->formatTime(dt.time(), true)).arg(KGlobal::locale()->formatDate(dt.date(), true))); if (initial_TZ != 0) setenv("TZ", initial_TZ, 1); diff --git a/kworldwatch/zoneclock.cpp b/kworldwatch/zoneclock.cpp index bc61c9b..9f1c953 100644 --- a/kworldwatch/zoneclock.cpp +++ b/kworldwatch/zoneclock.cpp @@ -122,7 +122,7 @@ void ZoneClock::editClock() _name = _dlg->ClockCaption->text().append(":"); _nameLabel->setText(_dlg->ClockCaption->text().append(":")); updateTime(); - tqlayout()->tqinvalidate(); + tqlayout()->invalidate(); emit changed(); } @@ -152,7 +152,7 @@ void ZoneClock::updateTime() time_t t = time(NULL); TQDateTime dt; dt.setTime_t(t); - _timeLabel->setText(TQString("%1, %2").tqarg(KGlobal::locale()->formatTime(dt.time(), true)).tqarg(KGlobal::locale()->formatDate(dt.date(), true))); + _timeLabel->setText(TQString("%1, %2").arg(KGlobal::locale()->formatTime(dt.time(), true)).arg(KGlobal::locale()->formatDate(dt.date(), true))); if (initial_TZ != 0) setenv("TZ", initial_TZ, 1); @@ -266,8 +266,8 @@ void ZoneClockPanel::save(KConfig *config) { TQString n = it.current()->name(); n = n.left(n.length()-1); - config->writeEntry(TQString("Clock_%1_Name").tqarg(cnt), n); - config->writeEntry(TQString("Clock_%1_Zone").tqarg(cnt), it.current()->zone()); + config->writeEntry(TQString("Clock_%1_Name").arg(cnt), n); + config->writeEntry(TQString("Clock_%1_Zone").arg(cnt), it.current()->zone()); cnt++; } } @@ -281,7 +281,7 @@ void ZoneClockPanel::load(KConfig *config) for (int i=0; ireadEntry(TQString("Clock_%1_Zone").tqarg(i)), config->readEntry(TQString("Clock_%1_Name").tqarg(i))); + addClock(config->readEntry(TQString("Clock_%1_Zone").arg(i)), config->readEntry(TQString("Clock_%1_Name").arg(i))); } }