cmake: use FetchContent for some dependencies (#6560)
this transition is _not_ complete, but we use FetchContent for RapidJSON, PajladaSerialize, PajladaSettings, and PajladaSignals. In the future, we can move towards providing as many of our dependencies as possible through conan & vcpkg so submodule-less builds are possible.
This commit is contained in:
@@ -18,9 +18,10 @@ template <typename T>
|
||||
struct SignalVectorItemEvent;
|
||||
|
||||
template <typename TVectorItem>
|
||||
class SignalVectorModel : public QAbstractTableModel,
|
||||
pajlada::Signals::SignalHolder
|
||||
class SignalVectorModel : public QAbstractTableModel
|
||||
{
|
||||
pajlada::Signals::SignalHolder signalHolder;
|
||||
|
||||
public:
|
||||
SignalVectorModel(int columnCount, QObject *parent = nullptr)
|
||||
: QAbstractTableModel(parent)
|
||||
@@ -66,9 +67,9 @@ public:
|
||||
insert(args);
|
||||
}
|
||||
|
||||
this->managedConnect(vec->itemInserted, insert);
|
||||
this->signalHolder.managedConnect(vec->itemInserted, insert);
|
||||
|
||||
this->managedConnect(vec->itemRemoved, [this](auto args) {
|
||||
this->signalHolder.managedConnect(vec->itemRemoved, [this](auto args) {
|
||||
if (args.caller == this)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user