X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fselectionmodelsynchronizer.h;h=b830d31ad2c41f4a391d18471dc15901d3222a5c;hp=b3d1214d5fbb10542445530827199ccb4012f123;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=92fc8c5b119111a35ab8423c3cbde5b2a022badf 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);