Rename KComp to avoid conflicts with KDE4

remotes/gitea/gg-tdeadmin-kcron
Timothy Pearson 12 years ago
parent e428ea920f
commit 6131ac7531

@ -78,7 +78,7 @@ Options::Options(TQWidget *parent)
huse = new TQCheckBox(i18n("Use remote host (Debian APT only):"),hh);
connect(huse, TQT_SIGNAL(clicked()), this, TQT_SLOT(useRemote()));
hosts = new KComboBox( true, hh, "combo" );
KCompletion *comp = hosts->completionObject();
TDECompletion *comp = hosts->completionObject();
connect(hosts,TQT_SIGNAL(returnPressed(const TQString&)),comp,TQT_SLOT(addItem(const TQString&)));
connect(hosts,TQT_SIGNAL(returnPressed()),this,TQT_SLOT(insHosts()));
hosts->setMaxCount(20);

@ -553,7 +553,7 @@ cUpdateLoc::cUpdateLoc(TQWidget *p, int panelNumber, pkgInterface *inter, const
TQVBoxLayout *vloc = new TQVBoxLayout(floc->layout());
combo[i] = new KComboBox( true, floc);
KCompletion *comp = combo[i]->completionObject();
TDECompletion *comp = combo[i]->completionObject();
connect(combo[i],TQT_SIGNAL(returnPressed(const TQString&))
,comp,TQT_SLOT(addItem(const TQString&)));
combo[i]->insertStringList(TQStringList::split(' ',*ocIt));

@ -387,7 +387,7 @@ void KSVContent::initScripts() {
// const TQFileInfoList *scriptList = scriptDir.entryInfoList();
TQFileInfoListIterator it (*scriptDir.entryInfoList());
KCompletion* comp = ksv::serviceCompletion();
TDECompletion* comp = ksv::serviceCompletion();
comp->clear ();
// clear the listview

@ -9,10 +9,10 @@
KSVSpinBox::KSVSpinBox (TQWidget* parent, const char* name)
: TQSpinBox (0, 99, 1, parent, name),
KCompletionBase (),
TDECompletionBase (),
mClearedSelection (false)
{
KCompletion* comp = ksv::numberCompletion();
TDECompletion* comp = ksv::numberCompletion();
setCompletionObject (comp, true);
editor()->installEventFilter (this);

@ -7,7 +7,7 @@
#include <kcompletion.h>
class KSVSpinBox : public TQSpinBox, public KCompletionBase
class KSVSpinBox : public TQSpinBox, public TDECompletionBase
{
Q_OBJECT

@ -121,16 +121,16 @@ TQStyleSheet* ksv::styleSheet ()
return &style;
}
KCompletion* ksv::serviceCompletion ()
TDECompletion* ksv::serviceCompletion ()
{
static KCompletion comp;
static TDECompletion comp;
return &comp;
}
KCompletion* ksv::numberCompletion ()
TDECompletion* ksv::numberCompletion ()
{
static KCompletion comp;
static TDECompletion comp;
static bool initialized = false;
if (!initialized)

@ -18,7 +18,7 @@
class TQPushButton;
class TQStyleSheet;
class TDEAboutData;
class KCompletion;
class TDECompletion;
class KSVItem;
namespace ksv
@ -40,8 +40,8 @@ namespace ksv
const TQString& logFileExtension ();
const TQString& nativeFileExtension ();
KCompletion* serviceCompletion ();
KCompletion* numberCompletion ();
TDECompletion* serviceCompletion ();
TDECompletion* numberCompletion ();
extern const int runlevelNumber;
extern TDEAboutData* about;

Loading…
Cancel
Save