diff options
author | Timothy Pearson <[email protected]> | 2011-12-16 09:55:27 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-16 09:55:27 -0600 |
commit | 04bc759a8ee52b9c11cb6653276a7ef29285f10c (patch) | |
tree | bc4f8437955402b7b474e156e7fd770300421f96 /src/editor.cpp | |
parent | b877728731c783fbd7370935a6733c78c25d5ce2 (diff) | |
download | abakus-04bc759a8ee52b9c11cb6653276a7ef29285f10c.tar.gz abakus-04bc759a8ee52b9c11cb6653276a7ef29285f10c.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit b877728731c783fbd7370935a6733c78c25d5ce2.
Diffstat (limited to 'src/editor.cpp')
-rw-r--r-- | src/editor.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/editor.cpp b/src/editor.cpp index 3fc3a00..470198b 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -147,7 +147,7 @@ void ChoiceItem::paint( TQPainter* painter ) //int xPos = fm.width( item ); int xPos = TQMAX(fm.width(item), minNameWidth); if( !isSelected() ) - painter->setPen( listBox()->palette().disabled().text().dark() ); + painter->setPen( listBox()->tqpalette().disabled().text().dark() ); painter->drawText( 10 + xPos, yPos, desc ); } @@ -161,7 +161,7 @@ int EditorHighlighter::highlightParagraph ( const TQString & text, int ) { if( !editor->isSyntaxHighlightEnabled() ) { - setFormat( 0, text.length(), editor->colorGroup().text() ); + setFormat( 0, text.length(), editor->tqcolorGroup().text() ); return 0; } @@ -224,7 +224,7 @@ Editor::Editor( TQWidget* parent, const char* name ): d->autoCalcTimer = new TQTimer( this ); d->matchingTimer = new TQTimer( this ); - setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ); + tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ); setWordWrap( NoWrap ); setHScrollBarMode( AlwaysOff ); setVScrollBarMode( AlwaysOff ); @@ -261,7 +261,7 @@ Editor::~Editor() delete d; } -TQSize Editor::sizeHint() const +TQSize Editor::tqsizeHint() const { constPolish(); TQFontMetrics fm = fontMetrics(); @@ -503,7 +503,7 @@ void Editor::triggerAutoComplete() TQStringList choices; for( unsigned i=0; i<fnames.count(); i++ ) - if( fnames[i].startsWith( id, false ) ) + if( fnames[i].tqstartsWith( id, false ) ) { TQString str = fnames[i]; @@ -521,13 +521,13 @@ void Editor::triggerAutoComplete() TQStringList values = ValueManager::instance()->valueNames(); for(TQStringList::ConstIterator it = values.begin(); it != values.end(); ++it) - if( (*it).startsWith( id, false ) ) + if( (*it).tqstartsWith( id, false ) ) { TQString choice = ValueManager::description(*it); if(choice.isEmpty()) choice = ValueManager::instance()->value(*it).toString(); - vchoices.append( TQString("%1:%2").arg( *it, choice ) ); + vchoices.append( TQString("%1:%2").tqarg( *it, choice ) ); } vchoices.sort(); @@ -627,7 +627,7 @@ void Editor::autoCalc() Abakus::number_t result = parseString(str.latin1()); if( Result::lastResult()->type() == Result::Value ) { - TQString ss = TQString("Result: <b>%2</b>").arg(result.toString()); + TQString ss = TQString("Result: <b>%2</b>").tqarg(result.toString()); d->autoCalcLabel->setText( ss ); d->autoCalcLabel->adjustSize(); @@ -758,11 +758,11 @@ EditorCompletion::EditorCompletion( Editor* editor ): TQObject( editor ) d = new Private; d->editor = editor; - d->completionPopup = new TQVBox( editor->topLevelWidget(), 0, WType_Popup ); + d->completionPopup = new TQVBox( editor->tqtopLevelWidget(), 0, WType_Popup ); d->completionPopup->setFrameStyle( TQFrame::Box | TQFrame::Plain ); d->completionPopup->setLineWidth( 1 ); d->completionPopup->installEventFilter( this ); - d->completionPopup->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum); + d->completionPopup->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum); d->completionListBox = new TQListBox( d->completionPopup ); d->completionPopup->setFocusProxy( d->completionListBox ); @@ -843,7 +843,7 @@ void EditorCompletion::showCompletion( const TQStringList &choices ) // size of the pop-up d->completionPopup->setMaximumHeight( 120 ); - d->completionPopup->resize( d->completionListBox->sizeHint() + + d->completionPopup->resize( d->completionListBox->tqsizeHint() + TQSize( d->completionListBox->verticalScrollBar()->width() + 4, d->completionListBox->horizontalScrollBar()->height() + 4 ) ); |