From 832a6a8631e84380a97d6ed003b12a528c2d32e2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 24 Nov 2023 10:46:59 +0900 Subject: [PATCH] Replaced various '#define' with actual strings - part 3 Signed-off-by: Michele Calgaro (cherry picked from commit b841bed50c7aec5fac94009fb80baf6a9e266789) --- amarok/src/browserbar.cpp | 2 +- amarok/src/multitabbar.cpp | 2 +- amarok/src/prettypopupmenu.cpp | 2 +- amarok/src/scancontroller.cpp | 2 +- amarok/src/statusbar/statusBarBase.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/amarok/src/browserbar.cpp b/amarok/src/browserbar.cpp index b5585c74..4d7cb749 100644 --- a/amarok/src/browserbar.cpp +++ b/amarok/src/browserbar.cpp @@ -44,7 +44,7 @@ namespace Amarok virtual void paintEvent( TQPaintEvent* ) { TQPainter p( this ); - parentWidget()->style().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), TQStyle::Style_Horizontal ); + parentWidget()->style().drawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), TQStyle::Style_Horizontal ); } virtual void styleChange( TQStyle& ) diff --git a/amarok/src/multitabbar.cpp b/amarok/src/multitabbar.cpp index cfc28150..6e361cab 100644 --- a/amarok/src/multitabbar.cpp +++ b/amarok/src/multitabbar.cpp @@ -714,7 +714,7 @@ TQSize MultiTabBarButton::sizeHint() const // h = ( parentWidget()->width() - 3 ) / NUM_TABS; // } - return ( style().tqsizeFromContents( TQStyle::CT_ToolButton, this, TQSize( w, h ) ). + return ( style().sizeFromContents( TQStyle::CT_ToolButton, this, TQSize( w, h ) ). expandedTo( TQApplication::globalStrut() ) ); } diff --git a/amarok/src/prettypopupmenu.cpp b/amarok/src/prettypopupmenu.cpp index 17132457..163dba48 100644 --- a/amarok/src/prettypopupmenu.cpp +++ b/amarok/src/prettypopupmenu.cpp @@ -174,7 +174,7 @@ PrettyPopupMenu::paintEvent( TQPaintEvent* e ) drawContents( &p ); - style().tqdrawPrimitive( TQStyle::PE_PanelPopup, &p, + style().drawPrimitive( TQStyle::PE_PanelPopup, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TQStyle::Style_Default, TQStyleOption( frameWidth(), 0 ) ); diff --git a/amarok/src/scancontroller.cpp b/amarok/src/scancontroller.cpp index 57fd7c9a..acb6228c 100644 --- a/amarok/src/scancontroller.cpp +++ b/amarok/src/scancontroller.cpp @@ -489,7 +489,7 @@ ScanController::startElement( const TQString&, const TQString& localName, const TQValueList< TQPair > covers; for( uint i = 0; i < list.count(); ) { - covers += tqMakePair( list[i], list[i + 1] ); + covers += qMakePair( list[i], list[i + 1] ); i += 2; } diff --git a/amarok/src/statusbar/statusBarBase.cpp b/amarok/src/statusbar/statusBarBase.cpp index 7974dfc6..aa513e3a 100644 --- a/amarok/src/statusbar/statusBarBase.cpp +++ b/amarok/src/statusbar/statusBarBase.cpp @@ -181,7 +181,7 @@ StatusBar::paintEvent( TQPaintEvent* ) if ( !w->isVisible() ) continue; - style().tqdrawPrimitive( + style().drawPrimitive( TQStyle::PE_StatusBarSection, &p, TQRect( w->x() - 1, w->y() - 1, w->width() + 2, w->height() + 2 ),