KWidgetsAddons

klineediturldropeventfilter.h
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 klineediturldropeventfilter.h KLineEditUrlDropEventFilter
16 *
17 * This class provides an event filter that can be installed on a QLineEdit
18 * or a subclass of it (KLineEdit) to make it handle URL drop events so
19 * when a URL is dropped it replaces the existing content.
20 *
21 * Porting from KF5 to KF6:
22 *
23 * The class LineEditUrlDropEventFilter was renamed to KLineEditUrlDropEventFilter.
24 *
25 * @Since 6.0
26 */
27class KWIDGETSADDONS_EXPORT KLineEditUrlDropEventFilter : public QObject
28{
29 Q_OBJECT
30
31public:
32 explicit KLineEditUrlDropEventFilter(QObject *parent = nullptr);
34
35protected:
36 bool eventFilter(QObject *object, QEvent *event) override;
37};
38
39#endif
This class provides an event filter that can be installed on a QLineEdit or a subclass of it (KLineEd...
virtual bool eventFilter(QObject *watched, QEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.