[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Mar 3 20:32:54 CET 2005
CVS commit by arwalker:
Handle some more deprecated methods.
M +1 -1 kstdatamanager_i.cpp 1.94
M +2 -1 kstdatasource.cpp 1.55
M +3 -3 pluginmanager.ui.h 1.21
--- kdeextragear-2/kst/kst/kstdatamanager_i.cpp #1.93:1.94
@@ -550,5 +550,5 @@ void KstDataManagerI::contextMenu(QListV
KPopupMenu *m = new KPopupMenu(this);
- m->setTitle(koi->text(0));
+ m->insertTitle(koi->text(0));
int id;
--- kdeextragear-2/kst/kst/kstdatasource.cpp #1.54:1.55
@@ -196,4 +196,5 @@ void KstDataSource::cleanupForExit() {
static QString obtainFile(const QString& source) {
KURL url;
+
if (QFile::exists(source) && QFileInfo(source).isRelative()) {
url.setPath(source);
@@ -211,5 +212,5 @@ static QString obtainFile(const QString&
QString tmpFile;
- if (!KIO::NetAccess::download(source, tmpFile)) {
+ if (!KIO::NetAccess::download(source, tmpFile, 0L)) {
return QString::null;
}
--- kdeextragear-2/kst/kst/pluginmanager.ui.h #1.20:1.21
@@ -34,5 +34,5 @@ void PluginManager::install()
QString tmpFile;
- if (!KIO::NetAccess::download(xmlfile, tmpFile)) {
+ if (!KIO::NetAccess::download(xmlfile, tmpFile, 0L)) {
KMessageBox::error(this, i18n("Unable to access file %1.").arg(xmlfile.prettyURL()), i18n("KST Plugin Loader"));
return;
@@ -57,5 +57,5 @@ void PluginManager::install()
sofile.setPath(tmpSoFile);
- if (!KIO::NetAccess::dircopy(sofile, pathURL)) {
+ if (!KIO::NetAccess::dircopy(sofile, pathURL, 0L)) {
KIO::NetAccess::removeTempFile(tmpFile);
KMessageBox::error(this, i18n("Unable to copy plugin file %1 to %2.").arg(sofile.prettyURL()).arg(pathURL.prettyURL()), i18n("KST Plugin Loader"));
@@ -67,5 +67,5 @@ void PluginManager::install()
pathURL.setFileName(xmlfile.fileName());
- if (!KIO::NetAccess::dircopy(tmpFileURL, pathURL)) {
+ if (!KIO::NetAccess::dircopy(tmpFileURL, pathURL, 0L)) {
KMessageBox::error(this, i18n("Internal temporary file %1 could not be copied to plugin directory %2.").arg(tmpFile).arg(path), i18n("KST Plugin Loader"));
}
More information about the Kst
mailing list