Emergency 2017 Dokumentation  v3.0.1
qsf::editor::SearchWidget Class Reference

Search widget class. More...

#include <SearchWidget.h>

Signals

void filterChanged (const FilterConfiguration &newFilterConfiguration)
 Qt signal emitted after an changing a filter setting via context menu. More...
 
void textChanged (const QString &searchText)
 

Public Member Functions

 SearchWidget (QWidget *qWidgetParent, bool hasSettings=true)
 Constructor. More...
 
virtual ~SearchWidget ()
 Destructor. More...
 
QLineEdit & getSearchFieldText () const
 Return the text field used for insert the text to searching. More...
 
const FilterConfigurationgetFilterConfiguration () const
 
void setSettingsButtonVisible (bool visible)
 Set the visibility state of the settings button. More...
 
void retranslateUi ()
 Retranslate the UI. More...
 

Protected Member Functions

void focusInEvent (QFocusEvent *focusInEvent) override
 

Detailed Description

Search widget class.

Note
  • Reusable class which shows a search mask
Todo:
  • TODO(sw) add signal when the search texes changes or better let this widget know the filter model to which it sets the values correctly (needs a proper base class of such filter models)

Definition at line 50 of file SearchWidget.h.

Constructor & Destructor Documentation

qsf::editor::SearchWidget::SearchWidget ( QWidget *  qWidgetParent,
bool  hasSettings = true 
)

Constructor.

Parameters
[in]qWidgetParentPointer to parent Qt widget, can be a null pointer (in this case you're responsible for destroying this widget instance)
[in]hasSettingsShould there be a settings button?
virtual qsf::editor::SearchWidget::~SearchWidget ( )
virtual

Destructor.

Member Function Documentation

void qsf::editor::SearchWidget::filterChanged ( const FilterConfiguration newFilterConfiguration)
signal

Qt signal emitted after an changing a filter setting via context menu.

Parameters
[in]newFilterConfigurationThe changed filter configuration
void qsf::editor::SearchWidget::focusInEvent ( QFocusEvent *  focusInEvent)
overrideprotected
const FilterConfiguration& qsf::editor::SearchWidget::getFilterConfiguration ( ) const
QLineEdit& qsf::editor::SearchWidget::getSearchFieldText ( ) const

Return the text field used for insert the text to searching.

void qsf::editor::SearchWidget::retranslateUi ( )

Retranslate the UI.

void qsf::editor::SearchWidget::setSettingsButtonVisible ( bool  visible)

Set the visibility state of the settings button.

void qsf::editor::SearchWidget::textChanged ( const QString &  searchText)
signal

The documentation for this class was generated from the following file: