diff options
Diffstat (limited to 'parts/snippet/snippet_widget.cpp')
| -rw-r--r-- | parts/snippet/snippet_widget.cpp | 38 | 
1 files changed, 19 insertions, 19 deletions
| diff --git a/parts/snippet/snippet_widget.cpp b/parts/snippet/snippet_widget.cpp index 67ba0371..a8f47da7 100644 --- a/parts/snippet/snippet_widget.cpp +++ b/parts/snippet/snippet_widget.cpp @@ -51,7 +51,7 @@ SnippetWidget::SnippetWidget(SnippetPart *part)  		m_part( part )  {      // init the TQPtrList -    _list.setAutoDelete(TRUE); +    _list.setAutoDelete(true);      // init the TDEListView      setSorting( -1 ); @@ -226,7 +226,7 @@ void SnippetWidget::slotEdit()        pSnippet->resetParent();      } -    setSelected(item, TRUE); +    setSelected(item, true);    }  } @@ -248,7 +248,7 @@ void SnippetWidget::slotEditGroup()    dlg.snippetName->setText(pGroup->getName());    dlg.snippetText->setText(pGroup->getText());    dlg.btnAdd->setText(i18n("&Apply")); -  dlg.snippetText->setEnabled(FALSE); +  dlg.snippetText->setEnabled(false);    dlg.setCaption(i18n("Edit Group"));    dlg.cbGroup->insertItem(i18n("All"));    dlg.cbGroup->insertStringList(m_part->getAllLanguages()); @@ -261,7 +261,7 @@ void SnippetWidget::slotEditGroup()      pGroup->setName( dlg.snippetName->text() );      pGroup->setLanguage(dlg.cbGroup->currentText()); -    setSelected(item, TRUE); +    setSelected(item, true);    }  } @@ -452,9 +452,9 @@ void SnippetWidget::initConfig()        kdDebug(9035) << "Created group " << group->getName() << " " << group->getId() << endl;        _list.append(group);        if (group->getLanguage() == i18n("All")) -        group->setOpen(TRUE); +        group->setOpen(true);        else -        group->setOpen(FALSE); //groups assigned to certain languages get handled later +        group->setOpen(false); //groups assigned to certain languages get handled later      }    } @@ -694,7 +694,7 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ        continue;      cb = new TQCheckBox( &dlg, "cbVar" ); -    cb->setChecked( FALSE ); +    cb->setChecked( false );      cb->setText(it.key());      layoutVar->addWidget( cb, i ,0, TQt::AlignTop ); @@ -702,7 +702,7 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ      layoutVar->addWidget( te, i, 1, TQt::AlignTop );      if ((*mapSave)[it.key()].length() > 0) { -      cb->setChecked( TRUE ); +      cb->setChecked( true );        te->setText((*mapSave)[it.key()]);      } @@ -726,7 +726,7 @@ bool SnippetWidget::showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQ    KPushButton * btn2 = new KPushButton( &dlg, "pushButton2" );    btn2->setText(i18n("&Apply")); -  btn2->setDefault( TRUE ); +  btn2->setDefault( true );    btn2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0,                           btn2->sizePolicy().hasHeightForWidth() ) );    layoutBtn->addWidget( btn2, 0, 1 ); @@ -816,14 +816,14 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMap<TQString, TQStri    cb = new TQCheckBox( &dlg, "cbVar" ); -  cb->setChecked( FALSE ); +  cb->setChecked( false );    cb->setText(i18n( "Make value &default" ));    te = new KTextEdit( &dlg, "teVar" );    layoutVar->addWidget( te, 0, 1, TQt::AlignTop);    layoutVar->addWidget( cb, 1, 1, TQt::AlignTop);    if ((*mapSave)[var].length() > 0) { -    cb->setChecked( TRUE ); +    cb->setChecked( true );      te->setText((*mapSave)[var]);    } @@ -840,7 +840,7 @@ TQString SnippetWidget::showSingleVarDialog(TQString var, TQMap<TQString, TQStri    KPushButton * btn2 = new KPushButton( &dlg, "pushButton2" );    btn2->setText(i18n("&Apply")); -  btn2->setDefault( TRUE ); +  btn2->setDefault( true );    layoutBtn->addWidget( btn2, 0, 1 );    layout->addMultiCellLayout( layoutBtn, 2, 2, 0, 1 ); @@ -896,12 +896,12 @@ bool SnippetWidget::acceptDrag (TQDropEvent *event) const    if (item &&        TQString(event->format()).startsWith("text/plain") &&        static_cast<SnippetWidget *>(event->source()) != this) { -    kdDebug(9035) << "returning TRUE " << endl; -    return TRUE; +    kdDebug(9035) << "returning true " << endl; +    return true;    } else { -    kdDebug(9035) << "returning FALSE" << endl; -    event->acceptAction(FALSE); -    return FALSE; +    kdDebug(9035) << "returning false" << endl; +    event->acceptAction(false); +    return false;    }  } @@ -959,9 +959,9 @@ void SnippetWidget::languageChanged()      SnippetGroup * group = dynamic_cast<SnippetGroup*>(it);      if (group) {        if (group->getLanguage() == i18n("All") || langs.contains(group->getLanguage())) { -        group->setOpen(TRUE); +        group->setOpen(true);        } else { -        group->setOpen(FALSE); +        group->setOpen(false);        }      }    } | 
