File indexing completed on 2024-10-13 07:56:52
0001 /* 0002 SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef VIEWSTABLEVIEW_H 0007 #define VIEWSTABLEVIEW_H 0008 0009 // Qt 0010 #include <QTableView> 0011 #include <QMouseEvent> 0012 0013 namespace Latte { 0014 namespace Settings { 0015 namespace View { 0016 0017 class ViewsTableView : public QTableView 0018 { 0019 Q_OBJECT 0020 public: 0021 ViewsTableView(QWidget *parent = nullptr); 0022 0023 signals: 0024 void selectionsChanged(); 0025 0026 protected: 0027 void mousePressEvent(QMouseEvent *event) override; 0028 void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override; 0029 0030 0031 }; 0032 0033 } 0034 } 0035 } 0036 #endif