Rename KComp to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent ea720a87cc
commit 338af5d52c

@ -16,7 +16,7 @@ Legend:
mentioning in the public changelog mentioning in the public changelog
TODO: fix displaying default values in comboboxes (form and tableview) TODO: fix displaying default values in comboboxes (form and tableview)
TODO: use KCompletionBox in (editable/noneditable) comboboxes TODO: use TDECompletionBox in (editable/noneditable) comboboxes
2007-04-11 2007-04-11
Forms Forms

@ -272,8 +272,8 @@ void KexiStartupFileDialogBase::init(const TQString& startDir, const TQString& f
TQT_SLOT( pathComboChanged( const TQString& ) )); TQT_SLOT( pathComboChanged( const TQString& ) ));
connect( d->pathCombo, TQT_SIGNAL( completion( const TQString& )), connect( d->pathCombo, TQT_SIGNAL( completion( const TQString& )),
TQT_SLOT( dirCompletion( const TQString& ))); TQT_SLOT( dirCompletion( const TQString& )));
connect( d->pathCombo, TQT_SIGNAL( textRotation(KCompletionBase::KeyBindingType) ), connect( d->pathCombo, TQT_SIGNAL( textRotation(TDECompletionBase::KeyBindingType) ),
d->pathCombo, TQT_SLOT( rotateText(KCompletionBase::KeyBindingType) )); d->pathCombo, TQT_SLOT( rotateText(TDECompletionBase::KeyBindingType) ));
TQString whatsThisText; TQString whatsThisText;
@ -299,8 +299,8 @@ void KexiStartupFileDialogBase::init(const TQString& startDir, const TQString& f
this, TQT_SLOT( locationActivated( const TQString& ) )); this, TQT_SLOT( locationActivated( const TQString& ) ));
connect( locationEdit, TQT_SIGNAL( completion( const TQString& )), connect( locationEdit, TQT_SIGNAL( completion( const TQString& )),
TQT_SLOT( fileCompletion( const TQString& ))); TQT_SLOT( fileCompletion( const TQString& )));
connect( locationEdit, TQT_SIGNAL( textRotation(KCompletionBase::KeyBindingType) ), connect( locationEdit, TQT_SIGNAL( textRotation(TDECompletionBase::KeyBindingType) ),
locationEdit, TQT_SLOT( rotateText(KCompletionBase::KeyBindingType) )); locationEdit, TQT_SLOT( rotateText(TDECompletionBase::KeyBindingType) ));
// the Filter label/edit // the Filter label/edit
whatsThisText = i18n("<qt>This is the filter to apply to the file list. " whatsThisText = i18n("<qt>This is the filter to apply to the file list. "

@ -128,7 +128,7 @@ void KexiDataSourceComboBox::setProject(KexiProject *prj, bool showTables, bool
insertItem(i18n("Define Query...")); insertItem(i18n("Define Query..."));
#endif #endif
KCompletion *comp = completionObject(); TDECompletion *comp = completionObject();
if (d->showTables) { if (d->showTables) {
//tables //tables

@ -139,7 +139,7 @@ private:
TQLineEdit *result; TQLineEdit *result;
KLineEdit *searchFunct; KLineEdit *searchFunct;
KCompletion listFunct; TDECompletion listFunct;
TQLabel* label1; TQLabel* label1;
TQLabel* label2; TQLabel* label2;

@ -126,7 +126,7 @@ public:
TQPtrList<Plugin> plugins; TQPtrList<Plugin> plugins;
TQValueList<Reference> refs; TQValueList<Reference> refs;
KCompletion listCompletion; TDECompletion listCompletion;
int numOperations; int numOperations;
@ -500,7 +500,7 @@ const TQValueList<Reference> &Doc::listArea()
return d->refs; return d->refs;
} }
KCompletion& Doc::completion() TDECompletion& Doc::completion()
{ {
return d->listCompletion; return d->listCompletion;
} }

@ -517,7 +517,7 @@ public:
void addAreaName(const TQRect &_rect,const TQString & name,const TQString & sheetName); void addAreaName(const TQRect &_rect,const TQString & name,const TQString & sheetName);
const TQValueList<Reference> & listArea(); const TQValueList<Reference> & listArea();
void removeArea( const TQString &name); void removeArea( const TQString &name);
KCompletion & completion(); TDECompletion & completion();
void addStringCompletion(const TQString & stringCompletion); void addStringCompletion(const TQString & stringCompletion);
void changeAreaSheetName(const TQString & oldName,const TQString &sheetName); void changeAreaSheetName(const TQString & oldName,const TQString &sheetName);

@ -279,7 +279,7 @@ protected:
virtual void keyPressEvent( TQKeyEvent * _ev ); virtual void keyPressEvent( TQKeyEvent * _ev );
private: private:
View * m_pView; View * m_pView;
KCompletion completionList; TDECompletion completionList;
bool activateItem(); bool activateItem();
}; };

@ -144,7 +144,7 @@ ComboBox::fillBox()
} }
m_edit->insertStringList(property()->listData()->names); m_edit->insertStringList(property()->listData()->names);
KCompletion *comp = m_edit->completionObject(); TDECompletion *comp = m_edit->completionObject();
comp->insertItems(property()->listData()->names); comp->insertItems(property()->listData()->names);
comp->setCompletionMode(TDEGlobalSettings::CompletionShell); comp->setCompletionMode(TDEGlobalSettings::CompletionShell);
} }

