diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 14:59:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 14:59:42 -0600 |
commit | 05f8ba84ce33da849bceb4c068a58711fe40b5d4 (patch) | |
tree | f12f9e37994fcb21fca1488742a8324180e99a96 /kbarcode/batchwizard.cpp | |
parent | f1f618c34b558cbb9edf5ed4c2f4636b4b9c630e (diff) | |
download | kbarcode-05f8ba84ce33da849bceb4c068a58711fe40b5d4.tar.gz kbarcode-05f8ba84ce33da849bceb4c068a58711fe40b5d4.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kbarcode/batchwizard.cpp')
-rw-r--r-- | kbarcode/batchwizard.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kbarcode/batchwizard.cpp b/kbarcode/batchwizard.cpp index d71104e..17193a3 100644 --- a/kbarcode/batchwizard.cpp +++ b/kbarcode/batchwizard.cpp @@ -66,10 +66,10 @@ #define PNG_FORMAT "PNG" -class AddressListViewItem : public KListViewItem { +class AddressListViewItem : public TDEListViewItem { public: AddressListViewItem(TQListView *parent, KABC::Addressee & addr ) - : KListViewItem( parent ), m_address( addr ) + : TDEListViewItem( parent ), m_address( addr ) { this->setText( 0, m_address.givenName() ); this->setText( 1, m_address.familyName() ); @@ -308,13 +308,13 @@ void BatchWizard::setupStackPage1() buttonRemove = new KPushButton( i18n("&Remove" ), hButtonBox ); buttonRemoveAll = new KPushButton( i18n("R&emove All"), hButtonBox ); - KPopupMenu* mnuImport = new KPopupMenu( this ); + TDEPopupMenu* mnuImport = new TDEPopupMenu( this ); mnuImport->insertItem( i18n("Import from File ..."), this, TQT_SLOT( loadFromFile() ) ); mnuImport->insertItem( i18n("Import from Clipboard ..."), this, TQT_SLOT( loadFromClipboard() ) ); mnuImport->insertItem( i18n("Import barcode_basic"), this, TQT_SLOT( addAllItems() ) ); buttonImport->setPopup( mnuImport ); - sqlList = new KListView( stack1 ); + sqlList = new TDEListView( stack1 ); sqlList->addColumn( i18n("Index") ); sqlList->addColumn( i18n("Number of Labels") ); sqlList->addColumn( i18n("Article Number") ); @@ -360,7 +360,7 @@ void BatchWizard::setupStackPage2() box->setSpacing( 5 ); new TQLabel( i18n("Available Variables:"), box ); - m_varList = new KListBox( box ); + m_varList = new TDEListBox( box ); connect( radioImportManual, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); connect( radioImportSql, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); @@ -430,7 +430,7 @@ void BatchWizard::setupStackPage4() new TQLabel( i18n("All Addresses"), list1 ); new TQLabel( i18n("Selected Addresses"), list2 ); - listAddress = new KListView( list1 ); + listAddress = new TDEListView( list1 ); listAddress->addColumn( i18n("Given Name"), 0 ); listAddress->addColumn( i18n("Family Name"), 1 ); listAddress->addColumn( i18n("Email Address"), 2 ); @@ -441,7 +441,7 @@ void BatchWizard::setupStackPage4() listAddress->setColumnWidthMode( 1, TQListView::Maximum ); listAddress->setColumnWidthMode( 2, TQListView::Maximum ); - listSelectedAddress = new KListView( list2 ); + listSelectedAddress = new TDEListView( list2 ); listSelectedAddress->addColumn( i18n("Given Name"), 0 ); listSelectedAddress->addColumn( i18n("Family Name"), 1 ); listSelectedAddress->addColumn( i18n("Email Address"), 2 ); @@ -747,7 +747,7 @@ bool BatchWizard::addItem( const TQString & article, const TQString & group, int TQString temp; temp.sprintf("%0*i", 5, sqlList->childCount() + 1 ); - KListViewItem* item = new KListViewItem( sqlList, temp, TQString( "%1" ).arg( count ), + TDEListViewItem* item = new TDEListViewItem( sqlList, temp, TQString( "%1" ).arg( count ), article, group ); sqlList->insertItem( item ); @@ -857,7 +857,7 @@ void BatchWizard::addAllItems() while( query.next() ) { temp.sprintf("%0*i", 5, sqlList->childCount() + 1 ); - new KListViewItem( sqlList, temp, num, query.value( 0 ).toString(), group ); + new TDEListViewItem( sqlList, temp, num, query.value( 0 ).toString(), group ); } enableControls(); |