File indexing completed on 2025-01-05 05:14:39
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QTreeView> 0010 0011 class TreeView : public QTreeView 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit TreeView(QWidget *parent = nullptr); 0016 0017 protected Q_SLOTS: 0018 void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; 0019 0020 Q_SIGNALS: 0021 void itemActivated(const QModelIndex &index); 0022 };