summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/customwidgeteditorimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/customwidgeteditorimpl.cpp')
-rw-r--r--kdevdesigner/designer/customwidgeteditorimpl.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdevdesigner/designer/customwidgeteditorimpl.cpp b/kdevdesigner/designer/customwidgeteditorimpl.cpp
index d2d0f5b5..f5346ed3 100644
--- a/kdevdesigner/designer/customwidgeteditorimpl.cpp
+++ b/kdevdesigner/designer/customwidgeteditorimpl.cpp
@@ -199,8 +199,8 @@ void CustomWidgetEditor::currentWidgetChanged( TQListBoxItem *i )
previewPixmap->setPixmap( *w->pixmap );
else
previewPixmap->setText( "" );
- spinWidth->setValue( w->tqsizeHint.width() );
- spinHeight->setValue( w->tqsizeHint.height() );
+ spinWidth->setValue( w->sizeHint.width() );
+ spinHeight->setValue( w->sizeHint.height() );
sizeHor->setCurrentItem( size_type_to_int( w->sizePolicy.horData() ) );
sizeVer->setCurrentItem( size_type_to_int( w->sizePolicy.verData() ) );
checkContainer->setChecked( w->isContainer );
@@ -310,7 +310,7 @@ void CustomWidgetEditor::heightChanged( int h )
if ( !i || !w )
return;
- w->tqsizeHint.setHeight( h );
+ w->sizeHint.setHeight( h );
updateCustomWidgetSizes();
}
@@ -354,7 +354,7 @@ void CustomWidgetEditor::widthChanged( int wid )
if ( !i || !w )
return;
- w->tqsizeHint.setWidth( wid );
+ w->sizeHint.setWidth( wid );
updateCustomWidgetSizes();
}
@@ -710,8 +710,8 @@ void CustomWidgetEditor::saveDescription()
<< "\">" << w->includeFile << "</header>" << endl;
ts << makeIndent2( indent ) << "<sizehint>" << endl;
indent++;
- ts << makeIndent2( indent ) << "<width>" << w->tqsizeHint.width() << "</width>" << endl;
- ts << makeIndent2( indent ) << "<height>" << w->tqsizeHint.height() << "</height>" << endl;
+ ts << makeIndent2( indent ) << "<width>" << w->sizeHint.width() << "</width>" << endl;
+ ts << makeIndent2( indent ) << "<height>" << w->sizeHint.height() << "</height>" << endl;
indent--;
ts << makeIndent2( indent ) << "</sizehint>" << endl;
ts << makeIndent2( indent ) << "<container>" << (int)w->isContainer << "</container>" << endl;
@@ -802,7 +802,7 @@ void CustomWidgetEditor::horDataChanged( int a )
CustomWidget *cw = (CustomWidget*)o;
if ( cw->realClassName() == boxWidgets->currentText() ) {
if ( cw->sizePolicy() == osp )
- cw->tqsetSizePolicy( w->sizePolicy );
+ cw->setSizePolicy( w->sizePolicy );
}
}
}
@@ -823,7 +823,7 @@ void CustomWidgetEditor::verDataChanged( int a )
CustomWidget *cw = (CustomWidget*)o;
if ( cw->realClassName() == boxWidgets->currentText() ) {
if ( cw->sizePolicy() == osp )
- cw->tqsetSizePolicy( w->sizePolicy );
+ cw->setSizePolicy( w->sizePolicy );
}
}
}