File indexing completed on 2025-02-02 04:11:32

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QTabBar>
0010 
0011 namespace glaxnimate::gui {
0012 
0013 class ClickableTabBar : public QTabBar
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     using QTabBar::QTabBar;
0019 
0020 protected:
0021     void mouseReleaseEvent(QMouseEvent * event) override;
0022 
0023 Q_SIGNALS:
0024     void context_menu_requested(int index);
0025 };
0026 
0027 } // namespace glaxnimate::gui