mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 08:54:41 -04:00
Working toward compiling WSJT-X under Qt5. It doesn't work, yet.
The present code is still OK in Qt 4.x. For Qt5, must replace #include <QtGui> by #include <QtWidgets> in several places, and uncomment these lines //#include <QtConcurrent/QtConcurrentMap> //#include <QtConcurrent/QtConcurrentRun> in mainwindow.cpp. More work still to do, for Qt5! git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3309 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ void getfile(QString fname, int ntrperiod)
|
||||
{
|
||||
|
||||
char name[80];
|
||||
strcpy(name,fname.toAscii());
|
||||
strcpy(name,fname.toLatin1());
|
||||
FILE* fp=fopen(name,"rb");
|
||||
|
||||
int i0=fname.indexOf(".wav");
|
||||
@@ -53,7 +53,7 @@ void savewav(QString fname, int ntrperiod)
|
||||
int npts=ntrperiod*12000;
|
||||
// qint16* buf=(qint16*)malloc(2*npts);
|
||||
char name[80];
|
||||
strcpy(name,fname.toAscii());
|
||||
strcpy(name,fname.toLatin1());
|
||||
FILE* fp=fopen(name,"wb");
|
||||
|
||||
if(fp != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user