@ -148,7 +148,7 @@ KoAutoFormat::KoAutoFormat( KoDocument *_doc, KoVariableCollection *_varCollecti
m_typographicDoubleQuotes(), m_typographicDoubleQuotes(),
m_typographicDefaultDoubleQuotes(), m_typographicDefaultDoubleQuotes(),
m_typographicDefaultSimpleQuotes(), m_typographicDefaultSimpleQuotes(),
m_listCompletion( new KCompletion ), m_listCompletion( new TDECompletion ),
m_entries(17,false), m_entries(17,false),
m_allLanguages(17,false), m_allLanguages(17,false),
m_superScriptEntries(), m_superScriptEntries(),
@ -218,7 +218,7 @@ KoAutoFormat::KoAutoFormat( const KoAutoFormat& format )
m_completionBox(0), m_completionBox(0),
m_keyCompletionAction( format.m_keyCompletionAction ) m_keyCompletionAction( format.m_keyCompletionAction )
{ {
//m_listCompletion=new KCompletion(); //m_listCompletion=new TDECompletion();
//m_listCompletion->setItems( autoFormat.listCompletion() ); //m_listCompletion->setItems( autoFormat.listCompletion() );
//copyAutoFormatEntries( autoFormat ); //copyAutoFormatEntries( autoFormat );
} }

@ -37,7 +37,7 @@ class KoTextParag;
class KoTextObject; class KoTextObject;
class KoVariableCollection; class KoVariableCollection;
class KoVariableFormatCollection; class KoVariableFormatCollection;
class KCompletion; class TDECompletion;
class KoTextCursor; class KoTextCursor;
class KCommand; class KCommand;
class KoSearchContext; class KoSearchContext;
@ -315,7 +315,7 @@ public:
TQStringList listCompletion() const; TQStringList listCompletion() const;
KCompletion *getCompletion() const { return m_listCompletion; } TDECompletion *getCompletion() const { return m_listCompletion; }
int nbSuperScriptEntry() const int nbSuperScriptEntry() const
{ return m_superScriptEntries.count(); } { return m_superScriptEntries.count(); }
@ -399,7 +399,7 @@ private:
TypographicQuotes m_typographicDefaultSimpleQuotes; TypographicQuotes m_typographicDefaultSimpleQuotes;
KCompletion *m_listCompletion; TDECompletion *m_listCompletion;
TQDict<KoAutoFormatEntry> m_entries; TQDict<KoAutoFormatEntry> m_entries;
TQDict<KoAutoFormatEntry> m_allLanguages; TQDict<KoAutoFormatEntry> m_allLanguages;

Loading…
Cancel
Save