Replace various tq* strings with TQt::* equivalents

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/239/head
Michele Calgaro 1 year ago
parent 57e0ed6634
commit 80c2465371
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1584,7 +1584,7 @@ void TDEApplication::startKdeinit()
if (srv.isEmpty()) if (srv.isEmpty())
return; return;
if (kapp && (Tty != kapp->type())) if (kapp && (Tty != kapp->type()))
setOverrideCursor( tqwaitCursor ); setOverrideCursor( TQt::waitCursor );
my_system(TQFile::encodeName(srv)+" --suicide"+" --new-startup"); my_system(TQFile::encodeName(srv)+" --suicide"+" --new-startup");
if (kapp && (Tty != kapp->type())) if (kapp && (Tty != kapp->type()))
restoreOverrideCursor(); restoreOverrideCursor();

@ -5733,7 +5733,7 @@ void TDEHTMLPart::setZoomFactor (int percent)
d->m_zoomFactor = percent; d->m_zoomFactor = percent;
if(d->m_doc) { if(d->m_doc) {
TQApplication::setOverrideCursor( tqwaitCursor ); TQApplication::setOverrideCursor( TQt::waitCursor );
if (d->m_doc->styleSelector()) if (d->m_doc->styleSelector())
d->m_doc->styleSelector()->computeFontSizes(d->m_doc->paintDeviceMetrics(), d->m_zoomFactor); d->m_doc->styleSelector()->computeFontSizes(d->m_doc->paintDeviceMetrics(), d->m_zoomFactor);
d->m_doc->recalcStyle( NodeImpl::Force ); d->m_doc->recalcStyle( NodeImpl::Force );
@ -5879,7 +5879,7 @@ void TDEHTMLPart::reparseConfiguration()
delete d->m_settings; delete d->m_settings;
d->m_settings = new TDEHTMLSettings(*TDEHTMLFactory::defaultHTMLSettings()); d->m_settings = new TDEHTMLSettings(*TDEHTMLFactory::defaultHTMLSettings());
TQApplication::setOverrideCursor( tqwaitCursor ); TQApplication::setOverrideCursor( TQt::waitCursor );
tdehtml::CSSStyleSelector::reparseConfiguration(); tdehtml::CSSStyleSelector::reparseConfiguration();
if(d->m_doc) d->m_doc->updateStyleSelector(); if(d->m_doc) d->m_doc->updateStyleSelector();
TQApplication::restoreOverrideCursor(); TQApplication::restoreOverrideCursor();

@ -2781,7 +2781,7 @@ void TDEHTMLView::print(bool quick)
if ( !docname.isEmpty() ) if ( !docname.isEmpty() )
docname = KStringHandler::csqueeze(docname, 80); docname = KStringHandler::csqueeze(docname, 80);
if(quick || printer->setup(this, i18n("Print %1").arg(docname))) { if(quick || printer->setup(this, i18n("Print %1").arg(docname))) {
viewport()->setCursor( tqwaitCursor ); // only viewport(), no TQApplication::, otherwise we get the busy cursor in tdeprint's dialogs viewport()->setCursor( TQt::waitCursor ); // only viewport(), no TQApplication::, otherwise we get the busy cursor in tdeprint's dialogs
// set up KPrinter // set up KPrinter
printer->setFullPage(false); printer->setFullPage(false);
printer->setCreator(TQString("TDE %1.%2.%3 HTML Library").arg(TDE_VERSION_MAJOR).arg(TDE_VERSION_MINOR).arg(TDE_VERSION_RELEASE)); printer->setCreator(TQString("TDE %1.%2.%3 HTML Library").arg(TDE_VERSION_MAJOR).arg(TDE_VERSION_MINOR).arg(TDE_VERSION_RELEASE));

@ -119,7 +119,7 @@ void TDEIconCanvas::loadFiles(const TQStringList& files)
void TDEIconCanvas::slotLoadFiles() void TDEIconCanvas::slotLoadFiles()
{ {
setResizeMode(Fixed); setResizeMode(Fixed);
TQApplication::setOverrideCursor(tqwaitCursor); TQApplication::setOverrideCursor(TQt::waitCursor);
// disable updates to not trigger paint events when adding child items // disable updates to not trigger paint events when adding child items
setUpdatesEnabled( false ); setUpdatesEnabled( false );

@ -719,7 +719,7 @@ void KDirOperator::pathChanged()
TQApplication::restoreOverrideCursor(); TQApplication::restoreOverrideCursor();
// when TDEIO::Job emits finished, the slot will restore the cursor // when TDEIO::Job emits finished, the slot will restore the cursor
TQApplication::setOverrideCursor( tqwaitCursor ); TQApplication::setOverrideCursor( TQt::waitCursor );
if ( !isReadable( currUrl )) { if ( !isReadable( currUrl )) {
KMessageBox::error(viewWidget(), KMessageBox::error(viewWidget(),
@ -1071,7 +1071,7 @@ void KDirOperator::connectView(KFileView *view)
m_fileView->widget()->show(); m_fileView->widget()->show();
if ( listDir ) { if ( listDir ) {
TQApplication::setOverrideCursor( tqwaitCursor ); TQApplication::setOverrideCursor( TQt::waitCursor );
openURL( currUrl ); openURL( currUrl );
} }
else else

@ -238,19 +238,19 @@ void KMdiChildFrm::setResizeCursor( int resizeCorner )
break; break;
case KMDI_RESIZE_LEFT: case KMDI_RESIZE_LEFT:
case KMDI_RESIZE_RIGHT: case KMDI_RESIZE_RIGHT:
TQApplication::setOverrideCursor( tqsizeHorCursor, true ); TQApplication::setOverrideCursor( TQt::sizeHorCursor, true );
break; break;
case KMDI_RESIZE_TOP: case KMDI_RESIZE_TOP:
case KMDI_RESIZE_BOTTOM: case KMDI_RESIZE_BOTTOM:
TQApplication::setOverrideCursor( tqsizeVerCursor, true ); TQApplication::setOverrideCursor( TQt::sizeVerCursor, true );
break; break;
case KMDI_RESIZE_TOPLEFT: case KMDI_RESIZE_TOPLEFT:
case KMDI_RESIZE_BOTTOMRIGHT: case KMDI_RESIZE_BOTTOMRIGHT:
TQApplication::setOverrideCursor( tqsizeFDiagCursor, true ); TQApplication::setOverrideCursor( TQt::sizeFDiagCursor, true );
break; break;
case KMDI_RESIZE_BOTTOMLEFT: case KMDI_RESIZE_BOTTOMLEFT:
case KMDI_RESIZE_TOPRIGHT: case KMDI_RESIZE_TOPRIGHT:
TQApplication::setOverrideCursor( tqsizeBDiagCursor, true ); TQApplication::setOverrideCursor( TQt::sizeBDiagCursor, true );
break; break;
} }
} }

@ -90,7 +90,7 @@ void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e )
setMouseTracking( false ); setMouseTracking( false );
if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look ) if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look )
{ {
TQApplication::setOverrideCursor( tqsizeAllCursor, true ); TQApplication::setOverrideCursor( TQt::sizeAllCursor, true );
} }
m_pParent->m_bDragging = true; m_pParent->m_bDragging = true;
m_offset = mapToParent( e->pos() ); m_offset = mapToParent( e->pos() );
@ -313,7 +313,7 @@ void KMdiChildFrmCaption::slot_moveViaSystemMenu()
grabMouse(); grabMouse();
if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look ) if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look )
TQApplication::setOverrideCursor( tqsizeAllCursor, true ); TQApplication::setOverrideCursor( TQt::sizeAllCursor, true );
m_pParent->m_bDragging = true; m_pParent->m_bDragging = true;
m_offset = mapFromGlobal( TQCursor::pos() ); m_offset = mapFromGlobal( TQCursor::pos() );

@ -1507,7 +1507,7 @@ KColorDialog::slotColorPicker()
d->oldfilter = tqt_set_x11_event_filter(kde_color_dlg_handler); d->oldfilter = tqt_set_x11_event_filter(kde_color_dlg_handler);
#endif #endif
kde_color_dlg_widget = this; kde_color_dlg_widget = this;
grabMouse( tqcrossCursor ); grabMouse( TQt::crossCursor );
grabKeyboard(); grabKeyboard();
} }

