Rename KComp to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent abbc06820c
commit 010b0e260e

@ -96,7 +96,7 @@ BatchWizard::BatchWizard( TQWidget* parent, const char* name )
setupPage5(); setupPage5();
setupPage10(); setupPage10();
compGroup = new KCompletion(); compGroup = new TDECompletion();
enableControls(); enableControls();
setupSql(); setupSql();

@ -24,7 +24,7 @@
class BatchPrinter; class BatchPrinter;
class EncodingCombo; class EncodingCombo;
class KComboBox; class KComboBox;
class KCompletion; class TDECompletion;
class KIntNumInput; class KIntNumInput;
class KLineEdit; class KLineEdit;
class TDEListBox; class TDEListBox;
@ -231,7 +231,7 @@ class BatchWizard : public KWizard, public BatchIface {
KComboBox* comboFormat; KComboBox* comboFormat;
EncodingCombo* comboEncoding; EncodingCombo* comboEncoding;
KCompletion* compGroup; TDECompletion* compGroup;
KIntNumInput* serialInc; KIntNumInput* serialInc;
KIntNumInput* numLabels; KIntNumInput* numLabels;

@ -65,7 +65,7 @@ PreviewDialog::PreviewDialog( TQIODevice* device, Definition* d, TQString filena
groupName = new KLineEdit( group, this ); groupName = new KLineEdit( group, this );
articleId = new KLineEdit( article, this ); articleId = new KLineEdit( article, this );
if( SqlTables::isConnected() ) { if( SqlTables::isConnected() ) {
KCompletion* comp = articleId->completionObject(); TDECompletion* comp = articleId->completionObject();
TQSqlQuery query( "select article_no from barcode_basic" ); TQSqlQuery query( "select article_no from barcode_basic" );
TQStringList slist; TQStringList slist;
while ( query.next() ) while ( query.next() )

@ -118,7 +118,7 @@ void AddItemsDialog::setupSql()
if( !tables->isConnected() ) if( !tables->isConnected() )
return; return;
KCompletion* comp = article->completionObject(); TDECompletion* comp = article->completionObject();
comp->clear(); comp->clear();
TQSqlQuery query( "select article_no from " TABLE_BASIC " order by article_no" ); TQSqlQuery query( "select article_no from " TABLE_BASIC " order by article_no" );
TQStringList slist; TQStringList slist;
@ -128,7 +128,7 @@ void AddItemsDialog::setupSql()
comp->setItems( slist ); comp->setItems( slist );
} }
void AddItemsDialog::setGroupCompletion( KCompletion* c ) void AddItemsDialog::setGroupCompletion( TDECompletion* c )
{ {
group->setCompletionObject( c ); group->setCompletionObject( c );
} }

@ -21,7 +21,7 @@
#include <tqwidget.h> #include <tqwidget.h>
#include <kdialogbase.h> #include <kdialogbase.h>
class KCompletion; class TDECompletion;
class KIntNumInput; class KIntNumInput;
class KLineEdit; class KLineEdit;
@ -48,7 +48,7 @@ namespace DSSmallDialogs {
AddItemsDialog( TQWidget* parent = 0, const char* name = 0 ); AddItemsDialog( TQWidget* parent = 0, const char* name = 0 );
AddItemsDialog( const TQString & a, const TQString & g, int c, TQWidget* parent = 0, const char* name = 0 ); AddItemsDialog( const TQString & a, const TQString & g, int c, TQWidget* parent = 0, const char* name = 0 );
void setGroupCompletion( KCompletion* c ); void setGroupCompletion( TDECompletion* c );
int count() const; int count() const;
const TQString articleNo() const; const TQString articleNo() const;

Loading…
Cancel
Save