summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectnewlocal.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/project/projectnewlocal.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/projectnewlocal.cpp')
-rw-r--r--quanta/project/projectnewlocal.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/quanta/project/projectnewlocal.cpp b/quanta/project/projectnewlocal.cpp
index e037b662..e2d99d30 100644
--- a/quanta/project/projectnewlocal.cpp
+++ b/quanta/project/projectnewlocal.cpp
@@ -16,14 +16,14 @@
***************************************************************************/
// qt includes
-#include <qlabel.h>
-#include <qfileinfo.h>
-#include <qlistview.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
+#include <tqlabel.h>
+#include <tqfileinfo.h>
+#include <tqlistview.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
// kde includes
#include <klocale.h>
@@ -45,7 +45,7 @@
#include "resource.h"
#include "quantacommon.h"
-ProjectNewLocal::ProjectNewLocal(QWidget *parent, const char *name )
+ProjectNewLocal::ProjectNewLocal(TQWidget *parent, const char *name )
: ProjectNewLocalS(parent,name)
{
imagelabel->setPixmap( UserIcon("wiznewprjloc") );
@@ -59,13 +59,13 @@ ProjectNewLocal::ProjectNewLocal(QWidget *parent, const char *name )
checkInsertWeb->setChecked( true );
- connect( checkInsert, SIGNAL(toggled(bool)), this, SLOT(slotSetFiles(bool)));
- connect( checkInsertWeb, SIGNAL(toggled(bool)), this, SLOT(slotSetFiles(bool)));
- connect( checkInsertWithMask, SIGNAL(toggled(bool)), this, SLOT(slotSetFiles(bool)));
+ connect( checkInsert, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetFiles(bool)));
+ connect( checkInsertWeb, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetFiles(bool)));
+ connect( checkInsertWithMask, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetFiles(bool)));
- connect(addFiles, SIGNAL(clicked()),this,SLOT(slotAddFiles()));
- connect(addFolder, SIGNAL(clicked()),this,SLOT(slotAddFolder()));
- connect(clearList, SIGNAL(clicked()),this,SLOT(slotClearList()));
+ connect(addFiles, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotAddFiles()));
+ connect(addFolder, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotAddFolder()));
+ connect(clearList, TQT_SIGNAL(clicked()),this,TQT_SLOT(slotClearList()));
}
ProjectNewLocal::~ProjectNewLocal(){
@@ -86,8 +86,8 @@ KURL::List ProjectNewLocal::files()
//return fileList;
KURL::List r;
- QListViewItem *item;
- QListViewItemIterator it(listView);
+ TQListViewItem *item;
+ TQListViewItemIterator it(listView);
for ( ; it.current(); ++it )
{
item = it.current();
@@ -116,12 +116,12 @@ KURL::List ProjectNewLocal::projectFiles()
!baseURL.path().endsWith("/") ||
!checkInsert->isChecked() ) return list;
- QString fmask = "*";
+ TQString fmask = "*";
if ( checkInsertWeb->isChecked() )
{
KMimeType::List list = KMimeType::allMimeTypes();
KMimeType::List::iterator it;
- QString name;
+ TQString name;
fmask = "";
for ( it = list.begin(); it != list.end(); ++it )
{
@@ -130,7 +130,7 @@ KURL::List ProjectNewLocal::projectFiles()
qConfig.scriptMimeTypes.contains(name) ||
qConfig.imageMimeTypes.contains(name))
{
- QStringList patterns = (*it)->patterns();
+ TQStringList patterns = (*it)->patterns();
for (uint i = 0 ; i < patterns.count(); i++)
{
fmask = fmask+patterns[i]+" ";
@@ -159,7 +159,7 @@ void ProjectNewLocal::slotSetFiles(bool)
if ( !fileList.contains(files[i]))
{
fileList.append(files[i]);
- QListViewItem *it = listView->addItem(files[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
+ TQListViewItem *it = listView->addItem(files[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
if (it) it->setSelected(true);
progressBar->setValue(i);
}
@@ -171,7 +171,7 @@ void ProjectNewLocal::slotSetFiles(bool)
}
}
-void ProjectNewLocal::resizeEvent ( QResizeEvent *t )
+void ProjectNewLocal::resizeEvent ( TQResizeEvent *t )
{
ProjectNewLocalS::resizeEvent(t);
listView->setColumnWidth(0,listView->width()-listView->columnWidth(1)-20);
@@ -202,10 +202,10 @@ void ProjectNewLocal::slotAddFiles()
if ( !destination.isEmpty())
{
CopyTo *dlg = new CopyTo( baseURL);
- connect(dlg, SIGNAL(addFilesToProject(const KURL::List&)),
- SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
- connect(dlg, SIGNAL(deleteDialog(CopyTo *)),
- SLOT (slotDeleteCopyToDialog(CopyTo *)));
+ connect(dlg, TQT_SIGNAL(addFilesToProject(const KURL::List&)),
+ TQT_SLOT (slotInsertFilesAfterCopying(const KURL::List&)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo *)),
+ TQT_SLOT (slotDeleteCopyToDialog(CopyTo *)));
list = dlg->copy( list, destination );
return;
} else
@@ -222,7 +222,7 @@ void ProjectNewLocal::slotAddFiles()
if (!fileList.contains(list[i]))
{
fileList.append(list[i]);
- QListViewItem *it = listView->addItem(list[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
+ TQListViewItem *it = listView->addItem(list[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
if (it) it->setSelected(true);
progressBar->setValue(i);
}
@@ -263,10 +263,10 @@ void ProjectNewLocal::slotAddFolder()
if ( !destination.isEmpty())
{
CopyTo *dlg = new CopyTo( baseURL);
- connect(dlg, SIGNAL(addFilesToProject(const KURL::List&)),
- SLOT (slotInsertFolderAfterCopying(const KURL::List&)));
- connect(dlg, SIGNAL(deleteDialog(CopyTo *)),
- SLOT (slotDeleteCopyToDialog(CopyTo *)));
+ connect(dlg, TQT_SIGNAL(addFilesToProject(const KURL::List&)),
+ TQT_SLOT (slotInsertFolderAfterCopying(const KURL::List&)));
+ connect(dlg, TQT_SIGNAL(deleteDialog(CopyTo *)),
+ TQT_SLOT (slotDeleteCopyToDialog(CopyTo *)));
dirURL = dlg->copy(dirURL, destination);
return;
} else
@@ -304,7 +304,7 @@ void ProjectNewLocal::slotInsertFolderAfterCopying(const KURL::List& a_urlList)
{
fileList.append(u);
listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
- QListViewItem *it = listView->itemByUrl(u);
+ TQListViewItem *it = listView->itemByUrl(u);
if (it)
{
it->setSelected(true);
@@ -332,7 +332,7 @@ void ProjectNewLocal::slotInsertFilesAfterCopying(const KURL::List& a_urlList)
if ( !fileList.contains(u))
{
fileList.append(u);
- QListViewItem *it = listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
+ TQListViewItem *it = listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
if (it)
{
it->setSelected(true);