diff options
Diffstat (limited to 'src/kconfigdlg.cpp')
-rw-r--r-- | src/kconfigdlg.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kconfigdlg.cpp b/src/kconfigdlg.cpp index 1507939..c5527e5 100644 --- a/src/kconfigdlg.cpp +++ b/src/kconfigdlg.cpp @@ -28,12 +28,12 @@ #include <kguiitem.h> #include "k9config.h" -kConfigDlg::kConfigDlg(QWidget *parent) - : configDlg(parent) +kConfigDlg::kConfigDlg(TQWidget *tqparent) + : configDlg(tqparent) { - QStringList ldev; - QStringList llabels; - QStringList lIO; + TQStringList ldev; + TQStringList llabels; + TQStringList lIO; tblDevices->setColumnWidth(0,150); tblDevices->setColumnWidth(1,210); tblDevices->setColumnWidth(2,40); @@ -45,11 +45,11 @@ kConfigDlg::kConfigDlg(QWidget *parent) llabels=config.getDevicesLabels(); lIO=config.getDevicesIO(); int row=0; - for ( QStringList::Iterator it = ldev.begin(); it != ldev.end(); ++it ) + for ( TQStringList::Iterator it = ldev.begin(); it != ldev.end(); ++it ) { tblDevices->setNumRows(row+1); tblDevices->setText(row,0,(*it)); - QStringList::Iterator it2=llabels.at(row); + TQStringList::Iterator it2=llabels.at(row); tblDevices->setText(row,1,(*it2)); row++; @@ -57,10 +57,10 @@ kConfigDlg::kConfigDlg(QWidget *parent) } for ( int j = 0; j < tblDevices->numRows(); ++j ) { - QCheckTableItem *I = new QCheckTableItem( tblDevices, "" ); - QCheckTableItem *O = new QCheckTableItem( tblDevices, "" ) ; - QStringList::Iterator it=lIO.at(j); - QString c=(*it); + TQCheckTableItem *I = new TQCheckTableItem( tblDevices, "" ); + TQCheckTableItem *O = new TQCheckTableItem( tblDevices, "" ) ; + TQStringList::Iterator it=lIO.at(j); + TQString c=(*it); if((c =="I") || (c =="IO")) I->setChecked(true); if((c =="O") || (c =="IO")) O->setChecked(true); tblDevices->setItem( j, 2, I ); @@ -85,8 +85,8 @@ kConfigDlg::~kConfigDlg() void kConfigDlg::bAddClick() { tblDevices->setNumRows(tblDevices->numRows()+1); - QCheckTableItem *I = new QCheckTableItem( tblDevices, "" ); - QCheckTableItem *O = new QCheckTableItem( tblDevices, "" ) ; + TQCheckTableItem *I = new TQCheckTableItem( tblDevices, "" ); + TQCheckTableItem *O = new TQCheckTableItem( tblDevices, "" ) ; tblDevices->setItem( tblDevices->numRows()-1, 2, I ); tblDevices->setItem( tblDevices->numRows()-1, 3, O); } @@ -103,26 +103,26 @@ void kConfigDlg::bRemoveClick() void kConfigDlg::save() { - QStringList ldev; - QStringList llabels; - QStringList lIO; + TQStringList ldev; + TQStringList llabels; + TQStringList lIO; //KSimpleConfig settings("K9Copy"); k9Config config; ldev.clear(); llabels.clear(); for (int i=0;i<tblDevices->numRows();i++) { - QString c=tblDevices->text(i,0); + TQString c=tblDevices->text(i,0); if (!c.isEmpty()) { - if (QFile::exists(c)) + if (TQFile::exists(c)) { ldev.append(tblDevices->text(i,0)); c=tblDevices->text(i,1); if (c.isEmpty()) c=tblDevices->text(i,0); llabels.append(c); - QCheckTableItem *I = (QCheckTableItem*)tblDevices->item(i,2); - QCheckTableItem *O = (QCheckTableItem*)tblDevices->item(i,3); + TQCheckTableItem *I = (TQCheckTableItem*)tblDevices->item(i,2); + TQCheckTableItem *O = (TQCheckTableItem*)tblDevices->item(i,3); if (O->isChecked() && I->isChecked()) { lIO.append("IO"); |