Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Qt6 Port #78

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Copyright (c) 2009 Michal Policht
All rights reserved.

RtMidi: realtime MIDI i/o C++ classes
Copyright (c) 2003-2014 Gary P. Scavone
Copyright (c) 2003-2022 Gary P. Scavone
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Please see that page for information on running and using Hairless Midiserial, a

Hairless uses git submodules for library dependencies, so you should use `git clone --recursive URL` when cloning from Github. Alternatively, you can run `git submodule update --init` in order to fetch the submodules to an already-cloned directory.

Hairless Midiserial Bridge release 0.4 was built with Qt 4.7.3. It's also been built and run under Qt 4.7.4 & 4.8.6. Newer Qt version 5.0 will probably require code changes in order to compile and/or run.
~~Hairless Midiserial Bridge release 0.4 was built with Qt 4.7.3. It's also been built and run under Qt 4.7.4 & 4.8.6. Newer Qt version 5.0 will probably require code changes in order to compile and/or run.~~
This fork has been ported to Qt 6.3.1 and tested on macOS Monterey on Apple M1 Pro CPU.
I haven't tested it on Windows and Linux (yet).

The Qt package should contain all dependencies, the graphical IDE "Qt Creator" or the program "qmake" can be used to compile the project hairless-midiserial.pro.

Expand Down
5 changes: 3 additions & 2 deletions hairless-midiserial.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
#-------------------------------------------------

QT += core gui
QT += widgets

TARGET = hairless-midiserial
TEMPLATE = app
Expand Down Expand Up @@ -40,7 +40,8 @@ INCLUDEPATH += src/
# Universal binary for OS X

macx {
CONFIG += ppc x86
# QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
CONFIG += x86_64 arm64
}


Expand Down
2 changes: 1 addition & 1 deletion src/BlinkenLight.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define BLINKENLIGHT_H

#include <QObject>
#include <QLabel>
#include <QtWidgets/QLabel>
#include <QTimer>

/*
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void Bridge::sendMidiMessage() {
if(msg_data.length() == 0)
return;
if(bufferStartsWith(MSG_DEBUG)) {
QString debug_msg = QString::fromAscii(msg_data.mid(4, msg_data[3]).data());
QString debug_msg = QString::fromLatin1(msg_data.mid(4, msg_data[3]).data());
emit displayMessage(applyTimeStamp(QString("Serial Says: %1").arg(debug_msg)));
} else {
emit debugMessage(applyTimeStamp(QString("Serial In: %1").arg(describeMIDI(msg_data))));
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <QtGui/QApplication>
#include <QtWidgets/QApplication>
#include "ui/mainwindow.h"

int main(int argc, char *argv[])
Expand Down
2 changes: 1 addition & 1 deletion src/ui/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
{
ui->setupUi(this);

QString text = ui->label_info->text().arg(QString::fromAscii(VERSION)).arg(QString::fromAscii(__DATE__));
QString text = ui->label_info->text().arg(QString::fromLatin1(VERSION)).arg(QString::fromLatin1(__DATE__));
ui->label_info->setText(text);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ui/aboutdialog.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H

#include <QDialog>
#include <QtWidgets/QDialog>

namespace Ui {
class About;
Expand Down
8 changes: 4 additions & 4 deletions src/ui/mainwindow.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QComboBox>
#include <QLabel>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QLabel>
#include <QTime>
#include <QMenuBar>
#include <QtWidgets/QMenuBar>
#include <QTimer>
#include "RtMidi.h"
#include "Bridge.h"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/settingsdialog.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>
#include <QTWidgets/QDialog>

namespace Ui {
class SettingsDialog;
Expand Down