diff --git a/audiohandler.cpp b/audiohandler.cpp index 01c4f8b..b0f1c89 100644 --- a/audiohandler.cpp +++ b/audiohandler.cpp @@ -191,12 +191,18 @@ bool audioHandler::init(audioSetup setupIn) #elif defined(PORTAUDIO) #else - format.setSampleSize(16); +#if QT_VERSION < 0x060000 +format.setSampleSize(16); format.setChannelCount(2); format.setSampleRate(INTERNAL_SAMPLE_RATE); format.setCodec("audio/pcm"); format.setByteOrder(QAudioFormat::LittleEndian); format.setSampleType(QAudioFormat::SignedInt); +#else + format.setSampleFormat(QAudioFormat::Int16); + format.setChannelCount(2); + format.setSampleRate(INTERNAL_SAMPLE_RATE); +#endif if (setup.port.isNull()) { qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "No audio device was found. You probably need to install libqt5multimedia-plugins."; @@ -205,7 +211,9 @@ bool audioHandler::init(audioSetup setupIn) else if (!setup.port.isFormatSupported(format)) { qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Format not supported, choosing nearest supported format - which may not work!"; +#if QT_VERSION < 0x060000 format=setup.port.nearestFormat(format); +#endif } if (format.channelCount() > 2) { format.setChannelCount(2); @@ -226,13 +234,23 @@ bool audioHandler::init(audioSetup setupIn) // We "hopefully" now have a valid format that is supported so try connecting if (setup.isinput) { + +#if QT_VERSION < 0x060000 audioInput = new QAudioInput(setup.port, format, this); +#else + audioInput = new QAudioSource(setup.port, format, this); +#endif connect(audioInput, SIGNAL(notify()), SLOT(notified())); connect(audioInput, SIGNAL(stateChanged(QAudio::State)), SLOT(stateChanged(QAudio::State))); isInitialized = true; } else { + +#if QT_VERSION < 0x060000 audioOutput = new QAudioOutput(setup.port, format, this); +#else + audioOutput = new QAudioSink(setup.port, format, this); +#endif #ifdef Q_OS_MAC audioOutput->setBufferSize(chunkSize*4); @@ -379,7 +397,7 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes) while (currentLatency > setup.latency) { qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Packet " << hex << packet.seq << " arrived too late (increase output latency!) " << - dec << packet.time.msecsTo(QTime::currentTime()) << "ms"; + packet.time.msecsTo(QTime::currentTime()) << "ms"; lastSeq = packet.seq; if (!ringBuf->try_read(packet)) break; @@ -621,7 +639,7 @@ void audioHandler::getNextAudioChunk(QByteArray& ret) while (currentLatency > setup.latency) { qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Packet " << hex << packet.seq << " arrived too late (increase output latency!) " << - dec << packet.time.msecsTo(QTime::currentTime()) << "ms"; + packet.time.msecsTo(QTime::currentTime()) << "ms"; if (!ringBuf->try_read(packet)) break; currentLatency = packet.time.msecsTo(QTime::currentTime()); diff --git a/audiohandler.h b/audiohandler.h index d2902d2..ae2db5e 100644 --- a/audiohandler.h +++ b/audiohandler.h @@ -14,10 +14,19 @@ #include "portaudio.h" #error "PORTAUDIO is not currently supported" #else -#include #include + +#if QT_VERSION < 0x060000 #include #include +#include +#else +#include +#include +#include +#include +#endif + #include #endif @@ -71,7 +80,13 @@ struct audioSetup { int port; #elif defined(PORTAUDIO) #else + +#if QT_VERSION < 0x060000 QAudioDeviceInfo port; +#else + QAudioDevice port; +#endif + #endif quint8 resampleQuality; unsigned char localAFgain; @@ -93,7 +108,6 @@ public: int getLatency(); #if !defined (RTAUDIO) && !defined(PORTAUDIO) - bool setDevice(QAudioDeviceInfo deviceInfo); void start(); void flush(); @@ -155,10 +169,18 @@ private: RtAudio::DeviceInfo info; #elif defined(PORTAUDIO) #else - QAudioOutput* audioOutput=Q_NULLPTR; - QAudioInput* audioInput=Q_NULLPTR; QAudioFormat format; + +#if QT_VERSION < 0x060000 QAudioDeviceInfo deviceInfo; + QAudioOutput* audioOutput = Q_NULLPTR; + QAudioInput* audioInput = Q_NULLPTR; +#else + QMediaDevices deviceInfo; + QAudioSink* audioOutput = Q_NULLPTR; + QAudioSource* audioInput = Q_NULLPTR; +#endif + #endif SpeexResamplerState* resampler = Q_NULLPTR; diff --git a/logcategories.h b/logcategories.h index 2bd780b..db6bfbb 100644 --- a/logcategories.h +++ b/logcategories.h @@ -17,4 +17,9 @@ Q_DECLARE_LOGGING_CATEGORY(logRigCtlD) #define __PRETTY_FUNCTION__ __FUNCSIG__ #endif +#if QT_VERSION > 0x060000 +#define hex Qt::hex +#define bin Qt::bin +#endif + #endif // LOGCATEGORIES_H diff --git a/rigctld.cpp b/rigctld.cpp index 4879728..b270f13 100644 --- a/rigctld.cpp +++ b/rigctld.cpp @@ -146,35 +146,35 @@ void rigCtlClient::socketReadyRead() return; } - if (commandBuffer[num] == ";" || commandBuffer[num] == "|" || commandBuffer[num] == ",") + if (commandBuffer[num] == ';' || commandBuffer[num] == '|' || commandBuffer[num] == ',') { sep = commandBuffer[num].toLatin1(); num++; } - else if (commandBuffer[num] == "+") + else if (commandBuffer[num] == '+') { longReply = true; sep = "\n"; num++; } - else if (commandBuffer[num] == "#") + else if (commandBuffer[num] == '#') { return; } - else if (commandBuffer[num].toLower() == "q") + else if (commandBuffer[num].toLower() == 'q') { closeSocket(); return; } - if (commandBuffer[num] == "\\") + if (commandBuffer[num] == '\\') { num++; } QStringList command = commandBuffer.mid(num).split(" "); - if (command[0] == 0xf0 || command[0] == "chk_vfo") + if (command[0] == '\xf0' || command[0] == "chk_vfo") { QString resp; if (longReply) { @@ -960,7 +960,7 @@ void rigCtlClient::socketReadyRead() } qInfo(logRigCtlD()) << "Setting:" << command[1] << command[2]; } - else if (command.length() > 1 && (command[0] == 0x88 || command[0] == "get_powerstat")) + else if (command.length() > 1 && (command[0] == '\x88' || command[0] == "get_powerstat")) { QString resp; @@ -971,7 +971,7 @@ void rigCtlClient::socketReadyRead() response.append(resp); } - else if (command.length() > 1 && (command[0] == 0x87 || command[0] == "set_powerstat")) + else if (command.length() > 1 && (command[0] == '\x87' || command[0] == "set_powerstat")) { setCommand = true; if (command[1] == "0") diff --git a/udphandler.cpp b/udphandler.cpp index 3d71c05..73909ed 100644 --- a/udphandler.cpp +++ b/udphandler.cpp @@ -965,7 +965,9 @@ void udpAudio::dataReceived() void udpBase::init() { +#if QT_VERSION < 0x060000 timeStarted.start(); +#endif udp = new QUdpSocket(this); udp->bind(); // Bind to random port. localPort = udp->localPort(); diff --git a/udpserver.cpp b/udpserver.cpp index 8627284..6d6e50b 100644 --- a/udpserver.cpp +++ b/udpserver.cpp @@ -14,7 +14,10 @@ void udpServer::init() { srand(time(NULL)); // Generate random key +#if QT_VERSION < 0x060000 timeStarted.start(); +#endif + // Convoluted way to find the external IP address, there must be a better way???? QString localhostname = QHostInfo::localHostName(); QList hostList = QHostInfo::fromName(localhostname).addresses(); diff --git a/wfmain.cpp b/wfmain.cpp index 2d83e08..431e3bb 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -1026,8 +1026,9 @@ void wfmain::setAudioDevicesUI() // Use PortAudio device enumeration #else -// If no external library is configured, use QTMultimedia - // Enumerate audio devices, need to do before settings are loaded. +#if QT_VERSION < 0x060000 + // If no external library is configured, use QTMultimedia + // Enumerate audio devices, need to do before settings are loaded. const auto audioOutputs = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput); for (const QAudioDeviceInfo& deviceInfo : audioOutputs) { ui->audioOutputCombo->addItem(deviceInfo.deviceName(), QVariant::fromValue(deviceInfo)); @@ -1040,6 +1041,24 @@ void wfmain::setAudioDevicesUI() // Set these to default audio devices initially. rxSetup.port = QAudioDeviceInfo::defaultOutputDevice(); txSetup.port = QAudioDeviceInfo::defaultInputDevice(); + +#else + // If no external library is configured, use QTMultimedia + // Enumerate audio devices, need to do before settings are loaded. + const auto audioOutputs = QMediaDevices::audioOutputs(); + for (const QAudioDevice& deviceInfo : audioOutputs) { + ui->audioOutputCombo->addItem(deviceInfo.description(), QVariant::fromValue(deviceInfo)); + } + + const auto audioInputs = QMediaDevices::audioInputs(); + for (const QAudioDevice& deviceInfo : audioInputs) { + ui->audioInputCombo->addItem(deviceInfo.description(), QVariant::fromValue(deviceInfo)); + } + // Set these to default audio devices initially. + rxSetup.port = QMediaDevices::defaultAudioOutput(); + txSetup.port = QMediaDevices::defaultAudioInput(); +#endif + #endif } @@ -1215,7 +1234,7 @@ void wfmain::setupKeyShortcuts() connect(keyM, SIGNAL(activated()), this, SLOT(shortcutM())); keyDebug = new QShortcut(this); - keyDebug->setKey(Qt::CTRL + Qt::SHIFT + Qt::Key_D); + keyDebug->setKey(Qt::CTRL && Qt::SHIFT && Qt::Key_D); connect(keyDebug, SIGNAL(activated()), this, SLOT(on_debugBtn_clicked())); } @@ -1468,7 +1487,7 @@ void wfmain::loadSettings() #elif defined(PORTAUDIO) #else QVariant v = ui->audioOutputCombo->currentData(); - rxSetup.port = v.value(); + rxSetup.port = v.value(); #endif } ui->audioOutputCombo->blockSignals(false); @@ -1484,7 +1503,7 @@ void wfmain::loadSettings() #elif defined(PORTAUDIO) #else QVariant v = ui->audioInputCombo->currentData(); - txSetup.port = v.value(); + txSetup.port = v.value(); #endif } ui->audioInputCombo->blockSignals(false); @@ -4211,7 +4230,7 @@ void wfmain::on_audioOutputCombo_currentIndexChanged(int value) #elif defined(PORTAUDIO) #else QVariant v = ui->audioOutputCombo->itemData(value); - rxSetup.port = v.value(); + rxSetup.port = v.value(); #endif rxSetup.name = ui->audioOutputCombo->itemText(value); qDebug(logGui()) << "Changed default audio output to:" << rxSetup.name; @@ -4224,7 +4243,7 @@ void wfmain::on_audioInputCombo_currentIndexChanged(int value) #elif defined(PORTAUDIO) #else QVariant v = ui->audioInputCombo->itemData(value); - txSetup.port = v.value(); + txSetup.port = v.value(); #endif txSetup.name = ui->audioInputCombo->itemText(value); qDebug(logGui()) << "Changed default audio input to:" << txSetup.name; diff --git a/wfview.sln b/wfview.sln index 397c02c..5ed33f9 100644 --- a/wfview.sln +++ b/wfview.sln @@ -20,8 +20,8 @@ Global GlobalSection(ProjectConfigurationPlatforms) = postSolution {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|Win32.ActiveCfg = Debug|Win32 {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|Win32.Build.0 = Debug|Win32 - {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|x64.ActiveCfg = Debug|x64 - {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|x64.Build.0 = Debug|x64 + {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|x64.ActiveCfg = Debug|Win32 + {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|x64.Build.0 = Debug|Win32 {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Debug|x86.ActiveCfg = Debug|x64 {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Release|Win32.ActiveCfg = Release|Win32 {326108AD-FA9D-3AAF-8D3E-062C4DDC34E2}.Release|Win32.Build.0 = Release|Win32 diff --git a/wfview.vcxproj b/wfview.vcxproj index 847643e..a991a53 100644 --- a/wfview.vcxproj +++ b/wfview.vcxproj @@ -1,13 +1,13 @@  - + Release - Win32 + x64 - + Debug - Win32 + x64 @@ -18,7 +18,7 @@ 10.0.19041.0 $(MSBuildProjectDirectory)\QtMsBuild - + v142 release\ false @@ -27,7 +27,7 @@ release\ wfview - + v142 debug\ false @@ -38,26 +38,27 @@ - + - + - debug\debug\wfviewtruerelease\release\wfviewtruefalsemsvc2019core;network;gui;multimedia;widgets;serialport;printsupportmsvc2019core;network;gui;multimedia;widgets;serialport;printsupport + debug\debug\wfviewtruerelease\release\wfviewtruefalsemsvc2019_64_v62core;network;gui;multimedia;widgets;serialport;printsupportmsvc2019_64_v62core;network;gui;multimedia;widgets;serialport;printsupport - + .;..\qcustomplot;..\opus\include;resampler;rtaudio;release;/include;%(AdditionalIncludeDirectories) - -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions) + -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -permissive- -Zc:__cplusplus -Zc:externConstexpr -utf-8 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions) release\ false None 4577;4467;%(DisableSpecificWarnings) Sync + stdcpp17 release\ MaxSpeed - _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX="/usr/local";__WINDOWS_WASAPI__;GITSHORT="eb2f897";HOST="wfview.org";UNAME="build";NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions) + _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX="/usr/local";__WINDOWS_WASAPI__;GITSHORT="ed1684a";HOST="wfview.org";UNAME="build";NDEBUG;QT_NO_DEBUG;%(PreprocessorDefinitions) false MultiThreadedDLL @@ -66,10 +67,11 @@ Level3 true - ..\opus\win32\VS2015\Win32\Release\opus.lib;shell32.lib;%(AdditionalDependencies) - ..\opus\win32\VS2015\Win32\Release;C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories) + ..\opus\win32\VS2015\Win32\Release\opus.lib;$(QTDIR)\lib\Qt6Multimedia.lib;$(QTDIR)\lib\Qt6PrintSupport.lib;$(QTDIR)\lib\Qt6Widgets.lib;$(QTDIR)\lib\Qt6Gui.lib;$(QTDIR)\lib\Qt6SerialPort.lib;$(QTDIR)\lib\Qt6Network.lib;$(QTDIR)\lib\Qt6Core.lib;$(QTDIR)\lib\Qt6EntryPoint.lib;shell32.lib;%(AdditionalDependencies) + ..\opus\win32\VS2015\Win32\Release;%(AdditionalLibraryDirectories) "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) true + true false true false @@ -85,21 +87,22 @@ 0 - _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX=\"/usr/local\";__WINDOWS_WASAPI__;GITSHORT=\"eb2f897\";HOST=\"wfview.org\";UNAME=\"build\";NDEBUG;QT_NO_DEBUG;QT_MULTIMEDIA_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_CORE_LIB;%(PreprocessorDefinitions) + _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX=\"/usr/local\";__WINDOWS_WASAPI__;GITSHORT=\"ed1684a\";HOST=\"wfview.org\";UNAME=\"build\";NDEBUG;QT_NO_DEBUG;QT_MULTIMEDIA_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_CORE_LIB;%(PreprocessorDefinitions) msvc./$(Configuration)/moc_predefs.hMoc'ing %(Identity)...output$(Configuration)moc_%(Filename).cppdefaultRcc'ing %(Identity)...$(Configuration)qrc_%(Filename).cppUic'ing %(Identity)...$(ProjectDir)ui_%(Filename).h - + .;..\qcustomplot;..\opus\include;resampler;rtaudio;debug;/include;%(AdditionalIncludeDirectories) - -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions) + -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -permissive- -Zc:__cplusplus -Zc:externConstexpr -utf-8 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 %(AdditionalOptions) debug\ false ProgramDatabase 4577;4467;%(DisableSpecificWarnings) Sync + stdcpp17 debug\ Disabled - _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX="/usr/local";__WINDOWS_WASAPI__;GITSHORT="eb2f897";HOST="wfview.org";UNAME="build";%(PreprocessorDefinitions) + _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX="/usr/local";__WINDOWS_WASAPI__;GITSHORT="ed1684a";HOST="wfview.org";UNAME="build";%(PreprocessorDefinitions) false MultiThreadedDebugDLL true @@ -107,8 +110,8 @@ Level3 true - ..\opus\win32\VS2015\Win32\Debug\opus.lib;shell32.lib;%(AdditionalDependencies) - ..\opus\win32\VS2015\Win32\Debug;C:\opensslx86\lib;C:\Utils\my_sql\mysql-5.7.25-win32\lib;C:\Utils\postgresqlx86\pgsql\lib;%(AdditionalLibraryDirectories) + ..\opus\win32\VS2015\Win32\Debug\opus.lib;$(QTDIR)\lib\Qt6Multimediad.lib;$(QTDIR)\lib\Qt6PrintSupportd.lib;$(QTDIR)\lib\Qt6Widgetsd.lib;$(QTDIR)\lib\Qt6Guid.lib;$(QTDIR)\lib\Qt6SerialPortd.lib;$(QTDIR)\lib\Qt6Networkd.lib;$(QTDIR)\lib\Qt6Cored.lib;$(QTDIR)\lib\Qt6EntryPointd.lib;shell32.lib;%(AdditionalDependencies) + ..\opus\win32\VS2015\Win32\Debug;%(AdditionalLibraryDirectories) "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) true true @@ -124,7 +127,7 @@ 0 - _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;USE_SSE;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX=\"/usr/local\";__WINDOWS_WASAPI__;GITSHORT=\"eb2f897\";HOST=\"wfview.org\";UNAME=\"build\";QT_MULTIMEDIA_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions) + _WINDOWS;UNICODE;_UNICODE;WIN32;_ENABLE_EXTENDED_ALIGNED_STORAGE;WIN64;QT_DEPRECATED_WARNINGS;QCUSTOMPLOT_COMPILE_LIBRARY;OUTSIDE_SPEEX;RANDOM_PREFIX=wf;PREFIX=\"/usr/local\";__WINDOWS_WASAPI__;GITSHORT=\"ed1684a\";HOST=\"wfview.org\";UNAME=\"build\";QT_MULTIMEDIA_LIB;QT_PRINTSUPPORT_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_SERIALPORT_LIB;QT_NETWORK_LIB;QT_CORE_LIB;_DEBUG;%(PreprocessorDefinitions) msvc./$(Configuration)/moc_predefs.hMoc'ing %(Identity)...output$(Configuration)moc_%(Filename).cppdefaultRcc'ing %(Identity)...$(Configuration)qrc_%(Filename).cppUic'ing %(Identity)...$(ProjectDir)ui_%(Filename).h @@ -348,19 +351,19 @@ Document - true - $(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs) - cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -faligned-new -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h - Generate moc_predefs.h - debug\moc_predefs.h;%(Outputs) + true + $(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs) + cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -permissive- -Zc:__cplusplus -Zc:externConstexpr -faligned-new -Zi -MDd -std:c++17 -utf-8 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h + Generate moc_predefs.h + debug\moc_predefs.h;%(Outputs) Document - $(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs) - cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -O2 -MD -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >release\moc_predefs.h - Generate moc_predefs.h - release\moc_predefs.h;%(Outputs) - true + $(QTDIR)\mkspecs\features\data\dummy.cpp;%(AdditionalInputs) + cl -Bx"$(QTDIR)\bin\qmake.exe" -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -permissive- -Zc:__cplusplus -Zc:externConstexpr -fvisibility=hidden -fvisibility-inlines-hidden -faligned-new -O2 -MD -std:c++17 -utf-8 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E $(QTDIR)\mkspecs\features\data\dummy.cpp 2>NUL >release\moc_predefs.h + Generate moc_predefs.h + release\moc_predefs.h;%(Outputs) + true @@ -517,7 +520,7 @@ - resourcesresources + resourcesresources @@ -531,7 +534,7 @@ - stylestyle + stylestyle diff --git a/wfview_resource.rc b/wfview_resource.rc index 6ccdf69..75dc080 100644 --- a/wfview_resource.rc +++ b/wfview_resource.rc @@ -1,6 +1,6 @@ #include -IDI_ICON1 ICON DISCARDABLE "C:\\Users\\Phil\\source\\repos\\wfview\\resources\\wfview.ico" +IDI_ICON1 ICON "C:\\Users\\Phil\\source\\repos\\wfview\\resources\\wfview.ico" VS_VERSION_INFO VERSIONINFO FILEVERSION 0,0,0,0 @@ -11,9 +11,9 @@ VS_VERSION_INFO VERSIONINFO #else FILEFLAGS 0x0L #endif - FILEOS VOS__WINDOWS32 + FILEOS VOS_NT_WINDOWS32 FILETYPE VFT_DLL - FILESUBTYPE 0x0L + FILESUBTYPE VFT2_UNKNOWN BEGIN BLOCK "StringFileInfo" BEGIN @@ -26,6 +26,9 @@ VS_VERSION_INFO VERSIONINFO VALUE "OriginalFilename", "wfview.exe\0" VALUE "ProductName", "wfview\0" VALUE "ProductVersion", "0.0.0.0\0" + VALUE "InternalName", "\0" + VALUE "Comments", "\0" + VALUE "LegalTrademarks", "\0" END END BLOCK "VarFileInfo"