summaryrefslogtreecommitdiffstats
path: root/parts/distpart/distpart_widget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/distpart/distpart_widget.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/distpart/distpart_widget.cpp')
-rw-r--r--parts/distpart/distpart_widget.cpp246
1 files changed, 123 insertions, 123 deletions
diff --git a/parts/distpart/distpart_widget.cpp b/parts/distpart/distpart_widget.cpp
index 7942776a..eebbbe36 100644
--- a/parts/distpart/distpart_widget.cpp
+++ b/parts/distpart/distpart_widget.cpp
@@ -33,61 +33,61 @@
#include <kmessagebox.h>
#include <kdevcore.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qnetwork.h>
-#include <qurloperator.h>
-#include <qmessagebox.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqnetwork.h>
+#include <tqurloperator.h>
+#include <tqmessagebox.h>
#include "distpart_part.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qstringlist.h>
-#include <qtabwidget.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
+#include <tqtabwidget.h>
#include "kdevmakefrontend.h"
#include <kprogress.h>
-#include <qerrormessage.h>
+#include <tqerrormessage.h>
#include "specsupport.h"
#include "lsmsupport.h"
-DistpartDialog::DistpartDialog(DistpartPart *part, QWidget *parent)
+DistpartDialog::DistpartDialog(DistpartPart *part, TQWidget *parent)
:distpart_ui(parent, "dist_widget"), m_part(part) {
m_spec = new SpecSupport(m_part);
- connect( customProjectCheckBox, SIGNAL(toggled(bool) ),
- this, SLOT(slotcustomProjectCheckBoxChanged()));
- connect( uploadCustomCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotuploadCustomCheckBoxChanged()));
-
-// connect( okayPushButton, SIGNAL(clicked()),
-// this, SLOT(slotokayPushButtonPressed()));
-// connect( cancelPushButton, SIGNAL(clicked()),
-// this, SLOT(slotcancelPushButtonPressed()));
-/* connect(help_PushButton, SIGNAL(clicked()),
- this, SLOT(slothelp_PushButtonPressed()));*/
- connect( createSrcArchPushButton, SIGNAL(clicked()),
- this, SLOT(slotcreateSrcArchPushButtonPressed()));
- connect( resetSrcPushButton, SIGNAL(clicked()),
- this, SLOT(slotresetSrcPushButtonPressed()));
-
- connect( genHTMLPushButton, SIGNAL(clicked()),
- this, SLOT(slotgenHTMLPushButtonPressed()));
- connect( resetHTMLPushButton, SIGNAL(clicked()),
- this, SLOT(slotresetHTMLPushButtonPressed()));
- connect( uploadSubmitPushButton, SIGNAL(clicked()),
- this, SLOT(slotuploadSubmitPushButtonPressed()));
- connect( uploadResetPushButton, SIGNAL(clicked()),
- this, SLOT(slotuploadResetPushButtonPressed()));
- connect( uploadAddFileToolButton, SIGNAL(clicked()),
- this, SLOT(slotuploadAddFileToolButtonPressed()));
- connect( uploadRemoveToolButton, SIGNAL(clicked()),
- this, SLOT(slotuploadRemoveToolButtonPressed()));
- connect ( srcDistFileListBox, SIGNAL(clicked(QListBoxItem *item)), this, SLOT(slotRemoveFile(QListBoxItem *item)));
-// connect( buildAllPushButton, SIGNAL( clicked() ), this, SLOT( slotbuildAllPushButtonPressed() ));
-// connect( exportSPECPushButton, SIGNAL( clicked() ), this, SLOT( slotexportSPECPushButtonPressed( ) ) );
-// connect( srcPackagePushButton, SIGNAL( clicked() ), this, SLOT( slotsrcPackagePushButtonPressed() ) );
-// connect( importSPECPushButton, SIGNAL( clicked() ), this, SLOT( slotimportSPECPushButtonPressed() ) );
+ connect( customProjectCheckBox, TQT_SIGNAL(toggled(bool) ),
+ this, TQT_SLOT(slotcustomProjectCheckBoxChanged()));
+ connect( uploadCustomCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotuploadCustomCheckBoxChanged()));
+
+// connect( okayPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotokayPushButtonPressed()));
+// connect( cancelPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotcancelPushButtonPressed()));
+/* connect(help_PushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slothelp_PushButtonPressed()));*/
+ connect( createSrcArchPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotcreateSrcArchPushButtonPressed()));
+ connect( resetSrcPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotresetSrcPushButtonPressed()));
+
+ connect( genHTMLPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotgenHTMLPushButtonPressed()));
+ connect( resetHTMLPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotresetHTMLPushButtonPressed()));
+ connect( uploadSubmitPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadSubmitPushButtonPressed()));
+ connect( uploadResetPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadResetPushButtonPressed()));
+ connect( uploadAddFileToolButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadAddFileToolButtonPressed()));
+ connect( uploadRemoveToolButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadRemoveToolButtonPressed()));
+ connect ( srcDistFileListBox, TQT_SIGNAL(clicked(TQListBoxItem *item)), this, TQT_SLOT(slotRemoveFile(TQListBoxItem *item)));
+// connect( buildAllPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotbuildAllPushButtonPressed() ));
+// connect( exportSPECPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotexportSPECPushButtonPressed( ) ) );
+// connect( srcPackagePushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotsrcPackagePushButtonPressed() ) );
+// connect( importSPECPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotimportSPECPushButtonPressed() ) );
loadSettings();
@@ -103,39 +103,39 @@ DistpartDialog::DistpartDialog(DistpartPart *part, QWidget *parent)
DistpartDialog::~DistpartDialog() {
}
-// QPushButton* okayPushButton;
+// TQPushButton* okayPushButton;
void DistpartDialog::slotokayPushButtonPressed() {
storeSettings();
// accept();
}
-// QPushButton* cancelPushButton;
+// TQPushButton* cancelPushButton;
void DistpartDialog::slotcancelPushButtonPressed() {
// reject();
}
-// QPushButton* help_PushButton;
+// TQPushButton* help_PushButton;
/*void DistpartDialog::slothelp_PushButtonPressed() {
- QMessageBox::about(this,i18n("Distpart Help"),i18n("In order to build a RPM package :\n\t1) Create a source archive\n\t2) Generate a SPEC File\n\t3) Build the package"));
+ TQMessageBox::about(this,i18n("Distpart Help"),i18n("In order to build a RPM package :\n\t1) Create a source archive\n\t2) Generate a SPEC File\n\t3) Build the package"));
}*/
-// QPushButton* createSrcArchPushButton;
+// TQPushButton* createSrcArchPushButton;
void DistpartDialog::slotcreateSrcArchPushButtonPressed() {
kdDebug() << "Starting archive..." << endl;
- QString dist = (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? "application/x-bzip2" : "application/x-gzip";
+ TQString dist = (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? "application/x-bzip2" : "application/x-gzip";
- QString filename = m_part->project()->projectDirectory() + "/" + getSourceName();
+ TQString filename = m_part->project()->projectDirectory() + "/" + getSourceName();
KTar tar(filename, dist);
if ( tar.open(IO_WriteOnly) )
{
- //QStringList files = m_part->project()->distFiles();
+ //TQStringList files = m_part->project()->distFiles();
KProgressDialog *prog = new KProgressDialog( 0, "dialog", i18n("Building Package"), "", true );
prog->show();
for( uint idx = 0; idx < srcDistFileListBox->numRows(); ++idx)
{
- QString file = srcDistFileListBox->text(idx);
+ TQString file = srcDistFileListBox->text(idx);
if ( !tar.addLocalFile( m_part->project()->projectDirectory() + "/" + file, getappNameFormatLineEditText() + "/" + file) )
{
kdDebug() << "Failed to write file " << file << endl;
@@ -159,7 +159,7 @@ void DistpartDialog::slotcreateSrcArchPushButtonPressed() {
}
-// QPushButton* resetSrcPushButton;
+// TQPushButton* resetSrcPushButton;
void DistpartDialog::slotresetSrcPushButtonPressed() {
srcDistFileListBox->clear();
loadSettings();
@@ -167,24 +167,24 @@ void DistpartDialog::slotresetSrcPushButtonPressed() {
-// QPushButton* genHTMLPushButton;
+// TQPushButton* genHTMLPushButton;
void DistpartDialog::slotgenHTMLPushButtonPressed() {}
-// QPushButton* resetHTMLPushButton;
+// TQPushButton* resetHTMLPushButton;
void DistpartDialog::slotresetHTMLPushButtonPressed() {}
-// QToolButton* uploadAddFileToolButton;
+// TQToolButton* uploadAddFileToolButton;
void DistpartDialog::slotuploadAddFileToolButtonPressed() {
uploadFileListBox->insertStringList(KFileDialog::getOpenFileNames());
}
-// QToolButton* uploadRemoveToolButton;
+// TQToolButton* uploadRemoveToolButton;
void DistpartDialog::slotuploadRemoveToolButtonPressed() {
for(unsigned int i=0; i< uploadFileListBox->count(); i++)
if ( uploadFileListBox->isSelected(i)) uploadFileListBox->removeItem(i);
}
-// QPushButton* uploadSubmitPushButton;
+// TQPushButton* uploadSubmitPushButton;
void DistpartDialog::slotuploadSubmitPushButtonPressed() {
if(getuploadftpkdeorgCheckBoxState() || getuploadAppsKDEcomCheckBoxState())
@@ -192,11 +192,11 @@ void DistpartDialog::slotuploadSubmitPushButtonPressed() {
else {
for(unsigned int i=0; i< uploadFileListBox->count(); i++)
KIO::NetAccess::copy(KURL::fromPathOrURL( uploadFileListBox->text(i) ),
- KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(QRegExp("[^/]*/"),"") ));
+ KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(TQRegExp("[^/]*/"),"") ));
}
}
-// QPushButton* uploadResetPushButton;
+// TQPushButton* uploadResetPushButton;
void DistpartDialog::slotuploadResetPushButtonPressed() {
uploadFileListBox->clear();
}
@@ -205,7 +205,7 @@ void DistpartDialog::slotuploadResetPushButtonPressed() {
// accessors and mutators
-// QCheckBox* customProjectCheckBox;
+// TQCheckBox* customProjectCheckBox;
void DistpartDialog::slotcustomProjectCheckBoxChanged() {
kdDebug () << "New State" << customProjectCheckBox->isChecked() << endl;
sourceOptionsGroupBox->setEnabled( customProjectCheckBox->isChecked());
@@ -219,7 +219,7 @@ void DistpartDialog::setcustomProjectCheckBoxState(bool state) {
customProjectCheckBox->setChecked(state);
}
-// QCheckBox* uploadCustomCheckBox;
+// TQCheckBox* uploadCustomCheckBox;
void DistpartDialog::slotuploadCustomCheckBoxChanged() {
uploadURLLineEdit->setEnabled( uploadCustomCheckBox->isChecked());
}
@@ -234,7 +234,7 @@ void DistpartDialog::setuploadCustomCheckBoxState(bool state) {
// Add accessors and mutators for the following
-// QCheckBox* bzipCheckBox;
+// TQCheckBox* bzipCheckBox;
bool DistpartDialog::getbzipCheckBoxState() {
return bzipCheckBox->isChecked();
}
@@ -243,7 +243,7 @@ void DistpartDialog::setbzipCheckBoxState(bool state) {
bzipCheckBox->setChecked(state);
}
-// QCheckBox* appIconCheckBox;
+// TQCheckBox* appIconCheckBox;
bool DistpartDialog::getappIconCheckBoxState() {
return appIconCheckBox->isChecked();
}
@@ -252,7 +252,7 @@ void DistpartDialog::setappIconCheckBoxState(bool state) {
appIconCheckBox->setChecked(state);
}
-// QCheckBox* genHTMLCheckBox;
+// TQCheckBox* genHTMLCheckBox;
bool DistpartDialog::getgenHTMLCheckBoxState() {
return genHTMLCheckBox->isChecked();
}
@@ -261,7 +261,7 @@ void DistpartDialog::setgenHTMLCheckBoxState(bool state) {
genHTMLCheckBox->setChecked(state);
}
-// QCheckBox* useRPMInfoCheckBox;
+// TQCheckBox* useRPMInfoCheckBox;
bool DistpartDialog::getuseRPMInfoCheckBoxState() {
return useRPMInfoCheckBox->isChecked();
}
@@ -270,7 +270,7 @@ void DistpartDialog::setuseRPMInfoCheckBoxState(bool state) {
useRPMInfoCheckBox->setChecked(state);
}
-// QCheckBox* uploadAppsKDEcomCheckBox;
+// TQCheckBox* uploadAppsKDEcomCheckBox;
bool DistpartDialog::getuploadAppsKDEcomCheckBoxState() {
return uploadAppsKDEcomCheckBox->isChecked();
}
@@ -279,7 +279,7 @@ void DistpartDialog::setuploadAppsKDEcomCheckBoxState(bool state) {
uploadAppsKDEcomCheckBox->setChecked(state);
}
-// QCheckBox* uploadftpkdeorgCheckBox;
+// TQCheckBox* uploadftpkdeorgCheckBox;
bool DistpartDialog::getuploadftpkdeorgCheckBoxState() {
return uploadftpkdeorgCheckBox->isChecked();
}
@@ -288,7 +288,7 @@ void DistpartDialog::setuploadftpkdeorgCheckBoxState(bool state) {
uploadftpkdeorgCheckBox->setChecked(state);
}
-// QCheckBox* devPackageCheckBox;
+// TQCheckBox* devPackageCheckBox;
bool DistpartDialog::getdevPackageCheckBoxState() {
return devPackageCheckBox->isChecked();
}
@@ -297,7 +297,7 @@ void DistpartDialog::setdevPackageCheckBoxState(bool state) {
devPackageCheckBox->setChecked(state);
}
-// QCheckBox* docsPackageCheckBox;
+// TQCheckBox* docsPackageCheckBox;
bool DistpartDialog::getdocsPackageCheckBoxState() {
return docsPackageCheckBox->isChecked();
}
@@ -306,98 +306,98 @@ void DistpartDialog::setdocsPackageCheckBoxState(bool state) {
docsPackageCheckBox->setChecked(state);
}
-// QLineEdit* archNameFormatLineEdit;
-QString DistpartDialog::getarchNameFormatLineEditText() {
+// TQLineEdit* archNameFormatLineEdit;
+TQString DistpartDialog::getarchNameFormatLineEditText() {
return archNameFormatLineEdit->text();
}
-void DistpartDialog::setarchNameFormatLineEditText(QString text) {
+void DistpartDialog::setarchNameFormatLineEditText(TQString text) {
archNameFormatLineEdit->setText(text);
}
-// QLineEdit* appNameLineEdit;
-QString DistpartDialog::getappNameFormatLineEditText() {
+// TQLineEdit* appNameLineEdit;
+TQString DistpartDialog::getappNameFormatLineEditText() {
return appNameLineEdit->text();
}
-void DistpartDialog::setappNameFormatLineEditText(QString text) {
+void DistpartDialog::setappNameFormatLineEditText(TQString text) {
appNameLineEdit->setText(text);
}
-// QLineEdit* summaryLineEdit;
-QString DistpartDialog::getsummaryLineEditText() {
+// TQLineEdit* summaryLineEdit;
+TQString DistpartDialog::getsummaryLineEditText() {
return summaryLineEdit->text();
}
-void DistpartDialog::setsummaryLineEditText(QString text) {
+void DistpartDialog::setsummaryLineEditText(TQString text) {
summaryLineEdit->setText(text);
}
-// QLineEdit* groupLineEdit;
-QString DistpartDialog::getgroupLineEditText() {
+// TQLineEdit* groupLineEdit;
+TQString DistpartDialog::getgroupLineEditText() {
return groupLineEdit->text();
}
-void DistpartDialog::setgroupLineEditText(QString text) {
+void DistpartDialog::setgroupLineEditText(TQString text) {
groupLineEdit->setText(text);
}
-// QLineEdit* releaseLineEdit;
-QString DistpartDialog::getreleaseLineEditText() {
+// TQLineEdit* releaseLineEdit;
+TQString DistpartDialog::getreleaseLineEditText() {
return releaseLineEdit->text();
}
-void DistpartDialog::setreleaseLineEditText(QString text) {
+void DistpartDialog::setreleaseLineEditText(TQString text) {
releaseLineEdit->setText(text);
}
-// QLineEdit* VersionLineEdit;
-QString DistpartDialog::getversionLineEditText() {
+// TQLineEdit* VersionLineEdit;
+TQString DistpartDialog::getversionLineEditText() {
return versionLineEdit->text();
}
-void DistpartDialog::setversionLineEditText(QString text) {
+void DistpartDialog::setversionLineEditText(TQString text) {
versionLineEdit->setText( text );
}
-// QLineEdit* VendorLineEdit;
-QString DistpartDialog::getvendorLineEditText() {
+// TQLineEdit* VendorLineEdit;
+TQString DistpartDialog::getvendorLineEditText() {
return vendorLineEdit->text();
}
-void DistpartDialog::setvendorLineEditText(QString text) {
+void DistpartDialog::setvendorLineEditText(TQString text) {
vendorLineEdit->setText(text);
}
-// QLineEdit* LicenseLineEdit;
-QString DistpartDialog::getlicenseLineEditText() {
+// TQLineEdit* LicenseLineEdit;
+TQString DistpartDialog::getlicenseLineEditText() {
return licenseLineEdit->text();
}
-void DistpartDialog::setlicenseLineEditText(QString text) {
+void DistpartDialog::setlicenseLineEditText(TQString text) {
licenseLineEdit->setText(text);
}
-// QLineEdit* uploadURLLineEdit;
-QString DistpartDialog::getuploadURLLineEditText() {
+// TQLineEdit* uploadURLLineEdit;
+TQString DistpartDialog::getuploadURLLineEditText() {
return uploadURLLineEdit->text();
}
-void DistpartDialog::setuploadURLLineEditText(QString text) {
+void DistpartDialog::setuploadURLLineEditText(TQString text) {
uploadURLLineEdit->setText(text);
}
-// QLineEdit* PackagerLineEdit;
-QString DistpartDialog::getpackagerLineEditText() {
+// TQLineEdit* PackagerLineEdit;
+TQString DistpartDialog::getpackagerLineEditText() {
return packagerLineEdit->text();
}
-void DistpartDialog::setpackagerLineEditText(QString text) {
+void DistpartDialog::setpackagerLineEditText(TQString text) {
packagerLineEdit->setText(text);
}
-// QComboBox* archComboBox;
-QString DistpartDialog::getarchComboBoxText() {
+// TQComboBox* archComboBox;
+TQString DistpartDialog::getarchComboBoxText() {
return archComboBox->currentText();
}
@@ -409,8 +409,8 @@ void DistpartDialog::setarchComboBoxItem(int item) {
archComboBox->setCurrentItem( item );
}
-// QListBox* uploadFileListBox;
-QString DistpartDialog::getuploadFileListBoxText() {
+// TQListBox* uploadFileListBox;
+TQString DistpartDialog::getuploadFileListBoxText() {
return uploadFileListBox->currentText();
}
@@ -422,8 +422,8 @@ void DistpartDialog::setuploadFileListBoxItem(int item) {
uploadFileListBox->setCurrentItem( item);
}
-// QListBox* srcDistFileListBox;
-QString DistpartDialog::getsrcDistFileListBoxText() {
+// TQListBox* srcDistFileListBox;
+TQString DistpartDialog::getsrcDistFileListBoxText() {
return srcDistFileListBox->currentText ();
}
@@ -435,33 +435,33 @@ void DistpartDialog::setsrcDistFileListBoxItem(int item) {
srcDistFileListBox->setCurrentItem( item );
}
-// QMultiLineEdit* projectDescriptionMultilineEdit;
-QString DistpartDialog::getprojectDescriptionMultilineEditText() {
+// TQMultiLineEdit* projectDescriptionMultilineEdit;
+TQString DistpartDialog::getprojectDescriptionMultilineEditText() {
return projectDescriptionMultilineEdit->text();
}
-void DistpartDialog::setprojectDescriptionMultilineEditText(QString text) {
+void DistpartDialog::setprojectDescriptionMultilineEditText(TQString text) {
projectDescriptionMultilineEdit->setText(text);
}
-QString DistpartDialog::getprojectChangelogMultilineEditText() {
+TQString DistpartDialog::getprojectChangelogMultilineEditText() {
return projectChangelogMultilineEdit->text();
}
-void DistpartDialog::setprojectChangelogMultilineEditText(QString text) {
+void DistpartDialog::setprojectChangelogMultilineEditText(TQString text) {
projectChangelogMultilineEdit->setText(text);
}
-QString DistpartDialog::getSourceName() {
- QString name = (getcustomProjectCheckBoxState()) ? getarchNameFormatLineEditText() : QString("%n-%v");
+TQString DistpartDialog::getSourceName() {
+ TQString name = (getcustomProjectCheckBoxState()) ? getarchNameFormatLineEditText() : TQString("%n-%v");
name += (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? ".tar.bz2" : ".tar.gz";
- return name.replace(QRegExp("%n"),getappNameFormatLineEditText())
- .replace(QRegExp("%v"),getversionLineEditText())
- .replace(QRegExp("%d"),QDate::currentDate().toString("yyyyMMdd"));
+ return name.replace(TQRegExp("%n"),getappNameFormatLineEditText())
+ .replace(TQRegExp("%v"),getversionLineEditText())
+ .replace(TQRegExp("%d"),TQDate::currentDate().toString("yyyyMMdd"));
}
void DistpartDialog::loadSettings() {
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
srcDistFileListBox->insertStringList( m_part->project()->distFiles() );
@@ -499,7 +499,7 @@ void DistpartDialog::loadSettings() {
}
void DistpartDialog::storeSettings() {
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
// First Tab
DomUtil::writeBoolEntry(dom,"/dist/custom",getcustomProjectCheckBoxState());
@@ -584,14 +584,14 @@ void DistpartDialog::slotsrcPackagePushButtonPressed( )
void DistpartDialog::slotAddFileButtonPressed(){
- QStringList filenames = KFileDialog::getOpenFileNames();
+ TQStringList filenames = KFileDialog::getOpenFileNames();
for(uint count =0; count< filenames.size(); count++){
- QString base = m_part->project()->projectDirectory() +"/";
+ TQString base = m_part->project()->projectDirectory() +"/";
srcDistFileListBox->insertItem(filenames[count].remove(base));
}
}
-void DistpartDialog::slotRemoveFile(QListBoxItem *item){
+void DistpartDialog::slotRemoveFile(TQListBoxItem *item){
if ( KMessageBox::Yes == KMessageBox::warningYesNo( this, i18n("Remove %1").arg( item->text() ), i18n("Remove File") )){
for(uint count =0; count< srcDistFileListBox->numRows(); count++){
if ( item == srcDistFileListBox->item(count)){