summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/formsettingsimpl.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-29 23:01:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-29 23:59:58 +0900
commitb9186693ada54762210d51282c15e2248e76a586 (patch)
tree6e7e82a9639e67a50aa121eb08b8d7c1f6ba0229 /kdevdesigner/designer/formsettingsimpl.cpp
parentf12db681be834f7027132156c05afcbcb2346278 (diff)
downloadtdevelop-b9186693ada54762210d51282c15e2248e76a586.tar.gz
tdevelop-b9186693ada54762210d51282c15e2248e76a586.zip
Replaced various '#define' with actual strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 61cd5b18f00b0d36a7953596c5295e358324ebb7)
Diffstat (limited to 'kdevdesigner/designer/formsettingsimpl.cpp')
-rw-r--r--kdevdesigner/designer/formsettingsimpl.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdevdesigner/designer/formsettingsimpl.cpp b/kdevdesigner/designer/formsettingsimpl.cpp
index e29ea157..f82ae552 100644
--- a/kdevdesigner/designer/formsettingsimpl.cpp
+++ b/kdevdesigner/designer/formsettingsimpl.cpp
@@ -44,7 +44,7 @@ FormSettings::FormSettings( TQWidget *parent, FormWindow *fw )
: FormSettingsBase( parent, 0, TRUE ), formwindow( fw )
{
connect( buttonHelp, TQT_SIGNAL( clicked() ), MainWindow::self, TQT_SLOT( showDialogHelp() ) );
- MetaDataBase::MetaInfo info = MetaDataBase::metaInfo( TQT_TQOBJECT(fw) );
+ MetaDataBase::MetaInfo info = MetaDataBase::metaInfo( fw );
if ( info.classNameChanged && !info.className.isEmpty() )
editClassName->setText( info.className );
else
@@ -52,8 +52,8 @@ FormSettings::FormSettings( TQWidget *parent, FormWindow *fw )
editComment->setText( info.comment );
editAuthor->setText( info.author );
- editClassName->setValidator( new AsciiValidator( TQString( ":" ), TQT_TQOBJECT(editClassName) ) );
- editPixmapFunction->setValidator( new AsciiValidator( TQString( ":" ), TQT_TQOBJECT(editPixmapFunction) ) );
+ editClassName->setValidator( new AsciiValidator( TQString( ":" ), editClassName ) );
+ editPixmapFunction->setValidator( new AsciiValidator( TQString( ":" ), editPixmapFunction ) );
if ( formwindow->savePixmapInline() )
radioPixmapInline->setChecked( TRUE );
@@ -65,8 +65,8 @@ FormSettings::FormSettings( TQWidget *parent, FormWindow *fw )
radioProjectImageFile->setEnabled( !fw->project()->isDummy() );
spinSpacing->setValue( formwindow->layoutDefaultSpacing() );
spinMargin->setValue( formwindow->layoutDefaultMargin() );
- editSpacingFunction->setValidator( new AsciiValidator( TQString( ":" ), TQT_TQOBJECT(editSpacingFunction) ) );
- editMarginFunction->setValidator( new AsciiValidator( TQString( ":" ), TQT_TQOBJECT(editMarginFunction) ) );
+ editSpacingFunction->setValidator( new AsciiValidator( TQString( ":" ), editSpacingFunction ) );
+ editMarginFunction->setValidator( new AsciiValidator( TQString( ":" ), editMarginFunction ) );
checkLayoutFunctions->setChecked( formwindow->hasLayoutFunctions() );
editSpacingFunction->setText( formwindow->spacingFunction() );
editMarginFunction->setText( formwindow->marginFunction() );
@@ -79,17 +79,17 @@ void FormSettings::okClicked()
info.classNameChanged = info.className != TQString( formwindow->name() );
info.comment = editComment->text();
info.author = editAuthor->text();
- MetaDataBase::setMetaInfo( TQT_TQOBJECT(formwindow), info );
+ MetaDataBase::setMetaInfo( formwindow, info );
formwindow->commandHistory()->setModified( TRUE );
if ( formwindow->savePixmapInline() ) {
- MetaDataBase::clearPixmapArguments( TQT_TQOBJECT(formwindow) );
- MetaDataBase::clearPixmapKeys( TQT_TQOBJECT(formwindow) );
+ MetaDataBase::clearPixmapArguments( formwindow );
+ MetaDataBase::clearPixmapKeys( formwindow );
} else if ( formwindow->savePixmapInProject() ) {
- MetaDataBase::clearPixmapArguments( TQT_TQOBJECT(formwindow) );
+ MetaDataBase::clearPixmapArguments( formwindow );
} else {
- MetaDataBase::clearPixmapKeys( TQT_TQOBJECT(formwindow) );
+ MetaDataBase::clearPixmapKeys( formwindow );
}
if ( radioPixmapInline->isChecked() ) {