summaryrefslogtreecommitdiffstats
path: root/src/kconfigdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /src/kconfigdlg.cpp
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kconfigdlg.cpp')
-rw-r--r--src/kconfigdlg.cpp40
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");