From 766478630b5e0f435d8aef9ee7ba44651e4e431d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 9 Dec 2023 18:25:41 +0900 Subject: Remove various '#define' strings - part 6 Signed-off-by: Michele Calgaro --- libk3b/tools/k3bintvalidator.cpp | 4 ++-- libk3b/tools/k3blistview.cpp | 4 ++-- libk3b/tools/k3bmsfedit.cpp | 2 +- libk3b/tools/k3bmultichoicedialog.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libk3b/tools') diff --git a/libk3b/tools/k3bintvalidator.cpp b/libk3b/tools/k3bintvalidator.cpp index a4d20d4..77e499c 100644 --- a/libk3b/tools/k3bintvalidator.cpp +++ b/libk3b/tools/k3bintvalidator.cpp @@ -25,14 +25,14 @@ K3bIntValidator::K3bIntValidator ( TQWidget * parent, const char * name ) - : TQValidator(TQT_TQOBJECT(parent), name) + : TQValidator(parent, name) { m_min = m_max = 0; } K3bIntValidator::K3bIntValidator ( int bottom, int top, TQWidget * parent, const char * name ) - : TQValidator(TQT_TQOBJECT(parent), name) + : TQValidator(parent, name) { m_min = bottom; m_max = top; diff --git a/libk3b/tools/k3blistview.cpp b/libk3b/tools/k3blistview.cpp index d00dddc..66ab37c 100644 --- a/libk3b/tools/k3blistview.cpp +++ b/libk3b/tools/k3blistview.cpp @@ -769,7 +769,7 @@ TQWidget* K3bListView::prepareEditor( K3bListViewItem* item, int col ) case K3bListViewItem::SPIN: if( !m_editorSpinBox ) { m_editorSpinBox = new TQSpinBox( viewport() ); - d->spinBoxLineEdit = static_cast(TQT_TQWIDGET( m_editorSpinBox->child( 0, "TQLineEdit" ) )); + d->spinBoxLineEdit = static_cast( m_editorSpinBox->child( 0, "TQLineEdit" ) ); connect( m_editorSpinBox, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotEditorSpinBoxValueChanged(int)) ); // m_editorSpinBox->installEventFilter( this ); @@ -782,7 +782,7 @@ TQWidget* K3bListView::prepareEditor( K3bListViewItem* item, int col ) case K3bListViewItem::MSF: if( !m_editorMsfEdit ) { m_editorMsfEdit = new K3bMsfEdit( viewport() ); - d->msfEditLineEdit = static_cast(TQT_TQWIDGET( m_editorMsfEdit->child( 0, "TQLineEdit" ) )); + d->msfEditLineEdit = static_cast( m_editorMsfEdit->child( 0, "TQLineEdit" ) ); connect( m_editorMsfEdit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotEditorMsfEditValueChanged(int)) ); // m_editorMsfEdit->installEventFilter( this ); diff --git a/libk3b/tools/k3bmsfedit.cpp b/libk3b/tools/k3bmsfedit.cpp index 0e467dc..822392e 100644 --- a/libk3b/tools/k3bmsfedit.cpp +++ b/libk3b/tools/k3bmsfedit.cpp @@ -36,7 +36,7 @@ K3bMsfValidator::K3bMsfValidator( TQObject* parent, const char* name ) K3bMsfEdit::K3bMsfEdit( TQWidget* parent, const char* name ) : TQSpinBox( parent, name ) { - setValidator( new K3bMsfValidator( TQT_TQOBJECT(this) ) ); + setValidator( new K3bMsfValidator( this ) ); setMinValue( 0 ); // some very high value (10000 minutes) setMaxValue( 10000*60*75 ); diff --git a/libk3b/tools/k3bmultichoicedialog.cpp b/libk3b/tools/k3bmultichoicedialog.cpp index c502d95..64d228f 100644 --- a/libk3b/tools/k3bmultichoicedialog.cpp +++ b/libk3b/tools/k3bmultichoicedialog.cpp @@ -82,7 +82,7 @@ K3bMultiChoiceDialog::K3bMultiChoiceDialog( const TQString& caption, : KDialog( parent, name ) { d = new Private(); - d->mapper = new TQSignalMapper( TQT_TQOBJECT(this) ); + d->mapper = new TQSignalMapper( this ); connect( d->mapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(done(int)) ); setCaption( caption ); @@ -126,7 +126,7 @@ int K3bMultiChoiceDialog::addButton( const KGuiItem& b ) KPushButton* button = new KPushButton( b, this ); d->buttonLayout->add( button ); d->buttons.append(button); - d->mapper->setMapping( TQT_TQOBJECT(button), d->buttons.count() ); + d->mapper->setMapping( button, d->buttons.count() ); connect( button, TQT_SIGNAL(clicked()), d->mapper, TQT_SLOT(map()) ); return d->buttons.count(); } -- cgit v1.2.1