Fix kdegraphics FTBFS

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237560 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 546886fdcc
commit 11a83c466c

@ -1,19 +1,16 @@
## Makefile.am for the pdf file meta info plugin ## Makefile.am for the pdf file meta info plugin
subdirs=poppler-qt
# set the include path for X, qt and KDE # set the include path for X, qt and KDE
INCLUDES = $(all_includes) -I$(top_srcdir)/kfile-plugins/pdf/poppler-qt INCLUDES = $(all_includes) -I$(top_srcdir)/kfile-plugins/dependencies/poppler-tqt
# these are the headers for your project # these are the headers for your project
noinst_HEADERS = kfile_pdf.h noinst_HEADERS = kfile_pdf.h
kde_module_LTLIBRARIES = kfile_pdf.la kde_module_LTLIBRARIES = kfile_pdf.la
kfile_pdf_la_COMPILE_FIRST = poppler-qt
kfile_pdf_la_SOURCES = kfile_pdf.cpp kfile_pdf_la_SOURCES = kfile_pdf.cpp
kfile_pdf_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) kfile_pdf_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
kfile_pdf_la_LIBADD = $(LIB_KIO) -L$(top_builddir)/kfile-plugins/pdf/poppler-qt/ -lpoppler-qt kfile_pdf_la_LIBADD = $(LIB_KIO) -L$(top_builddir)/kfile-plugins/dependencies/poppler-tqt/ -lpoppler-tqt
# let automoc handle all of the meta source files (moc) # let automoc handle all of the meta source files (moc)
METASOURCES = AUTO METASOURCES = AUTO

@ -1,7 +1,7 @@
## Makefile.am for the ps file meta info plugin ## Makefile.am for the ps file meta info plugin
# set the include path for X, qt and KDE # set the include path for X, qt and KDE
INCLUDES = -I$(top_srcdir)/kghostview $(all_includes) INCLUDES = -I$(top_srcdir)/kghostview/dscparse $(all_includes)
# these are the headers for your project # these are the headers for your project
noinst_HEADERS = kfile_ps.h gscreator.h noinst_HEADERS = kfile_ps.h gscreator.h

@ -1,6 +1,6 @@
SUBDIRS = data SUBDIRS = data
INCLUDES= $(all_includes) INCLUDES= $(all_includes) -I$(top_srcdir)/kghostview/dscparse
####### Files ####### Files
@ -33,12 +33,12 @@ kghostview_LDADD = libkghostviewlib.la
libdscparse_la_LDFLAGS = $(all_libraries) -no-undefined libdscparse_la_LDFLAGS = $(all_libraries) -no-undefined
libdscparse_la_LIBADD = $(LIB_QT) libdscparse_la_LIBADD = $(LIB_QT)
libdscparse_la_SOURCES = dscparse.cpp dscparse_adapter.cpp libdscparse_la_SOURCES = $(top_srcdir)/kghostview/dscparse/dscparse.cpp $(top_srcdir)/kghostview/dscparse/dscparse_adapter.cpp
noinst_HEADERS = marklist.h logwindow.h infodialog.h kgvshell.h \ noinst_HEADERS = marklist.h logwindow.h infodialog.h kgvshell.h \
kpswidget.h kgvpageview.h ps.h kgv_miniwidget.h kgv_view.h scrollbox.h \ kpswidget.h kgvpageview.h ps.h kgv_miniwidget.h kgv_view.h scrollbox.h \
kgvpagedecorator.h kgvconfigdialog.h kgvmainwidget.h dscparse.h \ kgvpagedecorator.h kgvconfigdialog.h kgvmainwidget.h $(top_srcdir)/kghostview/dscparse/dscparse.h \
dscparse_adapter.h kdscerrordialog.h kgvdocument.h displayoptions.h \ $(top_srcdir)/kghostview/dscparse/dscparse_adapter.h kdscerrordialog.h kgvdocument.h displayoptions.h \
fullscreenfilter.h kgvfactory.h thumbnailservice.h fullscreenfilter.h kgvfactory.h thumbnailservice.h
METASOURCES = AUTO METASOURCES = AUTO

