diff options
Diffstat (limited to 'kspread/kspread_editors.cc')
-rw-r--r-- | kspread/kspread_editors.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kspread/kspread_editors.cc b/kspread/kspread_editors.cc index ddf41d31..7f0fa282 100644 --- a/kspread/kspread_editors.cc +++ b/kspread/kspread_editors.cc @@ -315,11 +315,11 @@ TQObject( editor ) d->editor = editor; d->hintLabel = 0; - d->completionPopup = new TQVBox( editor->tqtopLevelWidget(), 0, WType_Popup ); + d->completionPopup = new TQVBox( editor->topLevelWidget(), 0, WType_Popup ); d->completionPopup->setFrameStyle( TQFrame::Box | TQFrame::Plain ); d->completionPopup->setLineWidth( 1 ); d->completionPopup->installEventFilter( this ); - d->completionPopup->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum); + d->completionPopup->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum); d->completionListBox = new KListBox( d->completionPopup ); d->completionPopup->setFocusProxy( d->completionListBox ); @@ -430,7 +430,7 @@ void FunctionCompletion::showCompletion( const TQStringList &choices ) // size of the pop-up d->completionPopup->setMaximumHeight( 100 ); - d->completionPopup->resize( d->completionListBox->tqsizeHint() + + d->completionPopup->resize( d->completionListBox->sizeHint() + TQSize( d->completionListBox->verticalScrollBar()->width() + 4, d->completionListBox->horizontalScrollBar()->height() + 4 ) ); int h = d->completionListBox->height(); @@ -612,7 +612,7 @@ void CellEditor::triggerFunctionAutoComplete() TQStringList fnames = KSpread::FunctionRepository::self()->functionNames(); TQStringList choices; for( unsigned i=0; i<fnames.count(); i++ ) - if( fnames[i].tqstartsWith( id, false ) ) + if( fnames[i].startsWith( id, false ) ) choices.append( fnames[i] ); choices.sort(); @@ -828,7 +828,7 @@ void CellEditor::setEditorFont(TQFont const & font, bool updateSize) d->fontLength = fm.width('x'); int mw = fm.width( d->textEdit->text() ) + d->fontLength; - // don't make it smaller: then we would have to tqrepaint the obscured cells + // don't make it smaller: then we would have to repaint the obscured cells if (mw < width()) mw = width(); @@ -1455,7 +1455,7 @@ EditWidget::EditWidget( TQWidget *_parent, Canvas *_canvas, m_pCanvas = _canvas; Q_ASSERT(m_pCanvas != NULL); // Those buttons are created by the caller, so that they are inserted - // properly in the tqlayout - but they are then managed here. + // properly in the layout - but they are then managed here. m_pCancelButton = cancelButton; m_pOkButton = okButton; isArray = false; |