File indexing completed on 2024-12-22 04:45:37
0001 /* 0002 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "permissionstreeview.h" 0008 #include <QHeaderView> 0009 0010 PermissionsTreeView::PermissionsTreeView(QWidget *parent) 0011 : QTreeView(parent) 0012 { 0013 setRootIsDecorated(false); 0014 setSortingEnabled(true); 0015 sortByColumn(0, Qt::AscendingOrder); 0016 header()->setSectionsClickable(true); 0017 setContextMenuPolicy(Qt::CustomContextMenu); 0018 } 0019 0020 PermissionsTreeView::~PermissionsTreeView() = default; 0021 0022 #include "moc_permissionstreeview.cpp"