@ -185,7 +185,7 @@ public:
For = CDSC_FOR, For = CDSC_FOR,
LanguageLevel = CDSC_LANGUAGELEVEL, LanguageLevel = CDSC_LANGUAGELEVEL,
BoundingBox = CDSC_BOUNDINGBOX, BoundingBox = CDSC_BOUNDINGBOX,
Qt::Orientation = CDSC_ORIENTATION, Orientation = CDSC_ORIENTATION,
PageOrder = CDSC_PAGEORDER, PageOrder = CDSC_PAGEORDER,
DocumentMedia = CDSC_DOCUMENTMEDIA, DocumentMedia = CDSC_DOCUMENTMEDIA,
DocumentPaperSizes = CDSC_DOCUMENTPAPERSIZES, DocumentPaperSizes = CDSC_DOCUMENTPAPERSIZES,
@ -206,7 +206,7 @@ public:
// Defaults section // Defaults section
BeginDefaults = CDSC_BEGINDEFAULTS, BeginDefaults = CDSC_BEGINDEFAULTS,
EndDefaults = CDSC_ENDDEFAULTS, EndDefaults = CDSC_ENDDEFAULTS,
// also %%PageMedia, %%PageQt::Orientation, %%PageBoundingBox // also %%PageMedia, %%PageOrientation, %%PageBoundingBox
// Prolog section // Prolog section
BeginProlog = CDSC_BEGINPROLOG, BeginProlog = CDSC_BEGINPROLOG,
@ -237,16 +237,16 @@ public:
EndPageSetup = CDSC_ENDPAGESETUP, EndPageSetup = CDSC_ENDPAGESETUP,
PageMedia = CDSC_PAGEMEDIA, PageMedia = CDSC_PAGEMEDIA,
// also %%PaperColor, %%PaperForm, %%PaperWeight, %%PaperSize // also %%PaperColor, %%PaperForm, %%PaperWeight, %%PaperSize
PageQt::Orientation = CDSC_PAGEORIENTATION, PageOrientation = CDSC_PAGEORIENTATION,
PageBoundingBox = CDSC_PAGEBOUNDINGBOX, PageBoundingBox = CDSC_PAGEBOUNDINGBOX,
// also %%Begin/EndFont, %%Begin/EndFeature // also %%Begin/EndFont, %%Begin/EndFeature
// also %%Begin/EndResource, %%Begin/EndProcSet // also %%Begin/EndResource, %%Begin/EndProcSet
IncludeFont = CDSC_INCLUDEFONT, IncludeFont = CDSC_INCLUDEFONT,
ViewingQt::Orientation = CDSC_VIEWINGORIENTATION, ViewingOrientation = CDSC_VIEWINGORIENTATION,
// Trailer section // Trailer section
Trailer = CDSC_TRAILER, Trailer = CDSC_TRAILER,
// also %%Pages, %%BoundingBox, %%Qt::Orientation, %%PageOrder, // also %%Pages, %%BoundingBox, %%Orientation, %%PageOrder,
// %%DocumentMedia // %%DocumentMedia
// %%Page is recognised as an error // %%Page is recognised as an error
// also %%DocumentNeededFonts, %%DocumentSuppliedFonts // also %%DocumentNeededFonts, %%DocumentSuppliedFonts

@ -188,7 +188,7 @@ bool Watcher::startDaemon( DaemonData *daemon )
void Watcher::slotTimeout() void Watcher::slotTimeout()
{ {
TQTimer *timer = static_cast<TQTimer*>( TQT_TQOBJECT( sender() ) ); TQTimer *timer = static_cast<TQTimer*>( TQT_TQOBJECT( const_cast<TQT_BASE_OBJECT_NAME*>(sender()) ) );
DaemonData *daemon = findDaemonFromTimer( timer ); DaemonData *daemon = findDaemonFromTimer( timer );
if ( daemon ) if ( daemon )
{ {

@ -98,7 +98,7 @@ void kpDocumentMetaInfo::printDebug (const TQString &prefix) const
{ {
kdDebug () << "key=" << (*it).key.data() kdDebug () << "key=" << (*it).key.data()
<< " lang=" << (*it).lang.data() << " lang=" << (*it).lang.data()
<< " text=" << text (*it).data() << " text=" << text (*it).ascii()
<< endl; << endl;
} }

@ -108,7 +108,7 @@ const ClassInfo KSVG::Window::s_classInfo = { "Window", 0, &s_hashTable, 0 };
KSVG::Window::Window(KSVG::SVGDocumentImpl *p) : ObjectImp(), m_doc(p) KSVG::Window::Window(KSVG::SVGDocumentImpl *p) : ObjectImp(), m_doc(p)
{ {
winq = new WindowTQObject(this); winq = new WindowQObject(this);
} }
KSVG::Window::~Window() KSVG::Window::~Window()
@ -278,7 +278,7 @@ void KSVG::Window::clear(ExecState *exec)
{ {
kdDebug(26004) << "KSVG::Window::clear " << this << endl; kdDebug(26004) << "KSVG::Window::clear " << this << endl;
delete winq; delete winq;
winq = new WindowTQObject(this);; winq = new WindowQObject(this);;
// Get rid of everything, those user vars could hold references to DOM nodes // Get rid of everything, those user vars could hold references to DOM nodes
deleteAllProperties(exec); deleteAllProperties(exec);
@ -488,18 +488,18 @@ void ScheduledAction::execute(Window *window)
} }
} }
////////////////////// WindowTQObject //////////////////////// ////////////////////// WindowQObject ////////////////////////
WindowTQObject::WindowTQObject(Window *w) : tqparent(w) WindowQObject::WindowQObject(Window *w) : tqparent(w)
{ {
} }
WindowTQObject::~WindowTQObject() WindowQObject::~WindowQObject()
{ {
tqparentDestroyed(); // reuse same code tqparentDestroyed(); // reuse same code
} }
void WindowTQObject::tqparentDestroyed() void WindowQObject::tqparentDestroyed()
{ {
killTimers(); killTimers();
@ -513,7 +513,7 @@ void WindowTQObject::tqparentDestroyed()
scheduledActions.clear(); scheduledActions.clear();
} }
int WindowTQObject::installTimeout(const UString &handler, int t, bool singleShot) int WindowQObject::installTimeout(const UString &handler, int t, bool singleShot)
{ {
int id = startTimer(t); int id = startTimer(t);
ScheduledAction *action = new ScheduledAction(handler.qstring(), singleShot); ScheduledAction *action = new ScheduledAction(handler.qstring(), singleShot);
@ -521,7 +521,7 @@ int WindowTQObject::installTimeout(const UString &handler, int t, bool singleSho
return id; return id;
} }
int WindowTQObject::installTimeout(const Value &func, List args, int t, bool singleShot) int WindowQObject::installTimeout(const Value &func, List args, int t, bool singleShot)
{ {
Object objFunc = Object::dynamicCast(func); Object objFunc = Object::dynamicCast(func);
int id = startTimer(t); int id = startTimer(t);
@ -529,7 +529,7 @@ int WindowTQObject::installTimeout(const Value &func, List args, int t, bool sin
return id; return id;
} }
void WindowTQObject::clearTimeout(int timerId, bool delAction) void WindowQObject::clearTimeout(int timerId, bool delAction)
{ {
killTimer(timerId); killTimer(timerId);
@ -545,7 +545,7 @@ void WindowTQObject::clearTimeout(int timerId, bool delAction)
} }
} }
void WindowTQObject::timerEvent(TQTimerEvent *e) void WindowQObject::timerEvent(TQTimerEvent *e)
{ {
TQMapIterator<int, ScheduledAction *> it = scheduledActions.tqfind(e->timerId()); TQMapIterator<int, ScheduledAction *> it = scheduledActions.tqfind(e->timerId());
if(it != scheduledActions.end()) if(it != scheduledActions.end())
@ -570,9 +570,9 @@ void WindowTQObject::timerEvent(TQTimerEvent *e)
delete action; delete action;
} }
else else
kdWarning(6070) << "WindowTQObject::timerEvent this=" << this << " timer " << e->timerId() << " not found (" << scheduledActions.count() << " actions in map)" << endl; kdWarning(6070) << "WindowQObject::timerEvent this=" << this << " timer " << e->timerId() << " not found (" << scheduledActions.count() << " actions in map)" << endl;
} }
void WindowTQObject::timeoutClose() void WindowQObject::timeoutClose()
{ {
} }

