Skip to content

Commit

Permalink
fix compiling for qt5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jul 8, 2015
1 parent 57deb72 commit fc8fad9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions all.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,16 @@
#include <QWidgetAction>
#include <QHelpIndexModel>
#include <QTextBrowser>


// change Q_ASSERT to NOP if not debugging

#ifdef QT_NO_DEBUG
#undef Q_ASSERT_X
#define Q_ASSERT_X(a,b,c)
#undef Q_ASSERT
#define Q_ASSERT(a)
#endif

#endif

8 changes: 5 additions & 3 deletions mscore/pluginCreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ static void qmlMsgHandler(QtMsgType type, const char* msg)
case QtFatalMsg:
s = QString("Fatal: %1\n").arg(msg);
break;
/* Qt5.2? case QtTraceMsg:
s = QString("Trace: %1\n").arg(msg);
default:

// Qt5.2? case QtTraceMsg:
// Qt5.4 case QtInfoMsg:
s = QString("Info: %1\n").arg(msg);
break;
*/
}
mscore->pluginCreator()->msg(s);
}
Expand Down

0 comments on commit fc8fad9

Please sign in to comment.