summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/compoundwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kregexpeditor/compoundwidget.cpp')
-rw-r--r--kregexpeditor/compoundwidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kregexpeditor/compoundwidget.cpp b/kregexpeditor/compoundwidget.cpp
index c43dcbb..044ec85 100644
--- a/kregexpeditor/compoundwidget.cpp
+++ b/kregexpeditor/compoundwidget.cpp
@@ -135,10 +135,10 @@ void CompoundWidget::init( )
_backRefId = -1;
}
-TQSize CompoundWidget::tqsizeHint() const
+TQSize CompoundWidget::sizeHint() const
{
TQFontMetrics metrics = fontMetrics();
- _childSize = _child->tqsizeHint();
+ _childSize = _child->sizeHint();
_textSize = metrics.size( 0, _content->title() );
int width, height;
@@ -164,7 +164,7 @@ TQSize CompoundWidget::tqsizeHint() const
void CompoundWidget::paintEvent( TQPaintEvent *e )
{
- TQSize mySize = tqsizeHint();
+ TQSize mySize = sizeHint();
TQPainter painter(this);
drawPossibleSelection( painter, mySize);
@@ -220,8 +220,8 @@ void CompoundWidget::paintEvent( TQPaintEvent *e )
}
else {
TQSize curSize = _child->size();
- TQSize newSize = TQSize( TQMAX( _child->tqsizeHint().width(), mySize.width()-2*pw),
- _child->tqsizeHint().height());
+ TQSize newSize = TQSize( TQMAX( _child->sizeHint().width(), mySize.width()-2*pw),
+ _child->sizeHint().height());
_child->move( pw, childY );
if ( curSize != newSize ) {
@@ -296,8 +296,8 @@ bool CompoundWidget::updateSelection( bool parentSelected )
int CompoundWidget::edit()
{
- _configWindow->move(TQCursor::pos() - TQPoint(_configWindow->tqsizeHint().width()/2,
- _configWindow->tqsizeHint().height()/2) );
+ _configWindow->move(TQCursor::pos() - TQPoint(_configWindow->sizeHint().width()/2,
+ _configWindow->sizeHint().height()/2) );
TQDataStream stream( _backup, IO_WriteOnly );
KWidgetStreamer streamer;
streamer.toStream( TQT_TQOBJECT(_content), stream );