-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from lgolouz/lgolouz_zxtr-17
Fixed [ZXTR-17] Unable to build the app using Qt 6
- Loading branch information
Showing
19 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
QT += quick gui quickcontrols2 | ||
#******************************************************************************* | ||
# ZX Tape Reviver | ||
#----------------- | ||
# | ||
# Author: Leonid Golouz | ||
# E-mail: [email protected] | ||
# YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
# YouTube channel e-mail: [email protected] | ||
# | ||
# Code modification and distribution of any kind is not allowed without direct | ||
# permission of the Author. | ||
#******************************************************************************* | ||
|
||
CONFIG += c++11 | ||
QT += quick gui quickcontrols2 | ||
|
||
# The following define makes your compiler emit warnings if you use | ||
# any Qt feature that has been marked deprecated (the exact warnings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
import QtQuick 2.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
import QtQuick 2.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
import QtQuick 2.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
import QtQuick 2.15 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include "waveformcontrol.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef WAVEFORMCONTROL_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,19 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include "waveformparser.h" | ||
#include "sources/models/parsersettingsmodel.h" | ||
#include <QDebug> | ||
#include <QDateTime> | ||
#include <QByteArray> | ||
#include <algorithm> | ||
|
||
WaveformParser::WaveformParser(QObject* parent) : | ||
QObject(parent), | ||
|
@@ -330,7 +336,16 @@ QVariantList WaveformParser::getParsedChannelData(uint chNum) const | |
m.insert("blockSize", sizeText); | ||
QString nameText; | ||
if (blockType >= 0) { | ||
for (auto idx = 2; idx < std::min(12, i.data.size()); ++idx) { | ||
const auto loopRange { std::min( | ||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) | ||
(int) | ||
#else | ||
(qsizetype) | ||
#endif | ||
12, i.data.size()) | ||
}; | ||
|
||
for (auto idx = 2; idx < loopRange; ++idx) { | ||
nameText += QChar(i.data.at(idx)); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef WAVEFORMPARSER_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include "wavreader.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef WAVREADER_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
//******************************************************************************* | ||
// ZX Tape Reviver | ||
//----------------- | ||
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef DEFINES_H | ||
#define DEFINES_H | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include <QGuiApplication> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include "fileworkermodel.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef FILEWORKERMODEL_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include "parsersettingsmodel.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef PARSERSETTINGSMODEL_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#include "suspiciouspointsmodel.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ | |
// | ||
// Author: Leonid Golouz | ||
// E-mail: [email protected] | ||
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg | ||
// YouTube channel e-mail: [email protected] | ||
// | ||
// Code modification and distribution of any kind is not allowed without direct | ||
// permission of the Author. | ||
//******************************************************************************* | ||
|
||
#ifndef SUSPICIOUSPOINTSMODEL_H | ||
|