Baloo Widgets

tagcheckbox.h
1/*
2 SPDX-FileCopyrightText: 2010 Sebastian Trueg <trueg@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef _BALOO_TAG_CHECKBOX_H_
8#define _BALOO_TAG_CHECKBOX_H_
9
10#include <QLabel>
11
12namespace Baloo
13{
14class TagCheckBox : public QLabel
15{
17
18public:
19 explicit TagCheckBox(const QString &tag, QWidget *parent = nullptr);
20 ~TagCheckBox() override;
21
22 QString tag() const
23 {
24 return m_tag;
25 }
26
28 void tagClicked(const QString &tag);
29
30protected:
31 bool eventFilter(QObject *watched, QEvent *event) override;
32
33private:
34 void enableUrlHover(bool enabled);
35
36 QString m_tag;
37 bool m_urlHover = false;
38};
39}
40
41#endif
virtual bool event(QEvent *e) override
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 12:00:13 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.