endforeach()
# optional packages
-if(NOT WITH_FONTCONFIG OR NOT FONTCONFIG_FOUND)
- katie_config(QT_NO_FONTCONFIG)
-endif()
-
-if(NOT WITH_DBUS OR NOT DBUS_FOUND)
- katie_config(QT_NO_DBUS)
-else()
+if(WITH_DBUS AND DBUS_FOUND)
set(KATIE_COMPONENTS "${KATIE_COMPONENTS} DBus")
set(KATIE_TOOLS "${KATIE_TOOLS} qdbus qdbusxml2cpp qdbuscpp2xml qdbusviewer")
endif()
+if(NOT WITH_FONTCONFIG OR NOT FONTCONFIG_FOUND)
+ katie_config(QT_NO_FONTCONFIG)
+endif()
+
if(NOT WITH_CUPS OR NOT CUPS_FOUND)
katie_config(QT_NO_CUPS)
endif()
// External packages dependant
#cmakedefine QT_NO_CUPS
-#cmakedefine QT_NO_DBUS
#cmakedefine QT_NO_EXECINFO
#cmakedefine QT_NO_FONTCONFIG
#cmakedefine QT_NO_SESSIONMANAGER
#cmakedefine QT_NO_STYLE_PROXY
#cmakedefine QT_NO_STYLE_STYLESHEET
#cmakedefine QT_NO_STYLE_WINDOWS
-#cmakedefine QT_NO_SVG
-#cmakedefine QT_NO_SVGRENDERER
#cmakedefine QT_NO_SYNTAXHIGHLIGHTER
#cmakedefine QT_NO_SYSTEMSEMAPHORE
#cmakedefine QT_NO_SYSTEMTRAYICON
# define QT_NO_CONTEXTMENU
#endif
-// QtDBus module
-#if !defined(QT_NO_DBUS) && (defined(QT_NO_PROPERTIES) || defined(QT_NO_DOM))
-# define QT_NO_DBUS
-#endif
-
// QScrollArea
#if !defined(QT_NO_SCROLLAREA) && defined(QT_NO_SCROLLBAR)
# define QT_NO_SCROLLAREA
# define QT_NO_STYLE_STYLESHEET
#endif
-// QtSvg module
-#if !defined(QT_NO_SVG) && (defined(QT_NO_XMLSTREAMREADER) || defined(QT_NO_CSSPARSER))
-# define QT_NO_SVG
-#endif
-
// QColorDialog
#if !defined(QT_NO_COLORDIALOG) && defined(QT_NO_SPINBOX)
# define QT_NO_COLORDIALOG
# define QT_NO_MENUBAR
#endif
-// QSvgRenderer
-#if !defined(QT_NO_SVGRENDERER) && defined(QT_NO_SVG)
-# define QT_NO_SVGRENDERER
-#endif
-
// QTabWidget
#if !defined(QT_NO_TABWIDGET) && (defined(QT_NO_TABBAR) || defined(QT_NO_STACKEDWIDGET))
# define QT_NO_TABWIDGET
****************************************************************************/
#include "qsvgiconengine.h"
-#ifndef QT_NO_SVGRENDERER
-
#include "qpainter.h"
#include "qpixmap.h"
#include "qsvgrenderer.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVGRENDERER
#include <QtGui/qiconengine.h>
#include <QtCore/qshareddata.h>
-#ifndef QT_NO_SVG
-
QT_BEGIN_NAMESPACE
class QSvgIconEnginePrivate;
QT_END_NAMESPACE
-#endif // QT_NO_SVG
-#endif
+#endif // QSVGICONENGINE_H
#include "qiconengineplugin.h"
#include "qstringlist.h"
-
-#if !defined(QT_NO_SVG)
-
#include "qsvgiconengine.h"
#include "qiodevice.h"
#include "qbytearray.h"
Q_EXPORT_PLUGIN2(qsvgicon, QSvgIconPlugin)
QT_END_NAMESPACE
-
-#endif // !QT_NO_SVG
****************************************************************************/
#include "qsvgiohandler.h"
-
-#ifndef QT_NO_SVGRENDERER
-
#include "qsvgrenderer.h"
#include "qimage.h"
#include "qpixmap.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVGRENDERER
#include <QtGui/qimageiohandler.h>
-#ifndef QT_NO_SVGRENDERER
-
QT_BEGIN_NAMESPACE
class QImage;
QT_END_NAMESPACE
-#endif // QT_NO_SVGRENDERER
#endif // QSVGIOHANDLER_H
#include "qimageiohandler.h"
#include "qstringlist.h"
-
-#if !defined(QT_NO_SVGRENDERER)
-
#include "qsvgiohandler.h"
#include "qiodevice.h"
#include "qbytearray.h"
Q_EXPORT_PLUGIN2(qsvg, QSvgPlugin)
QT_END_NAMESPACE
-
-#endif // !QT_NO_SVGRENDERER
#include <QtCore/qmetaobject.h>
#include <QScriptExtensionPlugin>
-#ifndef QT_NO_DBUS
-
QT_USE_NAMESPACE
static QScriptValue setupDBusInterface(QScriptEngine *engine, QDBusAbstractInterface *iface);
Q_EXPORT_PLUGIN2(qtscriptdbus, QtDBusScriptPlugin)
-#endif // QT_NO_DBUS
-
#include "moc_dbmain.h"
#include <QtScript/qscriptable.h>
#include <QtScript/qscriptengine.h>
-#ifndef QT_NO_DBUS
-
QT_USE_NAMESPACE
class QDBusConnectionConstructor : public QObject,
QScriptValue proto;
};
-#endif // QT_NO_DBUS
#endif // QDBUSBINDING_H
qreal top = blockBoundingGeometry(block).translated(contentOffset()).top();
qreal bottom = top + blockBoundingRect(block).height();
- QString imagesPath = QString::fromLatin1(":/qt/scripttools/debugging/images");
- QString imageExt;
-// SVGs don't work on all platforms, even when QT_NO_SVG is not defined, so disable SVG usage for now.
-// #ifndef QT_NO_SVG
-#if 0
- imageExt = QString::fromLatin1("svg");
-#else
- imageExt = QString::fromLatin1("png");
-#endif
+ static QString imagesPath = QString::fromLatin1(":/qt/scripttools/debugging/images");
while (block.isValid() && top <= rect.bottom()) {
if (block.isVisible() && bottom >= rect.top()) {
int radius = fm.lineSpacing() - 1;
QRect r(rect.x(), (int)top, radius, radius);
QIcon icon(m_breakpoints[lineNumber].enabled
- ? QString::fromLatin1("%0/breakpoint.%1").arg(imagesPath).arg(imageExt)
- : QString::fromLatin1("%0/d_breakpoint.%1").arg(imagesPath).arg(imageExt));
+ ? QString::fromLatin1("%1/breakpoint.png").arg(imagesPath))
+ : QString::fromLatin1("%1/d_breakpoint.png").arg(imagesPath));
icon.paint(&painter, r, Qt::AlignCenter);
}
if (m_executionLineNumber == lineNumber) {
int radius = fm.lineSpacing() - 1;
QRect r(rect.x(), (int)top, radius, radius);
- QIcon icon(QString::fromLatin1("%0/location.%1").arg(imagesPath).arg(imageExt));
+ QIcon icon(QString::fromLatin1("%1/location.png").arg(imagesPath));
icon.paint(&painter, r, Qt::AlignCenter);
}
#include "qsvgfont_p.h"
-#ifndef QT_NO_SVG
-
#include "qpainter.h"
#include "qpen.h"
#include "qdebug.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
//
#include "qpainterpath.h"
-
-#ifndef QT_NO_SVG
-
#include "qhash.h"
#include "qstring.h"
#include "qsvgstyle_p.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGFONT_P_H
****************************************************************************/
#include "qsvggraphics_p.h"
-
-#ifndef QT_NO_SVG
-
#include "qsvgfont_p.h"
-
#include "qpainter.h"
#include "qtextdocument.h"
#include "qabstracttextdocumentlayout.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
-
-
-
-
//
#include "qsvgnode_p.h"
-
-#ifndef QT_NO_SVG
-
#include "QtGui/qpainterpath.h"
#include "QtGui/qimage.h"
#include "QtGui/qtextlayout.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGGRAPHICS_P_H
****************************************************************************/
#include "qplatformdefs.h"
-
#include "qsvghandler_p.h"
-
-#ifndef QT_NO_SVG
-
#include "qsvgtinydocument_p.h"
#include "qsvgstructure_p.h"
#include "qsvggraphics_p.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
//
#include "QtXml/qxmlstream.h"
-
-#ifndef QT_NO_SVG
-
#include "QtCore/qhash.h"
#include "QtCore/qstack.h"
#include "qsvgstyle_p.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGHANDLER_P_H
#include "qsvgnode_p.h"
#include "qsvgtinydocument_p.h"
-
-#ifndef QT_NO_SVG
-
#include "qdebug.h"
#include "qstack.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
-
-
-
-
//
#include "qsvgstyle_p.h"
-
-#ifndef QT_NO_SVG
-
#include "QtCore/qstring.h"
#include "QtCore/qhash.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGNODE_P_H
****************************************************************************/
#include "qsvgrenderer.h"
-
-#ifndef QT_NO_SVGRENDERER
-
#include "qsvgtinydocument_p.h"
-
#include "qbytearray.h"
#include "qtimer.h"
#include "qdebug.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVGRENDERER
-
#include "moc_qsvgrenderer.h"
#define QSVGRENDERER_H
#include <QtGui/qmatrix.h>
-
-#ifndef QT_NO_SVGRENDERER
-
#include <QtCore/qobject.h>
#include <QtCore/qsize.h>
#include <QtCore/qrect.h>
QT_END_NAMESPACE
-
-#endif // QT_NO_SVGRENDERER
#endif // QSVGRENDERER_H
****************************************************************************/
#include "qsvgstructure_p.h"
-
-#ifndef QT_NO_SVG
-
#include "qsvgnode_p.h"
#include "qsvgstyle_p.h"
#include "qsvgtinydocument_p.h"
-
#include "qpainter.h"
#include "qlocale.h"
#include "qdebug.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
-
-
-
-
//
#include "qsvgnode_p.h"
-
-#ifndef QT_NO_SVG
-
#include "QtCore/qlist.h"
#include "QtCore/qhash.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGSTRUCTURE_P_H
****************************************************************************/
#include "qsvgstyle_p.h"
-
-#ifndef QT_NO_SVG
-
#include "qsvgfont_p.h"
#include "qsvggraphics_p.h"
#include "qsvgnode_p.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
-
-
-
-
//
#include "QtGui/qpainter.h"
-
-#ifndef QT_NO_SVG
-
#include "QtGui/qpen.h"
#include "QtGui/qbrush.h"
#include "QtGui/qmatrix.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGSTYLE_P_H
****************************************************************************/
#include "qsvgtinydocument_p.h"
-
-#ifndef QT_NO_SVG
-
#include "qsvghandler_p.h"
#include "qsvgfont_p.h"
#include "qplatformdefs.h"
}
QT_END_NAMESPACE
-
-#endif // QT_NO_SVG
-
-
-
-
//
#include "qsvgstructure_p.h"
-
-#ifndef QT_NO_SVG
-
#include "QtCore/qrect.h"
#include "QtCore/qlist.h"
#include "QtCore/qhash.h"
QT_END_NAMESPACE
-#endif // QT_NO_SVG
#endif // QSVGTINYDOCUMENT_P_H