From 10b66f448d3326a6c255842fcd8baebeb0a40dd8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 4 Nov 2023 23:32:53 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- acinclude.m4 | 2 +- src/amarokscript/soundKonverter.rb | 74 +++++++++++++++++++------------------- src/cdopener.cpp | 2 +- src/configbackendspage.cpp | 6 ++-- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index caec568..8d3fa50 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1141,7 +1141,7 @@ fi if test "$kde_qtver" = "3"; then cat >> conftest.$ac_ext <> conftest.$ac_ext <> content if content == 'Very_low' @@ -137,9 +137,9 @@ def initialize(parent = nil, name = nil) file.close() end -# file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/profiles" ) -# if file.open( Qt::IO_ReadOnly ) -# ts = Qt::TextStream.new( file ) +# file = TQt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/profiles" ) +# if file.open( TQt::IO_ReadOnly ) +# ts = TQt::TextStream.new( file ) # while !ts.eof() # content = '' # ts >> content @@ -153,9 +153,9 @@ end def accept() - file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" ) - if file.open( Qt::IO_WriteOnly ) - ts = Qt::TextStream.new( file ) + file = TQt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" ) + if file.open( TQt::IO_WriteOnly ) + ts = TQt::TextStream.new( file ) if @cTranscodeProfile.currentText() == 'Very low' content = 'Very_low' elsif @cTranscodeProfile.currentText() == 'Low' @@ -201,7 +201,7 @@ loop do case command when "configure" - app = Qt::Application.new(ARGV) + app = TQt::Application.new(ARGV) widget = MainWidget.new app.setMainWidget(widget) widget.show() @@ -215,9 +215,9 @@ loop do filetype = args[2] profile = '' - file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/formats" ) - if file.open( Qt::IO_ReadOnly ) - ts = Qt::TextStream.new( file ) + file = TQt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/formats" ) + if file.open( TQt::IO_ReadOnly ) + ts = TQt::TextStream.new( file ) while !ts.eof() mode = '' formats = '' @@ -231,9 +231,9 @@ loop do end if profile == '' - file = Qt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" ) - if file.open( Qt::IO_ReadOnly ) - ts = Qt::TextStream.new( file ) + file = TQt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" ) + if file.open( TQt::IO_ReadOnly ) + ts = TQt::TextStream.new( file ) content = '' ts >> content if content == 'Very_low' diff --git a/src/cdopener.cpp b/src/cdopener.cpp index 00964ec..b707012 100644 --- a/src/cdopener.cpp +++ b/src/cdopener.cpp @@ -130,7 +130,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin // create the box at the bottom for editing the tags tagGroupBox = new TQGroupBox( i18n("No track selected"), this, "tagGroupBox" ); gridLayout->addWidget( tagGroupBox, 2, 0 ); - tagGroupBox->setColumnLayout( 0, Qt::Vertical ); + tagGroupBox->setColumnLayout( 0, TQt::Vertical ); tagGroupBox->layout()->setSpacing( 6 ); tagGroupBox->layout()->setMargin( 6 ); TQGridLayout* tagGridLayout = new TQGridLayout( tagGroupBox->layout(), 1, 1, -1, "tagGridLayout" ); diff --git a/src/configbackendspage.cpp b/src/configbackendspage.cpp index deadb60..da10d49 100644 --- a/src/configbackendspage.cpp +++ b/src/configbackendspage.cpp @@ -51,7 +51,7 @@ ConfigBackendsPage::ConfigBackendsPage( Config* _config, TQMapsetStretchFactor( lLegendLabel, 1 ); - TQGroupBox* ripperGroup = new TQGroupBox( 1, Qt::Vertical, box, "ripperGroup" ); + TQGroupBox* ripperGroup = new TQGroupBox( 1, TQt::Vertical, box, "ripperGroup" ); ripperGroup->layout()->setSpacing( 6 ); ripperGroup->layout()->setMargin( 6 ); TQLabel* lRipper = new TQLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" ); @@ -251,7 +251,7 @@ void ConfigBackendsPage::rebuild() } options.group = new TQGroupBox( title, box, options.format ); - options.group->setColumnLayout( 0, Qt::Vertical ); + options.group->setColumnLayout( 0, TQt::Vertical ); options.group->layout()->setSpacing( 6 ); options.group->layout()->setMargin( 6 ); options.group->show(); @@ -274,7 +274,7 @@ void ConfigBackendsPage::rebuild() options.lStrength->setAlignment( TQt::AlignRight | TQt::AlignVCenter ); options.lStrength->show(); options.grid->addWidget( options.lStrength, 0, 2 ); - options.sStrength = new TQSlider( Qt::Horizontal, options.group, options.format ); + options.sStrength = new TQSlider( TQt::Horizontal, options.group, options.format ); options.sStrength->setTickmarks( TQSlider::Below ); options.sStrength->show(); TQToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") ); -- cgit v1.2.1