File indexing completed on 2025-02-09 07:11:33
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_TABWIDGET_HPP 0010 #define KASTEN_TABWIDGET_HPP 0011 0012 // Qt 0013 #include <QTabWidget> 0014 0015 namespace Kasten { 0016 0017 class TabWidget : public QTabWidget 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit TabWidget(QWidget* parent = nullptr); 0023 0024 ~TabWidget() override; 0025 0026 Q_SIGNALS: 0027 void mouseMiddleClick(); 0028 void emptySpaceMouseDoubleClicked(); 0029 void testCanDecode(const QDragMoveEvent* event, bool& accept); 0030 void receivedDropEvent(QDropEvent* event); 0031 0032 protected: 0033 void mouseReleaseEvent(QMouseEvent* event) override; 0034 void mouseDoubleClickEvent(QMouseEvent* event) override; 0035 void dragEnterEvent(QDragEnterEvent* event) override; 0036 void dragMoveEvent(QDragMoveEvent* event) override; 0037 void dropEvent(QDropEvent* event) override; 0038 }; 0039 0040 } 0041 0042 #endif