summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/basetreeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/basetreeview.cpp')
-rw-r--r--quanta/treeviews/basetreeview.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/quanta/treeviews/basetreeview.cpp b/quanta/treeviews/basetreeview.cpp
index 04bd3460..924373b4 100644
--- a/quanta/treeviews/basetreeview.cpp
+++ b/quanta/treeviews/basetreeview.cpp
@@ -371,7 +371,7 @@ void BaseTreeView::slotSelectFile(TQListViewItem *item)
if ( QuantaCommon::checkMimeGroup(urlToOpen,"text") )
{
emit openFile(urlToOpen);
- item->tqrepaint();
+ item->repaint();
}
else if ( QuantaCommon::checkMimeGroup(urlToOpen, "image") ) //it may be an image
{
@@ -385,7 +385,7 @@ void BaseTreeView::slotSelectFile(TQListViewItem *item)
if (QuantaCommon::denyBinaryInsert(this) == KMessageBox::Yes)
{
emit openFile(urlToOpen);
- item->tqrepaint();
+ item->repaint();
}
}
}
@@ -494,15 +494,15 @@ FileInfoDlg* BaseTreeView::addFileInfoPage(KPropertiesDialog* propDlg)
}
qfile.close();
- quantaFileProperties->lineNum->setText(i18n("Number of lines: %1").tqarg(ct));
- quantaFileProperties->imageNum->setText(i18n("Number of images included: %1").tqarg(imgct));
- quantaFileProperties->imageSize->setText(i18n("Size of the included images: %1 bytes").tqarg(fimgsize));
- quantaFileProperties->totalSize->setText(i18n("Total size with images: %1 bytes").tqarg(fsize+fimgsize));
+ quantaFileProperties->lineNum->setText(i18n("Number of lines: %1").arg(ct));
+ quantaFileProperties->imageNum->setText(i18n("Number of images included: %1").arg(imgct));
+ quantaFileProperties->imageSize->setText(i18n("Size of the included images: %1 bytes").arg(fimgsize));
+ quantaFileProperties->totalSize->setText(i18n("Total size with images: %1 bytes").arg(fsize+fimgsize));
}
else if (mimetype.contains("image"))
{ // assume it's an image file
TQImage imagefile=TQImage(nameForInfo);
- quantaFileProperties->lineNum->setText(i18n("Image size: %1 x %2").tqarg(imagefile.width()).tqarg(imagefile.height()));
+ quantaFileProperties->lineNum->setText(i18n("Image size: %1 x %2").arg(imagefile.width()).arg(imagefile.height()));
quantaFileProperties->imageNum->hide();
quantaFileProperties->imageSize->hide();
quantaFileProperties->totalSize->hide();
@@ -536,7 +536,7 @@ void BaseTreeView::slotOpen()
if (item)
{
emit open(item);
- item->tqrepaint();
+ item->repaint();
}
}
@@ -972,13 +972,13 @@ void BaseTreeView::slotDocumentClosed(const KURL& url)
item = (*it)->findTVIByURL(url);
if (item)
{
- item->tqrepaint();
+ item->repaint();
}
}
/* TQListViewItemIterator iter(this);
for ( ; iter.current(); ++iter )
{
- iter.current()->tqrepaint();
+ iter.current()->repaint();
}*/
}
@@ -1038,7 +1038,7 @@ void BaseTreeView::doRename(KFileTreeViewItem* kftvi, const TQString & newName)
bool proceed = true;
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;
+ proceed = KMessageBox::warningContinueCancel(this, i18n("<qt>The file <b>%1</b> already exists.<br>Do you want to overwrite it?</qt>").arg(newURL.prettyURL(0, KURL::StripFileProtocol)),i18n("Overwrite"), i18n("Overwrite")) == KMessageBox::Continue;
}
if (proceed)
{
@@ -1184,7 +1184,7 @@ void BaseTreeView::slotCreateSiteTemplate()
error = true;
if (error)
- KMessageBox::error(this, i18n("<qt>There was an error while creating the site template tarball.<br>Check that you can read the files from <i>%1</i>, you have write access to <i>%2</i> and that you have enough free space in your temporary folder.</qt>").tqarg(url.prettyURL(0, KURL::StripFileProtocol)).tqarg(targetURL.prettyURL(0, KURL::StripFileProtocol)), i18n("Template Creation Error"));
+ KMessageBox::error(this, i18n("<qt>There was an error while creating the site template tarball.<br>Check that you can read the files from <i>%1</i>, you have write access to <i>%2</i> and that you have enough free space in your temporary folder.</qt>").arg(url.prettyURL(0, KURL::StripFileProtocol)).arg(targetURL.prettyURL(0, KURL::StripFileProtocol)), i18n("Template Creation Error"));
delete tempFile;
}
@@ -1216,7 +1216,7 @@ void BaseTreeView::slotCreateFile()
url.setPath(url.directory() + "/" + fileName);
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"));
+ KMessageBox::error(this, i18n("<qt>Cannot create file, because a file named <b>%1</b> already exists.</qt>").arg(fileName), i18n("Error Creating File"));
return;
}
KTempFile *tempFile = new KTempFile(tmpDir);