summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/qcompletionedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/qcompletionedit.cpp')
-rw-r--r--kdevdesigner/designer/qcompletionedit.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kdevdesigner/designer/qcompletionedit.cpp b/kdevdesigner/designer/qcompletionedit.cpp
index f963cf51..6499c78d 100644
--- a/kdevdesigner/designer/qcompletionedit.cpp
+++ b/kdevdesigner/designer/qcompletionedit.cpp
@@ -30,7 +30,7 @@
#include <tqapplication.h>
#include <tqvbox.h>
-TQCompletionEdit::TQCompletionEdit( TQWidget *tqparent, const char *name )
+QCompletionEdit::QCompletionEdit( TQWidget *tqparent, const char *name )
: TQLineEdit( tqparent, name ), aAdd( FALSE ), caseSensitive( FALSE )
{
popup = new TQVBox( 0, 0, WType_Popup );
@@ -51,27 +51,27 @@ TQCompletionEdit::TQCompletionEdit( TQWidget *tqparent, const char *name )
installEventFilter( this );
}
-bool TQCompletionEdit::autoAdd() const
+bool QCompletionEdit::autoAdd() const
{
return aAdd;
}
-TQStringList TQCompletionEdit::completionList() const
+TQStringList QCompletionEdit::completionList() const
{
return compList;
}
-void TQCompletionEdit::setCompletionList( const TQStringList &l )
+void QCompletionEdit::setCompletionList( const TQStringList &l )
{
compList = l;
}
-void TQCompletionEdit::setAutoAdd( bool add )
+void QCompletionEdit::setAutoAdd( bool add )
{
aAdd = add;
}
-void TQCompletionEdit::textDidChange( const TQString &text )
+void QCompletionEdit::textDidChange( const TQString &text )
{
if ( text.isEmpty() ) {
popup->close();
@@ -81,7 +81,7 @@ void TQCompletionEdit::textDidChange( const TQString &text )
placeListBox();
}
-void TQCompletionEdit::placeListBox()
+void QCompletionEdit::placeListBox()
{
if ( listbox->count() == 0 ) {
popup->close();
@@ -102,7 +102,7 @@ void TQCompletionEdit::placeListBox()
setFocus();
}
-void TQCompletionEdit::updateListBox()
+void QCompletionEdit::updateListBox()
{
listbox->clear();
if ( compList.isEmpty() )
@@ -114,7 +114,7 @@ void TQCompletionEdit::updateListBox()
}
}
-bool TQCompletionEdit::eventFilter( TQObject *o, TQEvent *e )
+bool QCompletionEdit::eventFilter( TQObject *o, TQEvent *e )
{
if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(popup) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(listbox) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(listbox->viewport()) ) {
if ( e->type() == TQEvent::KeyPress ) {
@@ -178,7 +178,7 @@ bool TQCompletionEdit::eventFilter( TQObject *o, TQEvent *e )
return TQLineEdit::eventFilter( o, e );
}
-void TQCompletionEdit::addCompletionEntry( const TQString &entry )
+void QCompletionEdit::addCompletionEntry( const TQString &entry )
{
if ( compList.tqfind( entry ) == compList.end() ) {
compList << entry;
@@ -186,24 +186,24 @@ void TQCompletionEdit::addCompletionEntry( const TQString &entry )
}
}
-void TQCompletionEdit::removeCompletionEntry( const TQString &entry )
+void QCompletionEdit::removeCompletionEntry( const TQString &entry )
{
TQStringList::Iterator it = compList.tqfind( entry );
if ( it != compList.end() )
compList.remove( it );
}
-void TQCompletionEdit::setCaseSensitive( bool b )
+void QCompletionEdit::setCaseSensitive( bool b )
{
caseSensitive = b;
}
-bool TQCompletionEdit::isCaseSensitive() const
+bool QCompletionEdit::isCaseSensitive() const
{
return caseSensitive;
}
-void TQCompletionEdit::clear()
+void QCompletionEdit::clear()
{
TQLineEdit::clear();
compList.clear();