@ -145,72 +145,72 @@ TQCursor KCursor::workingCursor()
*/ */
TQCursor KCursor::arrowCursor() TQCursor KCursor::arrowCursor()
{ {
return tqarrowCursor; return TQt::arrowCursor;
} }
TQCursor KCursor::upArrowCursor() TQCursor KCursor::upArrowCursor()
{ {
return tqupArrowCursor; return TQt::upArrowCursor;
} }
TQCursor KCursor::crossCursor() TQCursor KCursor::crossCursor()
{ {
return tqcrossCursor; return TQt::crossCursor;
} }
TQCursor KCursor::waitCursor() TQCursor KCursor::waitCursor()
{ {
return tqwaitCursor; return TQt::waitCursor;
} }
TQCursor KCursor::ibeamCursor() TQCursor KCursor::ibeamCursor()
{ {
return tqibeamCursor; return TQt::ibeamCursor;
} }
TQCursor KCursor::sizeVerCursor() TQCursor KCursor::sizeVerCursor()
{ {
return tqsizeVerCursor; return TQt::sizeVerCursor;
} }
TQCursor KCursor::sizeHorCursor() TQCursor KCursor::sizeHorCursor()
{ {
return tqsizeHorCursor; return TQt::sizeHorCursor;
} }
TQCursor KCursor::sizeBDiagCursor() TQCursor KCursor::sizeBDiagCursor()
{ {
return tqsizeBDiagCursor; return TQt::sizeBDiagCursor;
} }
TQCursor KCursor::sizeFDiagCursor() TQCursor KCursor::sizeFDiagCursor()
{ {
return tqsizeFDiagCursor; return TQt::sizeFDiagCursor;
} }
TQCursor KCursor::sizeAllCursor() TQCursor KCursor::sizeAllCursor()
{ {
return tqsizeAllCursor; return TQt::sizeAllCursor;
} }
TQCursor KCursor::blankCursor() TQCursor KCursor::blankCursor()
{ {
return tqblankCursor; return TQt::blankCursor;
} }
TQCursor KCursor::whatsThisCursor() TQCursor KCursor::whatsThisCursor()
{ {
return tqwhatsThisCursor; return TQt::whatsThisCursor;
} }
// auto-hide cursor stuff // auto-hide cursor stuff

