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 QtQuick.Controls
22
23/**
24 * @inherit QtQuick.Controls.TextField
25 * @brief This is just a QQC2 TextField with a icon to more clearly indicate its intended use case for entering search queries
26 * <a href="https://doc.qt.io/qt-6/qml-qtquick-controls-textfield.html">This control inherits from QQC2 TextField, to checkout its inherited properties refer to the Qt Docs.</a>
27 *
28 * @section notes Notes
29 * Some TextField properties have been added to the Maui Style, so they have been obscured, those properties are:
30 *
31 * - `spacing : int` The spacing between the action buttons, added via the `actions` property.
32 * - `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.
33 * - `actions : list<Action>` A set of actions, that will be represented inside of the text field box as flat icons.
34 * - `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.
35 * - `rightContent : list<QtObject>` An alias to allow adding arbitrary content inside of the right area of the text field box.
36 *
37 * - `cleared()` Emitted when the text field has been cleared using the clear action button.
38 * - `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.
39 */
40TextField
41{
42 id: control
43 icon.source: "edit-find"
44}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.