/opt/local/var/macports/build/lan-share-082a7e60/work/compwrap/cxx/usr/bin/clang++ -c -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -I/opt/local/libexec/openssl3/include -Os -stdlib=libc++ -arch x86_64 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.15 -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -Isrc -I. -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/include -I. -Isrc -I. -F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib -o aboutdialog.o src/ui/aboutdialog.cpp
/opt/local/var/macports/build/lan-share-082a7e60/work/compwrap/cxx/usr/bin/clang++ -c -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -I/opt/local/libexec/openssl3/include -Os -stdlib=libc++ -arch x86_64 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.15 -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4/share/mkspecs/macx-g++ -Isrc -I. -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4/include -I. -Isrc -I. -F/opt/local/libexec/qt4/Library/Frameworks -F/opt/local/libexec/qt4/lib -o settingsdialog.o src/ui/settingsdialog.cpp
src/settings.cpp:24:10: fatal error: 'QStandardPaths' file not found
#include <QStandardPaths>
^~~~~~~~~~~~~~~~
1 error generated.
make: *** [settings.o] Error 1
make: *** Waiting for unfinished jobs....
src/singleinstance.cpp:26:38: error: 'newConnection' is a protected member of 'QLocalServer'
connect(&mServer, &QLocalServer::newConnection, this, &SingleInstance::onNewConnection);
^
/opt/local/libexec/qt4/Library/Frameworks/QtNetwork.framework/Versions/4/Headers/qlocalserver.h:64:10: note: declared protected here
void newConnection();
^
src/singleinstance.cpp:26:5: error: no matching member function for call to 'connect'
connect(&mServer, &QLocalServer::newConnection, this, &SingleInstance::onNewConnection);
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (QLocalServer::*)()' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (QLocalServer::*)()' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (QLocalServer::*)()' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
2 errors generated.
make: *** [singleinstance.o] Error 1
src/util.cpp:55:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto fi : fiList)
^
src/util.cpp:55:18: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto fi : fiList)
^
src/util.cpp:59:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto fi : fiList) {
^
src/util.cpp:59:18: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto fi : fiList) {
^
src/util.cpp:69:22: error: no viable conversion from 'QVector<QPair<QString, QString> >' to 'const QPair<QString, QString>'
pairs.append(otherPairs);
^~~~~~~~~~
/opt/local/libexec/qt4/include/QtCore/qpair.h:54:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'QVector<QPair<QString, QString> >' to 'const QPair<QString, QString> &' for 1st argument
struct QPair
^
/opt/local/libexec/qt4/include/QtCore/qvector.h:160:26: note: passing argument to parameter 't' here
void append(const T &t);
^
4 warnings and 1 error generated.
make: *** [util.o] Error 1
In file included from src/main.cpp:23:
In file included from src/ui/mainwindow.h:25:
In file included from src/model/transfertablemodel.h:27:
In file included from src/transfer/transfer.h:27:
src/model/transferinfo.h:27:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class TransferState {
^
src/model/transferinfo.h:37:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class TransferType {
^
In file included from src/main.cpp:23:
In file included from src/ui/mainwindow.h:25:
In file included from src/model/transfertablemodel.h:27:
src/transfer/transfer.h:30:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class PacketType : char
^
In file included from src/main.cpp:23:
In file included from src/ui/mainwindow.h:25:
src/model/transfertablemodel.h:38:75: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override;
^
src/model/transfertablemodel.h:39:78: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const override;
^
src/model/transfertablemodel.h:40:87: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
^
src/model/transfertablemodel.h:41:109: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
^
src/model/transfertablemodel.h:51:10: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class Column : int {
^
src/model/transfertablemodel.h:32:5: warning: 'metaObject' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:162:32: note: expanded from macro 'Q_OBJECT'
virtual const QMetaObject *metaObject() const; \
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qabstractitemmodel.h:347:5: note: overridden virtual function is here
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:162:32: note: expanded from macro 'Q_OBJECT'
virtual const QMetaObject *metaObject() const; \
^
In file included from src/main.cpp:23:
In file included from src/ui/mainwindow.h:25:
src/model/transfertablemodel.h:32:5: warning: 'qt_metacast' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:163:19: note: expanded from macro 'Q_OBJECT'
virtual void *qt_metacast(const char *); \
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qabstractitemmodel.h:347:5: note: overridden virtual function is here
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:163:19: note: expanded from macro 'Q_OBJECT'
virtual void *qt_metacast(const char *); \
^
In file included from src/main.cpp:23:
In file included from src/ui/mainwindow.h:25:
src/model/transfertablemodel.h:32:5: warning: 'qt_metacall' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:165:17: note: expanded from macro 'Q_OBJECT'
virtual int qt_metacall(QMetaObject::Call, int, void **); \
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qabstractitemmodel.h:347:5: note: overridden virtual function is here
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:165:17: note: expanded from macro 'Q_OBJECT'
virtual int qt_metacall(QMetaObject::Call, int, void **); \
^
In file included from src/main.cpp:23:
In file included from src/ui/mainwindow.h:28:
In file included from src/transfer/transferserver.h:25:
src/transfer/receiver.h:35:19: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void resume() override;
^
src/transfer/receiver.h:36:18: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void pause() override;
^
src/transfer/receiver.h:37:19: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void cancel() override;
^
src/transfer/receiver.h:43:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processHeaderPacket(QByteArray& data) override;
^
src/transfer/receiver.h:44:46: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processDataPacket(QByteArray& data) override;
^
src/transfer/receiver.h:45:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processFinishPacket(QByteArray& data) override;
^
src/transfer/receiver.h:46:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processCancelPacket(QByteArray& data) override;
^
In file included from src/main.cpp:23:
src/ui/mainwindow.h:69:46: error: unknown type name 'QItemSelection'
void onSenderTableSelectionChanged(const QItemSelection& selected,
^
src/ui/mainwindow.h:70:46: error: unknown type name 'QItemSelection'
const QItemSelection& deselected);
^
src/ui/mainwindow.h:71:48: error: unknown type name 'QItemSelection'
void onReceiverTableSelectionChanged(const QItemSelection& selected,
^
src/ui/mainwindow.h:72:48: error: unknown type name 'QItemSelection'
const QItemSelection& deselected);
^
src/main.cpp:42:9: error: no member named 'setApplicationDisplayName' in 'QApplication'; did you mean 'setApplicationName'?
app.setApplicationDisplayName(PROGRAM_NAME);
^~~~~~~~~~~~~~~~~~~~~~~~~
setApplicationName
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qcoreapplication.h:113:17: note: 'setApplicationName' declared here
static void setApplicationName(const QString &application);
^
src/main.cpp:49:44: error: 'newInstanceCreated' is a protected member of 'SingleInstance'
QObject::connect(&si, &SingleInstance::newInstanceCreated, [&mainWindow]() {
^
src/singleinstance.h:43:10: note: declared protected here
void newInstanceCreated();
^
src/main.cpp:49:64: error: expected expression
QObject::connect(&si, &SingleInstance::newInstanceCreated, [&mainWindow]() {
^
18 warnings and 7 errors generated.
make: *** [main.o] Error 1
In file included from src/ui/mainwindow.cpp:30:
In file included from src/ui/mainwindow.h:25:
In file included from src/model/transfertablemodel.h:27:
In file included from src/transfer/transfer.h:27:
src/model/transferinfo.h:27:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class TransferState {
^
src/model/transferinfo.h:37:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class TransferType {
^
In file included from src/ui/mainwindow.cpp:30:
In file included from src/ui/mainwindow.h:25:
In file included from src/model/transfertablemodel.h:27:
src/transfer/transfer.h:30:6: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class PacketType : char
^
In file included from src/ui/mainwindow.cpp:30:
In file included from src/ui/mainwindow.h:25:
src/model/transfertablemodel.h:38:75: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const override;
^
src/model/transfertablemodel.h:39:78: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const override;
^
src/model/transfertablemodel.h:40:87: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
^
src/model/transfertablemodel.h:41:109: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
^
src/model/transfertablemodel.h:51:10: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class Column : int {
^
src/model/transfertablemodel.h:32:5: warning: 'metaObject' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:162:32: note: expanded from macro 'Q_OBJECT'
virtual const QMetaObject *metaObject() const; \
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qabstractitemmodel.h:347:5: note: overridden virtual function is here
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:162:32: note: expanded from macro 'Q_OBJECT'
virtual const QMetaObject *metaObject() const; \
^
In file included from src/ui/mainwindow.cpp:30:
In file included from src/ui/mainwindow.h:25:
src/model/transfertablemodel.h:32:5: warning: 'qt_metacast' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:163:19: note: expanded from macro 'Q_OBJECT'
virtual void *qt_metacast(const char *); \
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qabstractitemmodel.h:347:5: note: overridden virtual function is here
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:163:19: note: expanded from macro 'Q_OBJECT'
virtual void *qt_metacast(const char *); \
^
In file included from src/ui/mainwindow.cpp:30:
In file included from src/ui/mainwindow.h:25:
src/model/transfertablemodel.h:32:5: warning: 'qt_metacall' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:165:17: note: expanded from macro 'Q_OBJECT'
virtual int qt_metacall(QMetaObject::Call, int, void **); \
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qabstractitemmodel.h:347:5: note: overridden virtual function is here
Q_OBJECT
^
/opt/local/libexec/qt4/include/QtCore/qobjectdefs.h:165:17: note: expanded from macro 'Q_OBJECT'
virtual int qt_metacall(QMetaObject::Call, int, void **); \
^
In file included from src/ui/mainwindow.cpp:30:
In file included from src/ui/mainwindow.h:28:
In file included from src/transfer/transferserver.h:25:
src/transfer/receiver.h:35:19: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void resume() override;
^
src/transfer/receiver.h:36:18: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void pause() override;
^
src/transfer/receiver.h:37:19: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void cancel() override;
^
src/transfer/receiver.h:43:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processHeaderPacket(QByteArray& data) override;
^
src/transfer/receiver.h:44:46: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processDataPacket(QByteArray& data) override;
^
src/transfer/receiver.h:45:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processFinishPacket(QByteArray& data) override;
^
src/transfer/receiver.h:46:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processCancelPacket(QByteArray& data) override;
^
In file included from src/ui/mainwindow.cpp:38:
src/transfer/sender.h:35:19: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void resume() override;
^
src/transfer/sender.h:36:18: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void pause() override;
^
src/transfer/sender.h:37:19: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void cancel() override;
^
src/transfer/sender.h:49:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processCancelPacket(QByteArray& data) override;
^
src/transfer/sender.h:50:47: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processPausePacket(QByteArray& data) override;
^
src/transfer/sender.h:51:48: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
void processResumePacket(QByteArray& data) override;
^
src/ui/mainwindow.cpp:43:5: warning: field 'ui' will be initialized after field 'mForceQuit' [-Wreorder-ctor]
ui(new Ui::MainWindow), mForceQuit(false)
^
src/ui/mainwindow.cpp:65:66: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
ui->senderTableView->setColumnWidth((int)TransferTableModel::Column::FileName, 340);
^
src/ui/mainwindow.cpp:66:66: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
ui->senderTableView->setColumnWidth((int)TransferTableModel::Column::Progress, 160);
^
src/ui/mainwindow.cpp:68:68: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
ui->receiverTableView->setColumnWidth((int)TransferTableModel::Column::FileName, 340);
^
src/ui/mainwindow.cpp:69:68: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
ui->receiverTableView->setColumnWidth((int)TransferTableModel::Column::Progress, 160);
^
src/ui/mainwindow.cpp:91:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto checkTransferState = [](Transfer* t) {
^
src/ui/mainwindow.cpp:91:31: error: expected expression
auto checkTransferState = [](Transfer* t) {
^
src/ui/mainwindow.cpp:100:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto checkTransferModel = [&](TransferTableModel* model) {
^
src/ui/mainwindow.cpp:100:31: error: expected expression
auto checkTransferModel = [&](TransferTableModel* model) {
^
src/ui/mainwindow.cpp:149:44: error: 'newReceiverAdded' is a protected member of 'TransferServer'
connect(mTransServer, &TransferServer::newReceiverAdded, this, &MainWindow::onNewReceiverAdded);
^
src/transfer/transferserver.h:38:10: note: declared protected here
void newReceiverAdded(Receiver* receiver);
^
src/ui/mainwindow.cpp:149:5: error: no matching member function for call to 'connect'
connect(mTransServer, &TransferServer::newReceiverAdded, this, &MainWindow::onNewReceiverAdded);
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (TransferServer::*)(Receiver *)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (TransferServer::*)(Receiver *)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (TransferServer::*)(Receiver *)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
src/ui/mainwindow.cpp:152:46: error: 'selectionChanged' is a protected member of 'QItemSelectionModel'
connect(senderSel, &QItemSelectionModel::selectionChanged,
^
/opt/local/libexec/qt4/include/QtGui/qitemselectionmodel.h:207:10: note: declared protected here
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
^
src/ui/mainwindow.cpp:152:5: error: no matching member function for call to 'connect'
connect(senderSel, &QItemSelectionModel::selectionChanged,
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (QItemSelectionModel::*)(const QItemSelection &, const QItemSelection &)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (QItemSelectionModel::*)(const QItemSelection &, const QItemSelection &)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (QItemSelectionModel::*)(const QItemSelection &, const QItemSelection &)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
src/ui/mainwindow.cpp:156:48: error: 'selectionChanged' is a protected member of 'QItemSelectionModel'
connect(receiverSel, &QItemSelectionModel::selectionChanged,
^
/opt/local/libexec/qt4/include/QtGui/qitemselectionmodel.h:207:10: note: declared protected here
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
^
src/ui/mainwindow.cpp:156:5: error: no matching member function for call to 'connect'
connect(receiverSel, &QItemSelectionModel::selectionChanged,
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (QItemSelectionModel::*)(const QItemSelection &, const QItemSelection &)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (QItemSelectionModel::*)(const QItemSelection &, const QItemSelection &)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (QItemSelectionModel::*)(const QItemSelection &, const QItemSelection &)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
src/ui/mainwindow.cpp:165:79: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
QModelIndex progressIdx = mSenderModel->index(0, (int)TransferTableModel::Column::Progress);
^
src/ui/mainwindow.cpp:171:55: error: 'progressChanged' is a protected member of 'TransferInfo'
connect(sender->getTransferInfo(), &TransferInfo::progressChanged, progress, &QProgressBar::setValue);
^
src/model/transferinfo.h:75:10: note: declared protected here
void progressChanged(int progress);
^
src/ui/mainwindow.cpp:171:5: error: no matching member function for call to 'connect'
connect(sender->getTransferInfo(), &TransferInfo::progressChanged, progress, &QProgressBar::setValue);
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(int)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(int)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(int)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
src/ui/mainwindow.cpp:182:30: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (Device receiver : receivers) {
^
src/ui/mainwindow.cpp:190:22: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto p : dirNameAndFullPath) {
^
src/ui/mainwindow.cpp:190:29: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto p : dirNameAndFullPath) {
^
src/ui/mainwindow.cpp:211:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto fName : fileNames)
^
src/ui/mainwindow.cpp:211:21: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto fName : fileNames)
^
src/ui/mainwindow.cpp:244:10: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto dirName : dirs) {
^
src/ui/mainwindow.cpp:244:23: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (auto dirName : dirs) {
^
src/ui/mainwindow.cpp:249:22: error: no viable conversion from 'QVector<QPair<QString, QString> >' to 'const QPair<QString, QString>'
pairs.append(ps);
^~
/opt/local/libexec/qt4/include/QtCore/qcontainerfwd.h:60:38: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'QVector<QPair<QString, QString> >' to 'const QPair<QString, QString> &' for 1st argument
template <class T1, class T2> struct QPair;
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qvector.h:160:26: note: passing argument to parameter 't' here
void append(const T &t);
^
src/ui/mainwindow.cpp:270:52: error: 'progressChanged' is a protected member of 'TransferInfo'
connect(rec->getTransferInfo(), &TransferInfo::progressChanged, progress, &QProgressBar::setValue);
^
src/model/transferinfo.h:75:10: note: declared protected here
void progressChanged(int progress);
^
src/ui/mainwindow.cpp:270:5: error: no matching member function for call to 'connect'
connect(rec->getTransferInfo(), &TransferInfo::progressChanged, progress, &QProgressBar::setValue);
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(int)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(int)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(int)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
src/ui/mainwindow.cpp:272:81: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
QModelIndex progressIdx = mReceiverModel->index(0, (int)TransferTableModel::Column::Progress);
^
src/ui/mainwindow.cpp:289:40: error: 'stateChanged' is a protected member of 'TransferInfo'
connect(ti, &TransferInfo::stateChanged, this, &MainWindow::onSelectedSenderStateChanged);
^
src/model/transferinfo.h:77:10: note: declared protected here
void stateChanged(TransferState state);
^
src/ui/mainwindow.cpp:289:13: error: no matching member function for call to 'connect'
connect(ti, &TransferInfo::stateChanged, this, &MainWindow::onSelectedSenderStateChanged);
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
src/ui/mainwindow.cpp:299:43: error: 'stateChanged' is a protected member of 'TransferInfo'
disconnect(ti, &TransferInfo::stateChanged, this, &MainWindow::onSelectedSenderStateChanged);
^
src/model/transferinfo.h:77:10: note: declared protected here
void stateChanged(TransferState state);
^
src/ui/mainwindow.cpp:299:13: error: no matching member function for call to 'disconnect'
disconnect(ti, &TransferInfo::stateChanged, this, &MainWindow::onSelectedSenderStateChanged);
^~~~~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:244:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const char *' for 2nd argument
static bool disconnect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:246:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const QMetaMethod' for 2nd argument
static bool disconnect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:248:17: note: candidate function not viable: requires at most 3 arguments, but 4 were provided
inline bool disconnect(const char *signal = 0,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:251:17: note: candidate function not viable: requires at most 2 arguments, but 4 were provided
inline bool disconnect(const QObject *receiver, const char *member = 0)
^
src/ui/mainwindow.cpp:348:37: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions]
if (ti && ti->getState() == TransferState::Finish)
^
src/ui/mainwindow.cpp:369:40: error: 'stateChanged' is a protected member of 'TransferInfo'
connect(ti, &TransferInfo::stateChanged, this, &MainWindow::onSelectedReceiverStateChanged);
^
src/model/transferinfo.h:77:10: note: declared protected here
void stateChanged(TransferState state);
^
src/ui/mainwindow.cpp:369:13: error: no matching member function for call to 'connect'
connect(ti, &TransferInfo::stateChanged, this, &MainWindow::onSelectedReceiverStateChanged);
^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const char *' for 2nd argument
static bool connect(const QObject *sender, const char *signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const QMetaMethod' for 2nd argument
static bool connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:22: note: candidate function not viable: no known conversion from 'void (TransferInfo::*)(TransferState)' to 'const char *' for 2nd argument
inline bool QObject::connect(const QObject *asender, const char *asignal,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
41 warnings and 20 errors generated.
make: *** [mainwindow.o] Error 1