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();
setupPage10();
compGroup = new KCompletion();
compGroup = new TDECompletion();
enableControls();
setupSql();

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

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

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

@ -21,7 +21,7 @@
#include <tqwidget.h>
#include <kdialogbase.h>
class KCompletion;
class TDECompletion;
class KIntNumInput;
class KLineEdit;
@ -48,7 +48,7 @@ namespace DSSmallDialogs {
AddItemsDialog( 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;
const TQString articleNo() const;

Loading…
Cancel
Save