@ -25,14 +25,14 @@
namespace KSVG { namespace KSVG {
class SVGDocumentImpl; class SVGDocumentImpl;
class WindowTQObject; class WindowQObject;
// This is currently a fork of khtml's Window object, simplified. // This is currently a fork of khtml's Window object, simplified.
// However in the long run it could become a base class for it. // However in the long run it could become a base class for it.
// Author: David Faure <faure@kde.org> // Author: David Faure <faure@kde.org>
class Window : public KJS::ObjectImp { class Window : public KJS::ObjectImp {
friend class WindowFunc; friend class WindowFunc;
friend class WindowTQObject; friend class WindowQObject;
friend class ScheduledAction; friend class ScheduledAction;
public: public:
Window(KSVG::SVGDocumentImpl *p); Window(KSVG::SVGDocumentImpl *p);
@ -81,7 +81,7 @@ public:
static const struct KJS::HashTable s_hashTable; static const struct KJS::HashTable s_hashTable;
private: private:
WindowTQObject *winq; WindowQObject *winq;
TQGuardedPtr<KSVG::SVGDocumentImpl> m_doc; TQGuardedPtr<KSVG::SVGDocumentImpl> m_doc;
}; };
@ -98,12 +98,12 @@ public:
bool singleShot; bool singleShot;
}; };
class WindowTQObject : public TQObject { class WindowQObject : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
WindowTQObject(Window *w); WindowQObject(Window *w);
~WindowTQObject(); ~WindowQObject();
int installTimeout(const KJS::UString &handler, int t, bool singleShot); int installTimeout(const KJS::UString &handler, int t, bool singleShot);
int installTimeout(const KJS::Value &func, KJS::List args, int t, bool singleShot); int installTimeout(const KJS::Value &func, KJS::List args, int t, bool singleShot);
void clearTimeout(int timerId, bool delAction = true); void clearTimeout(int timerId, bool delAction = true);

@ -29,7 +29,6 @@ class TQPoint;
class TQWidget; class TQWidget;
#include <tqstring.h> #include <tqstring.h>
#include <tqobjectdefs.h>
#include <kdemacros.h> #include <kdemacros.h>
namespace KImageViewer namespace KImageViewer
{ {

@ -52,7 +52,8 @@ class PhotoBookPart;
class PhotoBook : public TQSplitter class PhotoBook : public TQSplitter
{ {
TQ_OBJECT Q_OBJECT
TQ_OBJECT
Previews *mList; Previews *mList;
KAction *mFit; KAction *mFit;
KParts::ReadOnlyPart *mViewer; KParts::ReadOnlyPart *mViewer;
@ -72,7 +73,7 @@ signals:
class Previews : public KFileIconView class Previews : public KFileIconView
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
KDirLister mDirLister; KDirLister mDirLister;

Loading…
Cancel
Save