@ -1957,7 +1957,7 @@ void KDockManager::startDrag( KDockWidget* w )
curPos = KDockWidget::DockDesktop; curPos = KDockWidget::DockDesktop;
dragging = true; dragging = true;
TQApplication::setOverrideCursor(TQCursor(tqsizeAllCursor)); TQApplication::setOverrideCursor(TQCursor(TQt::sizeAllCursor));
} }
void KDockManager::dragMove( KDockWidget* dw, TQPoint pos ) void KDockManager::dragMove( KDockWidget* dw, TQPoint pos )

@ -62,9 +62,9 @@ void KDockSplitter::activate(TQWidget *c0, TQWidget *c1)
divider->raise(); divider->raise();
if (m_orientation == TQt::Horizontal) if (m_orientation == TQt::Horizontal)
divider->setCursor(TQCursor(tqsizeVerCursor)); divider->setCursor(TQCursor(TQt::sizeVerCursor));
else else
divider->setCursor(TQCursor(tqsizeHorCursor)); divider->setCursor(TQCursor(TQt::sizeHorCursor));
divider->installEventFilter(this); divider->installEventFilter(this);
initialised= true; initialised= true;

@ -144,7 +144,7 @@ void KTabBar::mouseMoveEvent( TQMouseEvent *e )
TQTab *tab = selectTab( e->pos() ); TQTab *tab = selectTab( e->pos() );
if( tab && mTabReorderingEnabled ) { if( tab && mTabReorderingEnabled ) {
mReorderStartTab = indexOf( tab->identifier() ); mReorderStartTab = indexOf( tab->identifier() );
grabMouse( tqsizeAllCursor ); grabMouse( TQt::sizeAllCursor );
return; return;
} }
} }
@ -240,7 +240,7 @@ void KTabBar::mouseReleaseEvent( TQMouseEvent *e )
} }
else { else {
releaseMouse(); releaseMouse();
setCursor( tqarrowCursor ); setCursor( TQt::arrowCursor );
mReorderStartTab=-1; mReorderStartTab=-1;
mReorderPreviousTab=-1; mReorderPreviousTab=-1;
} }

Loading…
Cancel
Save