File indexing completed on 2024-05-19 05:54:13
0001 /* This file was part of the KDE libraries 0002 0003 SPDX-FileCopyrightText: 2021 Tomaz Canabrava <tcanabrava@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef SSHTREEVIEW_H 0009 #define SSHTREEVIEW_H 0010 0011 #include <QTreeView> 0012 0013 class SshTreeView : public QTreeView 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit SshTreeView(QWidget *parent = nullptr); 0018 ~SshTreeView() noexcept override; 0019 0020 // mouseClicked already exists but only sends QModelIndex 0021 Q_SIGNAL void mouseButtonClicked(Qt::MouseButton button, const QModelIndex &idx); 0022 void mouseReleaseEvent(QMouseEvent *ev) override; 0023 }; 0024 0025 #endif