From 7af884d886e2428d5b28e9cf7d81c97d7e378123 Mon Sep 17 00:00:00 2001 From: samelian Date: Sun, 16 Jan 2011 14:35:51 +0000 Subject: [kdewebdev/quanta] fix deprecation warnings; make compatible with QT_NO_ASCII_CAST flag git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1214823 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/project/project.cpp | 6 +++--- quanta/project/projectnewweb.cpp | 2 +- quanta/project/uploadprofiles.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'quanta/project') diff --git a/quanta/project/project.cpp b/quanta/project/project.cpp index abe47943..fa4af964 100644 --- a/quanta/project/project.cpp +++ b/quanta/project/project.cpp @@ -862,7 +862,7 @@ void Project::slotUpload() if (!d->m_uploadDialog) { - d->m_uploadDialog = new ProjectUpload(KURL(), "", false, false, false, i18n("Upload project items...")); + d->m_uploadDialog = new ProjectUpload(KURL(), "", false, false, false, i18n("Upload project items...").ascii()); connect(d->m_uploadDialog, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), this, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& ))); d->m_uploadDialog->show(); } else @@ -877,7 +877,7 @@ void Project::slotUploadURL(const KURL& urlToUpload, const TQString& profileName KURL url = QExtFileInfo::toRelative( urlToUpload, d->baseURL); if (!d->m_uploadDialog) { - d->m_uploadDialog = new ProjectUpload(url, profileName, false, quickUpload, markOnly, i18n("Upload project items...")); + d->m_uploadDialog = new ProjectUpload(url, profileName, false, quickUpload, markOnly, i18n("Upload project items...").ascii()); connect(d->m_uploadDialog, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& )), this, TQT_SIGNAL(eventHappened(const TQString&, const TQString&, const TQString& ))); d->m_uploadDialog->show(); } else @@ -893,7 +893,7 @@ void Project::slotGetMessages(const TQString& data) void Project::slotRescanPrjDir() { RescanPrj *dlg = new RescanPrj( d->m_projectFiles, d->baseURL, d->excludeRx, - d->m_mainWindow, i18n("New Files in Project's Folder")); + d->m_mainWindow, i18n("New Files in Project's Folder").ascii()); if ( dlg->exec() ) { d->insertFiles(dlg->files()); diff --git a/quanta/project/projectnewweb.cpp b/quanta/project/projectnewweb.cpp index 5959d01e..a087497c 100644 --- a/quanta/project/projectnewweb.cpp +++ b/quanta/project/projectnewweb.cpp @@ -103,7 +103,7 @@ void ProjectNewWeb::slotStart() { if (baseURL.protocol() == "file") { - chdir( baseURL.path(1)); + chdir( baseURL.path(1).ascii() ); proc = new KProcess(); proc ->clearArguments(); diff --git a/quanta/project/uploadprofiles.cpp b/quanta/project/uploadprofiles.cpp index 669971ce..cb54c27f 100644 --- a/quanta/project/uploadprofiles.cpp +++ b/quanta/project/uploadprofiles.cpp @@ -85,7 +85,7 @@ TQWidget * UploadProfiles::createTreeview(const UploadProfile &profile) KURL kurl = url(profile.domElement); if (kurl.isValid() && ! kurl.isEmpty()) { - widget = new ServerTreeView(quantaApp->config(), quantaApp, kurl, "ServerTreeView" + profile.name); + widget = new ServerTreeView(quantaApp->config(), quantaApp, kurl, TQString("ServerTreeView" + profile.name).ascii()); widget->setIcon(SmallIcon("up")); widget->setCaption( i18n("Upload Profile") + ": " + profile.name ); quantaApp->addToolWindow(widget, quantaApp->prevDockPosition(widget, KDockWidget::DockRight), quantaApp->getMainDockWidget()); -- cgit v1.2.1