X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fabstractitemview.h;h=49396c24e13f7f282721dec9441f0fb9dfd4ff6f;hp=a981667c018c33a9932e21963a0d915f20f26e4f;hb=HEAD;hpb=92fc8c5b119111a35ab8423c3cbde5b2a022badf diff --git a/src/uisupport/abstractitemview.h b/src/uisupport/abstractitemview.h index a981667c..a1994fb3 100644 --- a/src/uisupport/abstractitemview.h +++ b/src/uisupport/abstractitemview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,38 +22,38 @@ #include "uisupport-export.h" -#include +#include #include +#include #include #include -#include -#include #include +#include class UISUPPORT_EXPORT AbstractItemView : public QWidget { Q_OBJECT public: - AbstractItemView(QWidget *parent = 0); + AbstractItemView(QWidget* parent = nullptr); - inline QAbstractItemModel *model() { return _model; } - void setModel(QAbstractItemModel *model); + inline QAbstractItemModel* model() { return _model; } + void setModel(QAbstractItemModel* model); - inline QItemSelectionModel *selectionModel() const { return _selectionModel; } - void setSelectionModel(QItemSelectionModel *selectionModel); + inline QItemSelectionModel* selectionModel() const { return _selectionModel; } + void setSelectionModel(QItemSelectionModel* selectionModel); inline QModelIndex currentIndex() const { return _selectionModel->currentIndex(); } protected slots: - virtual void closeEditor(QWidget *, QAbstractItemDelegate::EndEditHint) {}; - virtual void commitData(QWidget *) {}; - virtual void currentChanged(const QModelIndex &, const QModelIndex &) {}; - virtual void dataChanged(const QModelIndex &, const QModelIndex &) {}; - virtual void editorDestroyed(QObject *) {}; - virtual void rowsAboutToBeRemoved(const QModelIndex &, int, int) {}; - virtual void rowsInserted(const QModelIndex &, int, int) {}; - virtual void selectionChanged(const QItemSelection &, const QItemSelection &) {}; + virtual void closeEditor(QWidget*, QAbstractItemDelegate::EndEditHint){}; + virtual void commitData(QWidget*){}; + virtual void currentChanged(const QModelIndex&, const QModelIndex&){}; + virtual void dataChanged(const QModelIndex&, const QModelIndex&){}; + virtual void editorDestroyed(QObject*){}; + virtual void rowsAboutToBeRemoved(const QModelIndex&, int, int){}; + virtual void rowsInserted(const QModelIndex&, int, int){}; + virtual void selectionChanged(const QItemSelection&, const QItemSelection&){}; protected: QPointer _model;