digiKam
Digikam::SearchWindow Class Reference
+ Inheritance diagram for Digikam::SearchWindow:

Signals

void searchEdited (int id, const QString &query)
 

Public Member Functions

void readSearch (int id, const QString &query)
 
void reset ()
 
QString search () const
 
 SearchWindow ()
 
 ~SearchWindow () override
 

Protected Slots

void searchCancel ()
 
void searchOk ()
 
void searchTryout ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *) override
 

Constructor & Destructor Documentation

◆ SearchWindow()

Digikam::SearchWindow::SearchWindow ( )

Create a new SearchWindow with an empty advanced search

References searchCancel(), searchOk(), and searchTryout().

◆ ~SearchWindow()

Digikam::SearchWindow::~SearchWindow ( )
override

Member Function Documentation

◆ keyPressEvent()

void Digikam::SearchWindow::keyPressEvent ( QKeyEvent *  e)
overrideprotected

References searchCancel(), and searchOk().

◆ readSearch()

void Digikam::SearchWindow::readSearch ( int  id,
const QString &  query 
)

Read the given search into the search widgets. The id will be emitted with the searchEdited signal.

Referenced by Digikam::SearchTabHeader::editSearch().

◆ reset()

void Digikam::SearchWindow::reset ( )

Reset the search widget to an empty search. Current id is -1.

Referenced by Digikam::SearchTabHeader::editSearch(), and Digikam::SearchTabHeader::newAdvancedSearch().

◆ search()

QString Digikam::SearchWindow::search ( ) const

Returns the currently produced search string

Referenced by searchOk(), and searchTryout().

◆ searchCancel

void Digikam::SearchWindow::searchCancel ( )
protectedslot

References searchEdited().

Referenced by keyPressEvent(), and SearchWindow().

◆ searchEdited

void Digikam::SearchWindow::searchEdited ( int  id,
const QString &  query 
)
signal

Signals that the user has finished editing the search. The given query is the same as search().

Referenced by searchCancel(), searchOk(), and searchTryout().

◆ searchOk

void Digikam::SearchWindow::searchOk ( )
protectedslot

References search(), and searchEdited().

Referenced by keyPressEvent(), and SearchWindow().

◆ searchTryout

void Digikam::SearchWindow::searchTryout ( )
protectedslot

References search(), and searchEdited().

Referenced by SearchWindow().


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