XII Release 0.1.0
Loading...
Searching...
No Matches
xiiQtSearchWidget Class Reference

#include <SearchWidget.moc.h>

Inheritance diagram for xiiQtSearchWidget:
[legend]

Signals

void textChanged (const QString &sText)
 Passed through from the QLineEdit.
void enterPressed ()
 The user pressed the enter key.
void specialKeyPressed (Qt::Key key)
void visibleEvent ()

Public Member Functions

 xiiQtSearchWidget (QWidget *pParent)
 Copyright (c) Theophilus Eriata. All Rights Reserved.
void setText (const QString &sText)
 Passed through to the QLineEdit.
QString text () const
 Passed through from the QLineEdit.
void setPlaceholderText (const QString &sText)
 Passed through to the QLineEdit.
void selectAll ()
 Passed through to the QLineEdit.

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *e) override
virtual void showEvent (QShowEvent *e) override

Protected Attributes

QLineEdit * m_pLineEdit
QPushButton * m_pClearButton

Detailed Description

A widget that contains a line edit for a search text and a button to clear the search text.

The clear button is only active when the line edit has text. The text can be cleared by pressing ESC while the line edit has focus.

Member Function Documentation

◆ specialKeyPressed

void xiiQtSearchWidget::specialKeyPressed ( Qt::Key key)
signal

This signal is sent when certain keys are pressed that could be used by external code to implement additional features. Currently exposed: Qt::Key_Up, Qt::Key_Down Qt::Key_Tab, Qt::Key_Backtab (that's SHIFT+Tab) Qt::Key_F1, Qt::Key_F2, Qt::Key_F3


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Tools/Libs/GuiFoundation/Widgets/SearchWidget.moc.h
  • /home/runner/work/XII/XII/Source/Tools/Libs/GuiFoundation/Widgets/Implementation/SearchWidget.cpp