X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fselectionmodelsynchronizer.h;h=b830d31ad2c41f4a391d18471dc15901d3222a5c;hb=98144aaad0cd747f186edcd0e36a1d67326ac766;hp=b3d1214d5fbb10542445530827199ccb4012f123;hpb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;p=quassel.git diff --git a/src/client/selectionmodelsynchronizer.h b/src/client/selectionmodelsynchronizer.h index b3d1214d..b830d31a 100644 --- a/src/client/selectionmodelsynchronizer.h +++ b/src/client/selectionmodelsynchronizer.h @@ -32,7 +32,7 @@ class CLIENT_EXPORT SelectionModelSynchronizer : public QObject Q_OBJECT public: - SelectionModelSynchronizer(QAbstractItemModel *parent = 0); + SelectionModelSynchronizer(QAbstractItemModel *parent = nullptr); void synchronizeSelectionModel(QItemSelectionModel *selectionModel); void removeSelectionModel(QItemSelectionModel *selectionModel); @@ -57,8 +57,8 @@ private slots: private: QAbstractItemModel *_model; QItemSelectionModel _selectionModel; - bool _changeCurrentEnabled; - bool _changeSelectionEnabled; + bool _changeCurrentEnabled{true}; + bool _changeSelectionEnabled{true}; bool checkBaseModel(QItemSelectionModel *model); QModelIndex mapFromSource(const QModelIndex &sourceIndex, const QItemSelectionModel *selectionModel);