Rename KComp to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent d8f44d1f46
commit 51779cd3cb

@ -28,7 +28,7 @@ using Cervisia::LogMessageEdit;
LogMessageEdit::LogMessageEdit(TQWidget* parent) LogMessageEdit::LogMessageEdit(TQWidget* parent)
: KTextEdit(parent) : KTextEdit(parent)
, KCompletionBase() , TDECompletionBase()
, m_completing(false) , m_completing(false)
, m_completionStartPos(0) , m_completionStartPos(0)
{ {
@ -180,7 +180,7 @@ void LogMessageEdit::tryCompletion()
void LogMessageEdit::rotateMatches(KeyBindingType type) void LogMessageEdit::rotateMatches(KeyBindingType type)
{ {
KCompletion* completionObj = compObj(); TDECompletion* completionObj = compObj();
if( completionObj && m_completing && if( completionObj && m_completing &&
(type == PrevCompletionMatch || type == NextCompletionMatch) ) (type == PrevCompletionMatch || type == NextCompletionMatch) )
{ {

@ -30,7 +30,7 @@ namespace Cervisia
{ {
class LogMessageEdit : public KTextEdit, public KCompletionBase class LogMessageEdit : public KTextEdit, public TDECompletionBase
{ {
Q_OBJECT Q_OBJECT

@ -36,7 +36,7 @@
#include <kdialogbase.h> #include <kdialogbase.h>
class KCompletion; class TDECompletion;
class MarkPatternWidget; class MarkPatternWidget;
@ -70,7 +70,7 @@ class MarkPatternDialog : public KDialogBase
TQStringList patternList; TQStringList patternList;
KCompletion * comboCompletion; TDECompletion * comboCompletion;
}; };
#endif // MARKPATTERNDIALOG_H #endif // MARKPATTERNDIALOG_H

@ -61,7 +61,7 @@ PackageSelectDialog::PackageSelectDialog(TQWidget *parent,const char *name) :
connect( mRecentList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), connect( mRecentList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ),
TQT_SLOT( slotOk() ) ); TQT_SLOT( slotOk() ) );
mCompletion = new KCompletion; mCompletion = new TDECompletion;
mCompletion->setCompletionMode( TDEGlobalSettings::CompletionAuto ); mCompletion->setCompletionMode( TDEGlobalSettings::CompletionAuto );
mCompleteList = new PackageListView( topSplitter ); mCompleteList = new PackageListView( topSplitter );

@ -7,7 +7,7 @@
#include "package.h" #include "package.h"
class KCompletion; class TDECompletion;
class KLineEdit; class KLineEdit;
class PackageListView : public TQListView class PackageListView : public TQListView
@ -59,7 +59,7 @@ class PackageSelectDialog : public KDialogBase
TQListView *mRecentList; TQListView *mRecentList;
PackageListView *mCompleteList; PackageListView *mCompleteList;
KLineEdit *mPackageEdit; KLineEdit *mPackageEdit;
KCompletion *mCompletion; TDECompletion *mCompletion;
TQDict<TQListViewItem> mCompletionDict; TQDict<TQListViewItem> mCompletionDict;
}; };

Loading…
Cancel
Save