1/*
2 SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef KLINEEDITURLDROPEVENTFILTER_H
8#define KLINEEDITURLDROPEVENTFILTER_H
9
10#include <kwidgetsaddons_export.h>
11
12#include <QObject>
13
14/*!
15 * \class KLineEditUrlDropEventFilter
16 * \inmodule KWidgetsAddons
17 *
18 * \brief This class provides an event filter that can be installed on a QLineEdit
19 * or a subclass of it (KLineEdit) to make it handle URL drop events so
20 * when a URL is dropped it replaces the existing content.
21 *
22 * Porting from KF5 to KF6:
23 *
24 * The class LineEditUrlDropEventFilter was renamed to KLineEditUrlDropEventFilter.
25 *
26 * \since 6.0
27 */
28class KWIDGETSADDONS_EXPORT KLineEditUrlDropEventFilter : public QObject
29{
30 Q_OBJECT
31
32public:
33 /*!
34 *
35 */
36 explicit KLineEditUrlDropEventFilter(QObject *parent = nullptr);
37 ~KLineEditUrlDropEventFilter() override;
38
39protected:
40 bool eventFilter(QObject *object, QEvent *event) override;
41};
42
43#endif
44

source code of kwidgetsaddons/src/klineediturldropeventfilter.h