File indexing completed on 2024-05-12 05:25:41
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include <QTabWidget> 0009 class KActionCollection; 0010 class SieveEditorTabWidget : public QTabWidget 0011 { 0012 Q_OBJECT 0013 public: 0014 explicit SieveEditorTabWidget(KActionCollection *ac, QWidget *parent = nullptr); 0015 ~SieveEditorTabWidget() override; 0016 0017 Q_SIGNALS: 0018 void tabRemoveAllExclude(int index); 0019 void tabCloseRequestedIndex(int index); 0020 void tabCloseAllTab(); 0021 0022 private: 0023 void slotTabContextMenuRequest(const QPoint &pos); 0024 void slotCloseCurrentTab(); 0025 0026 private: 0027 void initActions(KActionCollection *ac); 0028 };