Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2013 15:08
Show Gist options
  • Save anonymous/6211647 to your computer and use it in GitHub Desktop.
Save anonymous/6211647 to your computer and use it in GitHub Desktop.
This Patch is thought to be used width the Qt widget Q7seg 0.1 at qt-apps.org. It contains fixes to make this widget compatible to Qt 5 and removes needless semicolons. Plugin support is discarded. But you can use it like a regular class.
--- a/Q7segplug-0.1/q7seg.h 2008-01-25 13:35:24.000000000 +0100
+++ b/Q7segplug-0.1/q7seg.h 2013-08-11 21:24:52.000000000 +0200
@@ -22,15 +22,15 @@
#define Q7SEG_H
#include <QtGui>
-#include <QtDesigner/QDesignerExportWidget>
+#include <QtWidgets>
-class QDESIGNER_WIDGET_EXPORT Q7seg : public QWidget
+class Q7seg : public QWidget
{
Q_OBJECT
Q_ENUMS(NumColor)
- Q_PROPERTY(int num READ num WRITE setNumber);
- Q_PROPERTY(NumColor color READ color WRITE setColor);
+ Q_PROPERTY(int num READ num WRITE setNumber)
+ Q_PROPERTY(NumColor color READ color WRITE setColor)
public:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment