KLineEditEventHandler

KLineEditEventHandler Namespace Reference

Functions

void catchReturnKey (QObject *lineEdit)
 
void handleUrlDrops (QObject *lineEdit)
 

Detailed Description

Event-handling utilities for QLineEdit instances.

Since
6.0

Function Documentation

◆ catchReturnKey()

void KLineEditEventHandler::catchReturnKey ( QObject * lineEdit)

Do not propagate Return or Enter key presses in line edits.

QLineEdit::returnPressed() will still be emitted as normal, but the key event isn't propagated further up the widget hierarchy. This is useful to prevent closing a dialog for example.

Definition at line 50 of file klineediteventhandler.cpp.

◆ handleUrlDrops()

void KLineEditEventHandler::handleUrlDrops ( QObject * lineEdit)

Handle drop events with URLs and replace the current line edit with the dropped URL.

Definition at line 57 of file klineediteventhandler.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.