Skip to content

Commit

Permalink
Fixed build error, moved icons somewhere useful
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellGarwood committed Feb 11, 2020
1 parent ec69c23 commit 253df92
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions SPIERSalign/SPIERSalign.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ OBJECTS_DIR = build
FORMS += ui/mainwindow.ui \
ui/about.ui

#Mac icon
ICON = resources/SPIERSalign.icns

HEADERS += src/mainwindowimpl.h \
src/globals.h \
src/scene.h \
Expand Down
1 change: 1 addition & 0 deletions SPIERSalign/align.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/">
<file>resources/SPIERSalignIcon.svg</file>
<file>resources/SPIERSalignIcon.icns</file>
</qresource>
</RCC>
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions SPIERSview/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ void logMessageOutput(QtMsgType type, const QMessageLogContext &context, const Q
txt = QString("Info: %1 (%2:%3, %4)").arg(localMsg.constData()).arg(context.file).arg(context.line).arg(context.function);
break;
}
}

#ifndef __APPLE__

Expand All @@ -57,19 +56,20 @@ void logMessageOutput(QtMsgType type, const QMessageLogContext &context, const Q

#ifdef QT_DEBUG
// Save to debug.log
QFile outFile("debug.log");
outFile.open(QIODevice::WriteOnly | QIODevice::Append);
QTextStream log(&outFile);
log << txt << endl;
QFile outFile("debug.log");
outFile.open(QIODevice::WriteOnly | QIODevice::Append);
QTextStream log(&outFile);
log << txt << endl;

// Now print to stout too
QTextStream console(stdout);
console << txt << endl;
QTextStream console(stdout);
console << txt << endl;
#else
// Print to stout only
QTextStream console(stdout);
console << txt << endl;
QTextStream console(stdout);
console << txt << endl;
#endif
}

/**
* @brief qMain::qMain
Expand Down

0 comments on commit 253df92

Please sign in to comment.