diff options
author | Slávek Banko <[email protected]> | 2015-10-01 18:08:45 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2015-10-01 19:33:35 +0200 |
commit | 12348780ecc7d112ffdd8d4f4dc4ccd6a63f10e7 (patch) | |
tree | 94abc892aabb1f4e2eab0cf1ff028ddfba454d60 /src/apppropprg.cpp | |
parent | 77649eee774e6f71da886d5c72a616a0b46e08fa (diff) | |
download | kooldock-12348780ecc7d112ffdd8d4f4dc4ccd6a63f10e7.tar.gz kooldock-12348780ecc7d112ffdd8d4f4dc4ccd6a63f10e7.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/apppropprg.cpp')
-rw-r--r-- | src/apppropprg.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/apppropprg.cpp b/src/apppropprg.cpp index b806b67..ab20985 100644 --- a/src/apppropprg.cpp +++ b/src/apppropprg.cpp @@ -19,7 +19,7 @@ #include "appProp.h" #include "kooldock.h" -appPropPrg::appPropPrg(QWidget *parent, const char *name) +appPropPrg::appPropPrg(TQWidget *parent, const char *name) : appProp(parent, name) { @@ -32,10 +32,10 @@ appPropPrg::~appPropPrg() void appPropPrg::accept() { - QString icon; - QString desktop; - QString path; - QString puser; + TQString icon; + TQString desktop; + TQString path; + TQString puser; icon=iconbutton->icon(); desktop=cmdname->text(); @@ -70,14 +70,14 @@ void appPropPrg::accept() desktop.append(".desktop"); //To handle position - QString progPath = locateLocal("data", "kooldock"); - QDir dir(progPath + QString("/menu/")); - QString preffix; - QStringList fileList = dir.entryList("*.desktop"); + TQString progPath = locateLocal("data", "kooldock"); + TQDir dir(progPath + TQString("/menu/")); + TQString preffix; + TQStringList fileList = dir.entryList("*.desktop"); int pos=fileList.count(); - if(pos<10) preffix=QString("0%1_").arg(pos); - if(pos>=10) preffix=QString("%1_").arg(pos); + if(pos<10) preffix=TQString("0%1_").arg(pos); + if(pos>=10) preffix=TQString("%1_").arg(pos); desktop.prepend(preffix); //End handling position @@ -103,7 +103,7 @@ void appPropPrg::reject() this->hide(); } -void appPropPrg::closeEvent( QCloseEvent *e ) +void appPropPrg::closeEvent( TQCloseEvent *e ) { e->ignore(); reject(); @@ -111,9 +111,9 @@ void appPropPrg::closeEvent( QCloseEvent *e ) void appPropPrg::cmdfile_clicked() { - QString tmp; + TQString tmp; - QString fileToOpen=KFileDialog::getOpenFileName(QDir::currentDirPath(), "*.*", this, i18n("Open File")); + TQString fileToOpen=KFileDialog::getOpenFileName(TQDir::currentDirPath(), "*.*", this, i18n("Open File")); if (!fileToOpen.isEmpty()) { cmdpath->setText(fileToOpen); |