File indexing completed on 2024-12-22 05:05:20
0001 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl.schwan@gnupg.com> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 #include "attachmentview_p.h" 0005 #include <QHeaderView> 0006 0007 AttachmentView::AttachmentView(QWidget *parent) 0008 : QTreeView(parent) 0009 { 0010 setSelectionMode(QAbstractItemView::ExtendedSelection); 0011 setRootIsDecorated(false); 0012 setUniformRowHeights(true); 0013 header()->setSectionResizeMode(QHeaderView::Interactive); 0014 header()->setStretchLastSection(false); 0015 setColumnWidth(0, 200); 0016 } 0017 0018 void AttachmentView::contextMenuEvent(QContextMenuEvent *event) 0019 { 0020 Q_UNUSED(event); 0021 Q_EMIT contextMenuRequested(); 0022 } 0023 0024 #include "moc_attachmentview_p.cpp"