OlivierLDff / QOlm

🧱 QAbstractListModel subclass that provide List of QObject to C++ and Qml
https://olivierldff.github.io/QOlm/
Other
29 stars 9 forks source link

Compilation broken #5

Closed Milerius closed 3 years ago

Milerius commented 3 years ago
/Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qmaterial-src/src/Qaterial/FolderTreeModel.cpp:161:39: error: no type named 'InsertedCallbackArgs' in 'qaterial::FolderTreeModel'
        [this](const FolderTreeModel::InsertedCallbackArgs& folder)
                     ~~~~~~~~~~~~~~~~~^
/Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qmaterial-src/src/Qaterial/FolderTreeModel.cpp:160:5: error: no matching member function for call to 'onInserted'
    onInserted(
    ^~~~~~~~~~
/Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qolm-src/include/QOlm/QOlm.hpp:931:29: note: candidate function not viable: no known conversion from '(lambda at /Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qmaterial-src/src/Qaterial/FolderTreeModel.cpp:161:9)' to 'std::function<void (FolderTreeModel *, int)>' for 1st argument
    QMetaObject::Connection onInserted(std::function<void(_Object* object, int index)> callback)
                            ^
/Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qolm-src/include/QOlm/QOlm.hpp:935:29: note: candidate function not viable: no known conversion from '(lambda at /Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qmaterial-src/src/Qaterial/FolderTreeModel.cpp:161:9)' to 'std::function<void (FolderTreeModel *)>' for 1st argument
    QMetaObject::Connection onInserted(std::function<void(_Object* object)> callback)
                            ^
/Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qolm-src/include/QOlm/QOlm.hpp:898:29: note: candidate function not viable: requires 2 arguments, but 1 was provided
    QMetaObject::Connection onInserted(QObject* receiver, std::function<void(_Object* object, int index)> callback)
                            ^
/Users/milerius/Documents/atomicDEX-Desktop/cmake-build-release/_deps/qolm-src/include/QOlm/QOlm.hpp:921:29: note: candidate function not viable: requires 2 arguments, but 1 was provided
    QMetaObject::Connection onInserted(QObject* receiver, std::function<void(_Object* object)> callback)

I'm not able to compile after updating all the fork

OlivierLDff commented 3 years ago

https://github.com/OlivierLDff/Qaterial/commit/dda686b2230ab993eaab4bdf6fbf17684380b1a4 24076a0d2eca57220f21fb602beabbc276422963 introduce a breaking change to remove eventpp from dependencies.