[PATCH 1 of 6] Every class that inherits QObject needs the Q_Object macro

Wald Commits scm-commit at wald.intevation.org
Wed Jun 18 14:41:29 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1403081079 -7200
# Node ID 1642a79cc02d031a2db73b56bf0d8f19f045ff99
# Parent  3d45f5bca0aa25ac78afa8ea5721f1d8b6737cdf
Every class that inherits QObject needs the Q_Object macro.

    Fixes moc warnings

diff -r 3d45f5bca0aa -r 1642a79cc02d ui/aboutdialog.h
--- a/ui/aboutdialog.h	Wed Jun 18 09:17:25 2014 +0200
+++ b/ui/aboutdialog.h	Wed Jun 18 10:44:39 2014 +0200
@@ -17,6 +17,7 @@
 
 class AboutDialog : public QDialog
 {
+    Q_OBJECT
 public:
     /** @brief Create a help dialog */
     AboutDialog(QMainWindow *parent);
diff -r 3d45f5bca0aa -r 1642a79cc02d ui/helpdialog.h
--- a/ui/helpdialog.h	Wed Jun 18 09:17:25 2014 +0200
+++ b/ui/helpdialog.h	Wed Jun 18 10:44:39 2014 +0200
@@ -17,6 +17,7 @@
 
 class HelpDialog : public QDialog
 {
+    Q_OBJECT
 public:
     /** @brief Create a help dialog */
     HelpDialog(QMainWindow *parent);


More information about the Trustbridge-commits mailing list