summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 03:03:11 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-17 03:03:11 +0000
commita2bae01d006ea8053e85bc16d09a8cf40a4b0b75 (patch)
tree7f2b2a1d90d0d5fbcbf23e06962192923058e0ad /quanta/treeviews
parent4e0c064056c23aabc053dc4a54d82ff1dceaf6a9 (diff)
downloadtdewebdev-a2bae01d006ea8053e85bc16d09a8cf40a4b0b75.tar.gz
tdewebdev-a2bae01d006ea8053e85bc16d09a8cf40a4b0b75.zip
Fix kdewebdev FTBFS under Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews')
-rw-r--r--quanta/treeviews/basetreeview.cpp6
-rw-r--r--quanta/treeviews/filestreeview.cpp6
-rw-r--r--quanta/treeviews/projecttreeview.cpp8
-rw-r--r--quanta/treeviews/servertreeview.cpp4
-rw-r--r--quanta/treeviews/structtreeview.cpp6
-rw-r--r--quanta/treeviews/tagattributeitems.cpp4
-rw-r--r--quanta/treeviews/templatestreeview.cpp8
7 files changed, 21 insertions, 21 deletions
diff --git a/quanta/treeviews/basetreeview.cpp b/quanta/treeviews/basetreeview.cpp
index efe8bb69..ba35ab61 100644
--- a/quanta/treeviews/basetreeview.cpp
+++ b/quanta/treeviews/basetreeview.cpp
@@ -1036,7 +1036,7 @@ void BaseTreeView::doRename(KFileTreeViewItem* kftvi, const TQString & newName)
if ( oldURL != newURL )
{
bool proceed = true;
- if (TQExtFileInfo::exists(newURL, false, this))
+ if (QExtFileInfo::exists(newURL, false, this))
{
proceed = KMessageBox::warningContinueCancel(this, i18n("<qt>The file <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>").tqarg(newURL.prettyURL(0, KURL::StripFileProtocol)),i18n("Overwrite"), i18n("Overwrite")) == KMessageBox::Continue;
}
@@ -1159,7 +1159,7 @@ void BaseTreeView::slotCreateSiteTemplate()
bool error = false;
if (tar.open(IO_WriteOnly))
{
- KURL::List fileList = TQExtFileInfo::allFiles(url, "*", this);
+ KURL::List fileList = QExtFileInfo::allFiles(url, "*", this);
for (KURL::List::Iterator it = fileList.begin(); it != fileList.end(); ++it)
{
if (!(*it).path().endsWith("/"))
@@ -1214,7 +1214,7 @@ void BaseTreeView::slotCreateFile()
url.setPath(url.path() + "/" + fileName);
else
url.setPath(url.directory() + "/" + fileName);
- if (TQExtFileInfo::exists(url, false, this))
+ if (QExtFileInfo::exists(url, false, this))
{
KMessageBox::error(this, i18n("<qt>Cannot create file, because a file named <b>%1</b> already exists.</qt>").tqarg(fileName), i18n("Error Creating File"));
return;
diff --git a/quanta/treeviews/filestreeview.cpp b/quanta/treeviews/filestreeview.cpp
index 7d7146e2..6aaca415 100644
--- a/quanta/treeviews/filestreeview.cpp
+++ b/quanta/treeviews/filestreeview.cpp
@@ -77,7 +77,7 @@ FilesTreeView::FilesTreeView(KConfig *config, TQWidget *tqparent, const char *na
if (!topURLList.tqcontains(url))
topURLList.append(url);
url = KURL();
- url.setPath(TQExtFileInfo::homeDirPath() + "/");
+ url.setPath(QExtFileInfo::homeDirPath() + "/");
if (!topURLList.tqcontains(url))
topURLList.append(url);
}
@@ -153,7 +153,7 @@ KFileTreeBranch* FilesTreeView::newBranch(const KURL& url)
newBrnch = new BaseTreeBranch(this, url, i18n("Root Folder"), SmallIcon(fileItem.iconName()), true);
} else
{
- if (url.isLocalFile() && url.equals(KURL(TQExtFileInfo::homeDirPath() + "/"), true))
+ if (url.isLocalFile() && url.equals(KURL(QExtFileInfo::homeDirPath() + "/"), true))
{
newBrnch = new BaseTreeBranch(this, url, i18n("Home Folder"), SmallIcon(fileItem.iconName()), true);
} else
@@ -218,7 +218,7 @@ void FilesTreeView::slotMenu(KListView* listView, TQListViewItem *item, const TQ
m_folderMenu->setItemVisible(m_menuFolderRename, false);
m_config->setGroup("General Options");
- if ((url == KURL("file:/") || url == KURL("file:" + TQExtFileInfo::homeDirPath() + "/")) &&
+ if ((url == KURL("file:/") || url == KURL("file:" + QExtFileInfo::homeDirPath() + "/")) &&
m_config->readBoolEntry("Home-Root Folder On", true) )
m_folderMenu ->setItemVisible(m_menuTop, false);
m_folderMenu ->setItemVisible(m_reloadMenuId, true);
diff --git a/quanta/treeviews/projecttreeview.cpp b/quanta/treeviews/projecttreeview.cpp
index 3068fb55..21c3f345 100644
--- a/quanta/treeviews/projecttreeview.cpp
+++ b/quanta/treeviews/projecttreeview.cpp
@@ -380,7 +380,7 @@ void ProjectTreeView::slotCreateFolder()
url.setPath(url.path() + "/" + folderName + "/");
else
url.setPath(url.directory() + "/" + folderName +"/");
- if (TQExtFileInfo::createDir(url, this))
+ if (QExtFileInfo::createDir(url, this))
{
emit insertToProject(url);
}
@@ -398,7 +398,7 @@ void ProjectTreeView::slotCreateFile()
url.setPath(url.path() + "/" + fileName);
else
url.setPath(url.directory() + "/" + fileName);
- if (TQExtFileInfo::exists(url, false, this))
+ if (QExtFileInfo::exists(url, false, this))
{
KMessageBox::error(this, i18n("<qt>Cannot create file, because a file named <b>%1</b> already exists.</qt>").tqarg(fileName), i18n("Error Creating File"));
return;
@@ -406,7 +406,7 @@ void ProjectTreeView::slotCreateFile()
KTempFile *tempFile = new KTempFile(tmpDir);
tempFile->setAutoDelete(true);
tempFile->close();
- if (TQExtFileInfo::copy(KURL::fromPathOrURL(tempFile->name()), url))
+ if (QExtFileInfo::copy(KURL::fromPathOrURL(tempFile->name()), url))
{
emit insertToProject(url);
emit openFile(url);
@@ -422,7 +422,7 @@ void ProjectTreeView::slotRemoveFromProject(int askForRemove)
if (item)
{
KURL url = currentURL();
- TQString nice = TQExtFileInfo::toRelative(url, m_projectBaseURL).path();
+ TQString nice = QExtFileInfo::toRelative(url, m_projectBaseURL).path();
nice = KStringHandler::lsqueeze(nice, 60);
if ( !askForRemove ||
KMessageBox::warningContinueCancel(this,i18n("<qt>Do you really want to remove <br><b>%1</b><br> from the project?</qt>").tqarg(nice), i18n("Remove From Project"), KStdGuiItem::remove(), "RemoveFromProject") == KMessageBox::Continue )
diff --git a/quanta/treeviews/servertreeview.cpp b/quanta/treeviews/servertreeview.cpp
index 3d410c03..1543c37d 100644
--- a/quanta/treeviews/servertreeview.cpp
+++ b/quanta/treeviews/servertreeview.cpp
@@ -47,8 +47,8 @@ void ServerTreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,
TQColorGroup _cg( cg );
KURL baseURL = Project::ref()->projectBaseURL();
KURL relURL = baseURL;
- relURL.setPath(TQExtFileInfo::toRelative(url(), branch()->url()).path());
- KURL url = TQExtFileInfo::toAbsolute(relURL, baseURL);
+ relURL.setPath(QExtFileInfo::toRelative(url(), branch()->url()).path());
+ KURL url = QExtFileInfo::toAbsolute(relURL, baseURL);
if ( !Project::ref()->tqcontains(url) )
{
TQFont f = p->font();
diff --git a/quanta/treeviews/structtreeview.cpp b/quanta/treeviews/structtreeview.cpp
index 00c78845..8519f72b 100644
--- a/quanta/treeviews/structtreeview.cpp
+++ b/quanta/treeviews/structtreeview.cpp
@@ -990,11 +990,11 @@ void StructTreeView::slotOpenFile()
{
TQString text = item->groupTag->name;
text.remove(item->fileNameRx);
- KURL baseUrl = TQExtFileInfo::path(write->url());
+ KURL baseUrl = QExtFileInfo::path(write->url());
KURL url = baseUrl;
QuantaCommon::setUrl(url, text.stripWhiteSpace());
- url = TQExtFileInfo::toAbsolute(url, baseUrl);
- if (TQExtFileInfo::exists(url, true, this))
+ url = QExtFileInfo::toAbsolute(url, baseUrl);
+ if (QExtFileInfo::exists(url, true, this))
{
if (QuantaCommon::checkMimeGroup(url, "text" ))
{
diff --git a/quanta/treeviews/tagattributeitems.cpp b/quanta/treeviews/tagattributeitems.cpp
index aa6c5215..0d80311a 100644
--- a/quanta/treeviews/tagattributeitems.cpp
+++ b/quanta/treeviews/tagattributeitems.cpp
@@ -345,7 +345,7 @@ TQString AttributeUrlItem::editorText(int)
QuantaCommon::setUrl(url, urlRequester->url());
baseURL = (static_cast<TagAttributeTree *>(m_listView))->node()->tag->write()->url();
baseURL.setPath(baseURL.directory());
- url = TQExtFileInfo::toRelative(url, baseURL);
+ url = QExtFileInfo::toRelative(url, baseURL);
TQString s = url.url();
if (url.protocol() == (static_cast<TagAttributeTree *>(m_listView))->node()->tag->write()->url().protocol())
s.remove(0, url.protocol().length() + 3);
@@ -360,7 +360,7 @@ void AttributeUrlItem::showEditor(int)
baseURL = (static_cast<TagAttributeTree *>(m_listView))->node()->tag->write()->url();
baseURL.setPath(baseURL.directory());
QuantaCommon::setUrl(url, text(1));
- url= TQExtFileInfo::toAbsolute(url, baseURL);
+ url= QExtFileInfo::toAbsolute(url, baseURL);
urlRequester->setURL(url.url());
urlRequester->setFocus();
}
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index 75218842..5efd8b05 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -465,7 +465,7 @@ void TemplatesTreeView::contentsDropEvent(TQDropEvent *e)
*(tempFile->textStream()) << content;
tempFile->close();
bool proceed = true;
- if (TQExtFileInfo::exists(url, false, this))
+ if (QExtFileInfo::exists(url, false, this))
{
proceed = KMessageBox::warningContinueCancel(this, i18n("<qt>The file <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>").tqarg(url.prettyURL(0, KURL::StripFileProtocol)),i18n("Overwrite"), i18n("Overwrite")) == KMessageBox::Continue;
}
@@ -953,14 +953,14 @@ TQString TemplatesTreeView::createTemplateTarball()
if ( ! currentKFileTreeViewItem()->isDir() )
files.append(url);
else {
- files = TQExtFileInfo::allFiles(dirURL, "*", this) ;
+ files = QExtFileInfo::allFiles(dirURL, "*", this) ;
dirURL = dirURL.upURL();
}
for ( KURL::List::Iterator it_f = files.begin(); it_f != files.end(); ++it_f )
{
if (!(*it_f).fileName(false).isEmpty()) {
- url = TQExtFileInfo::toRelative( (*it_f), dirURL) ;
+ url = QExtFileInfo::toRelative( (*it_f), dirURL) ;
TQFile file((*it_f).path());
file.open(IO_ReadOnly);
@@ -1062,7 +1062,7 @@ void TemplatesTreeView::slotExtractSiteTemplate()
} else
error = true;
KIO::NetAccess::removeTempFile(tempFile);
- if (!m_projectBaseURL.isEmpty() && !TQExtFileInfo::toRelative(targetURL, m_projectBaseURL).url().startsWith("."))
+ if (!m_projectBaseURL.isEmpty() && !QExtFileInfo::toRelative(targetURL, m_projectBaseURL).url().startsWith("."))
{
if (KMessageBox::questionYesNo(this, i18n("You have extracted the site template to a folder which is not under your main project folder.\nDo you want to copy the folder into the main project folder?"), TQString(), i18n("Copy Folder"), i18n("Do Not Copy")) == KMessageBox::Yes)
{