Skip to content

Commit

Permalink
Moc error statements removed
Browse files Browse the repository at this point in the history
  • Loading branch information
chlange committed Jul 15, 2012
1 parent af8f798 commit e2892e6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 38 deletions.
4 changes: 0 additions & 4 deletions moc_answer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
*****************************************************************************/

#include "answer.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'answer.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_Answer[] = {
Expand Down
4 changes: 0 additions & 4 deletions moc_doublejeopardy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
*****************************************************************************/

#include "doublejeopardy.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'doublejeopardy.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_DoubleJeopardy[] = {
Expand Down
4 changes: 0 additions & 4 deletions moc_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
*****************************************************************************/

#include "editor.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'editor.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_Editor[] = {
Expand Down
4 changes: 0 additions & 4 deletions moc_gamefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
*****************************************************************************/

#include "gamefield.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'gamefield.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_GameField[] = {
Expand Down
4 changes: 0 additions & 4 deletions moc_jeopardy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
*****************************************************************************/

#include "jeopardy.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'jeopardy.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_Jeopardy[] = {
Expand Down
14 changes: 0 additions & 14 deletions moc_podium.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/****************************************************************************
** Meta object code from reading C++ file 'podium.h'
**
** Created: Thu Mar 15 18:12:56 2012
** by: The Qt Meta Object Compiler version 62 (Qt 4.6.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "podium.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'podium.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_Podium[] = {
Expand Down
10 changes: 6 additions & 4 deletions removeMocErrors.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

// Remove error defines in moc_* files
// Qt version 4.8 produces errors which can be fixed with this workaround
// Not the best solution but it works for version 4.8
# Not needed anymore!

sed -i '13,16 s/^/\/\//' moc*.cpp
# Remove error defines in moc_* files
# Qt version 4.8 produces errors which can be fixed with this workaround
# Not the best solution but it works for version 4.8

# sed -i '13,16 s/^/\/\//' moc*.cpp

0 comments on commit e2892e6

Please sign in to comment.