KURL->KUrl

Launch script to adapt to new kdelibs API

svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=503148
This commit is contained in:
Laurent Montel 2006-01-28 13:15:59 +00:00
parent 3c944416ea
commit 544c95f775
7 changed files with 10 additions and 10 deletions

View file

@ -26,7 +26,7 @@
#include <klocale.h>
#include <kmessagebox.h>
#include <kmimetype.h>
#include <kprogress.h>
#include <kprogressbar.h>
#include <kstandarddirs.h>
#include <kvbox.h>
@ -377,7 +377,7 @@ bool dviRenderer::isValidFile(const QString& filename) const
}
bool dviRenderer::setFile(const QString &fname, const KURL &base)
bool dviRenderer::setFile(const QString &fname, const KUrl &base)
{
#ifdef DEBUG_DVIRENDERER
kdDebug(kvs::dvi) << "dviRenderer::setFile( fname='" << fname << "', ref='" << ref << "', sourceMarker=" << sourceMarker << " )" << endl;

View file

@ -90,7 +90,7 @@ public:
dviRenderer(QWidget *parent);
~dviRenderer();
virtual bool setFile(const QString &fname, const KURL &base);
virtual bool setFile(const QString &fname, const KUrl &base);
dvifile* dviFile;
@ -168,7 +168,7 @@ private:
/** URL to the DVI file
This field is initialized by the setFile() method. See the
explanation there. */
KURL baseURL;
KUrl baseURL;
/** This method parses a color specification of type "gray 0.5", "rgb
0.5 0.7 1.0", "hsb ...", "cmyk .." or "PineGreen". See the source

View file

@ -19,7 +19,7 @@
#include <klocale.h>
#include <kmessagebox.h>
#include <kmimetype.h>
#include <kprogress.h>
#include <kprogressbar.h>
#include <Q3MemArray>
#include <QApplication>

View file

@ -9,7 +9,7 @@
#include "fontprogress.h"
#include <klocale.h>
#include <kprogress.h>
#include <kprogressbar.h>
#include <kvbox.h>
#include <QApplication>

View file

@ -154,7 +154,7 @@
<string>Editor:</string>
</property>
</widget>
<widget class="KURLLabel" row="0" column="2">
<widget class="KUrlLabel" row="0" column="2">
<property name="name">
<cstring>urll</cstring>
</property>

View file

@ -342,7 +342,7 @@ void ghostscript_interface::graphics(const PageNumber& page, double dpi, long ma
}
QString ghostscript_interface::locateEPSfile(const QString &filename, const KURL &base)
QString ghostscript_interface::locateEPSfile(const QString &filename, const KUrl &base)
{
// If the base URL indicates that the DVI file is local, try to find
// the graphics file in the directory where the DVI file resides

4
psgs.h
View file

@ -15,7 +15,7 @@
#include <QObject>
#include <QString>
class KURL;
class KUrl;
class PageNumber;
class QPainter;
@ -75,7 +75,7 @@ public:
returned. Otherwise, the method returns the first argument. TODO:
use the DVI file's baseURL, once this is implemented.
*/
static QString locateEPSfile(const QString &filename, const KURL &base);
static QString locateEPSfile(const QString &filename, const KUrl &base);
private:
void gs_generate_graphics_file(const PageNumber& page, const QString& filename, long magnification);