MauiKit Controls

SearchField.qml
1/*
2 * Copyright 2018 Camilo Higuita <milo.h@aol.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20import QtQuick
21import org.mauikit.controls as Maui
22
23/**
24 * @inherit QtQuick.Controls.TextField
25 * @brief This is just a MauiKit TextField with a icon to more clearly indicate its intended use case for entering search queries
26 *
27 * @section notes Notes
28 * Chceck MauiKit TextField properties, some of those properties are:
29 *
30 * - `spacing : int` The spacing between the action buttons, added via the `actions` property.
31 * - `menu : Menu` An alias to access the contextual menu, containing entries, such as Copy, Cut, Paste, etc. More entries could be dynamically added using the Menu methods.
32 * - `actions : list<Action>` A set of actions, that will be represented inside of the text field box as flat icons.
33 * - `icon : Icon` The icon to be used in the text field left area. This is an extra visual hint to let the user know what the text field is for, besides the use of the `placeholdertext` property.
34 * - `rightContent : list<QtObject>` An alias to allow adding arbitrary content inside of the right area of the text field box.
35 *
36 * - `cleared()` Emitted when the text field has been cleared using the clear action button.
37 * - `contentDropped(drop)` Emitted when some content has been drag and dropped on the text field area. The `drop` parameter has the information on the event.
38 */
39Maui.TextField
40{
41 id: control
42 icon.source: "edit-find"
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:57:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.