File indexing completed on 2024-05-12 04:38:23
0001 /* 0002 SPDX-FileCopyrightText: David Nolden <david.nolden.kdevelop@art-master.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_WORKINGSETFILELABEL_H 0008 #define KDEVPLATFORM_WORKINGSETFILELABEL_H 0009 0010 #include <QLabel> 0011 0012 namespace KDevelop { 0013 0014 class WorkingSetFileLabel : public QLabel { 0015 Q_OBJECT 0016 0017 public: 0018 WorkingSetFileLabel(); 0019 void mouseReleaseEvent(QMouseEvent* ev) override; 0020 void setIsActiveFile(bool active); 0021 0022 bool isActive() const; 0023 0024 void emitClicked(); 0025 0026 Q_SIGNALS: 0027 void clicked(); 0028 0029 private: 0030 bool m_isActive = false; 0031 }; 0032 0033 } 0034 0035 #endif // KDEVPLATFORM_WORKINGSETFILELABEL_H