Commit c85738f9 authored by Laurent Montel's avatar Laurent Montel 😁

Launch my script

svn path=/trunk/KDE/kdemultimedia/juk/; revision=503147
parent dbba586e
......@@ -85,7 +85,7 @@ private:
Arts::StereoVolumeControl m_volumeControl;
KURL m_currentURL;
KUrl m_currentURL;
float m_currentVolume;
};
......
......@@ -41,7 +41,7 @@
<bool>false</bool>
</property>
</widget>
<widget class="KURLRequester">
<widget class="KUrlRequester">
<property name="name">
<cstring>m_exampleFile</cstring>
</property>
......
......@@ -759,8 +759,8 @@ bool FileRenamer::moveFile(const QString &src, const QString &dest)
return false;
// Escape URL.
KURL srcURL = KURL::fromPathOrURL(src);
KURL dstURL = KURL::fromPathOrURL(dest);
KUrl srcURL = KUrl::fromPathOrURL(src);
KUrl dstURL = KUrl::fromPathOrURL(dest);
// Clean it.
srcURL.cleanPath();
......@@ -771,7 +771,7 @@ bool FileRenamer::moveFile(const QString &src, const QString &dest)
return false;
// Get just the directory.
KURL dir = dstURL;
KUrl dir = dstURL;
dir.setFileName(QString::null);
// Create the directory.
......@@ -785,7 +785,7 @@ bool FileRenamer::moveFile(const QString &src, const QString &dest)
return KIO::NetAccess::file_move(srcURL, dstURL);
}
void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item)
void FileRenamer::setFolderIcon(const KUrl &dst, const PlaylistItem *item)
{
if(item->file().tag()->album().isEmpty() ||
!item->file().coverInfo()->hasCover())
......@@ -793,7 +793,7 @@ void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item)
return;
}
KURL dstURL = dst;
KUrl dstURL = dst;
dstURL.cleanPath();
// Split path, and go through each path element. If a path element has
......
......@@ -443,7 +443,7 @@ private:
* there is not already a folder icon set, and if the folder's name has
* the album name.
*/
void setFolderIcon(const KURL &dst, const PlaylistItem *item);
void setFolderIcon(const KUrl &dst, const PlaylistItem *item);
/**
* Attempts to rename the file from \a src to \a dest. Returns true if the
......
......@@ -74,7 +74,7 @@
<string>Separator:</string>
</property>
</widget>
<widget class="KURLRequester" row="0" column="1">
<widget class="KUrlRequester" row="0" column="1">
<property name="name">
<cstring>m_musicFolder</cstring>
</property>
......
......@@ -56,7 +56,7 @@ void GoogleFetcher::slotLoadImageURLs(GoogleFetcher::ImageSize size)
m_imageList.clear();
KURL url("http://images.google.com/images");
KUrl url("http://images.google.com/images");
url.addQueryItem("q", m_searchString);
switch (size) {
......
......@@ -29,7 +29,7 @@ namespace DOM {
class HTMLDocument;
}
class KURL;
class KUrl;
class GoogleImage
{
......
......@@ -180,7 +180,7 @@ QPixmap GoogleFetcherDialog::fetchedImage(uint index) const
return (index > m_imageList.count()) ? QPixmap() : pixmapFromURL(m_imageList[index].imageURL());
}
QPixmap GoogleFetcherDialog::pixmapFromURL(const KURL &url) const
QPixmap GoogleFetcherDialog::pixmapFromURL(const KUrl &url) const
{
QString file;
......
......@@ -23,7 +23,7 @@
//Added by qt3to4:
#include <QPixmap>
class KURL;
class KUrl;
class GoogleFetcherDialog : public KDialogBase
{
......@@ -59,7 +59,7 @@ protected slots:
private:
QPixmap fetchedImage(uint index) const;
QPixmap pixmapFromURL(const KURL &url) const;
QPixmap pixmapFromURL(const KUrl &url) const;
QPixmap m_pixmap;
GoogleImageList m_imageList;
......
......@@ -126,17 +126,17 @@ void K3bExporter::exportViaDCOP(const PlaylistItemList &items, DCOPRef &ref)
if(projectList.count() == 0 && !startNewK3bProject(ref))
return;
KURL::List urlList;
KUrl::List urlList;
PlaylistItemList::ConstIterator it;
for(it = items.begin(); it != items.end(); ++it) {
KURL item;
KUrl item;
item.setPath((*it)->file().absFilePath());
urlList.append(item);
}
if(!ref.send("addUrls(KURL::List)", DCOPArg(urlList, "KURL::List"))) {
if(!ref.send("addUrls(KUrl::List)", DCOPArg(urlList, "KUrl::List"))) {
DCOPErrorMessage();
return;
}
......
......@@ -136,7 +136,7 @@ protected:
tp_SetNotifyCallback(m_pimp, TRMNotifyCallback, 0);
if(KProtocolManager::useProxy()) {
KURL proxy = KProtocolManager::proxyFor("http");
KUrl proxy = KProtocolManager::proxyFor("http");
tp_SetProxy(m_pimp, proxy.host().latin1(), short(proxy.port()));
}
}
......
......@@ -183,7 +183,7 @@ void CoverItem::dragEnterEvent(QDragEnterEvent *e)
void CoverItem::dropEvent(QDropEvent *e)
{
QImage image;
KURL::List urls;
KUrl::List urls;
coverKey key;
if(e->source() == this)
......
......@@ -856,7 +856,7 @@ void Playlist::slotAddCover(bool retrieveLocal)
QImage image;
if(retrieveLocal) {
KURL file = KFileDialog::getImageOpenURL(
KUrl file = KFileDialog::getImageOpenURL(
":homedir", this, i18n("Select Cover Image File"));
image = QImage(file.directory() + "/" + file.fileName());
}
......@@ -1006,9 +1006,9 @@ void Playlist::removeFromDisk(const PlaylistItemList &items)
Q3DragObject *Playlist::dragObject(QWidget *parent)
{
PlaylistItemList items = selectedItems();
KURL::List urls;
KUrl::List urls;
for(PlaylistItemList::Iterator it = items.begin(); it != items.end(); ++it) {
KURL url;
KUrl url;
url.setPath((*it)->file().absFilePath());
urls.append(url);
}
......@@ -1034,7 +1034,7 @@ void Playlist::contentsDragEnterEvent(QDragEnterEvent *e)
setDropHighlighter(false);
setDropVisualizer(true);
KURL::List urls;
KUrl::List urls;
if(!KURLDrag::decode(e, urls) || urls.isEmpty()) {
e->ignore();
return;
......@@ -1051,7 +1051,7 @@ bool Playlist::acceptDrag(QDropEvent *e) const
bool Playlist::canDecode(QMimeSource *s)
{
KURL::List urls;
KUrl::List urls;
if(CoverDrag::canDecode(s))
return true;
......@@ -1061,7 +1061,7 @@ bool Playlist::canDecode(QMimeSource *s)
void Playlist::decode(QMimeSource *s, PlaylistItem *item)
{
KURL::List urls;
KUrl::List urls;
if(!KURLDrag::decode(s, urls) || urls.isEmpty())
return;
......@@ -1090,7 +1090,7 @@ void Playlist::decode(QMimeSource *s, PlaylistItem *item)
QStringList fileList;
for(KURL::List::Iterator it = urls.begin(); it != urls.end(); ++it)
for(KUrl::List::Iterator it = urls.begin(); it != urls.end(); ++it)
fileList.append((*it).path());
addFiles(fileList, item);
......
......@@ -422,11 +422,11 @@ void PlaylistBox::decode(QMimeSource *s, Item *item)
if(!s || (item && item->playlist() && item->playlist()->readOnly()))
return;
KURL::List urls;
KUrl::List urls;
if(KURLDrag::decode(s, urls) && !urls.isEmpty()) {
QStringList files;
for(KURL::List::Iterator it = urls.begin(); it != urls.end(); ++it)
for(KUrl::List::Iterator it = urls.begin(); it != urls.end(); ++it)
files.append((*it).path());
if(item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment