Commit 7e5b8d5c authored by Matthias Möller's avatar Matthias Möller

- adding qt5 pluginsystem

- adding qt5 headers

refs #1359

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17080 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 06b9d5bb
......@@ -40,7 +40,15 @@
* *
\*===========================================================================*/
#include <QtGui>
#if QT_VERSION >= 0x050000
#include <QtWidgets>
#else
#include <QtGui>
#endif
#include <QPrintDialog>
#include <QPrinter>
#include "PrintPlugin.hh"
......@@ -112,5 +120,7 @@ void PrintPlugin::slotKeyEvent( QKeyEvent* _event ) {
}
Q_EXPORT_PLUGIN2( printplugin , PrintPlugin );
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2( printplugin , PrintPlugin );
#endif
......@@ -58,6 +58,10 @@ class PrintPlugin : public QObject, BaseInterface, MenuInterface, KeyInterface
Q_INTERFACES(MenuInterface)
Q_INTERFACES(KeyInterface)
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-Print")
#endif
signals:
void addMenubarAction(QAction* _action, QString _type );
......
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