TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Slots | Public Member Functions | Private Attributes | List of all members
MusicSongSearchDialog Class Reference

The class of the song search widget. More...

#include <musicsongsearchdialog.h>

+ Inheritance diagram for MusicSongSearchDialog:

Public Slots

bool close ()
 

Public Member Functions

 MusicSongSearchDialog (QWidget *parent=nullptr)
 
 ~MusicSongSearchDialog ()
 
QString text () const
 
void clear () const
 
virtual void setVisible (bool visible) overridefinal
 

Private Attributes

MusicItemSearchEditm_searchLine
 

Detailed Description

The class of the song search widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 30 of file musicsongsearchdialog.h.

Constructor & Destructor Documentation

MusicSongSearchDialog::MusicSongSearchDialog ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 5 of file musicsongsearchdialog.cpp.

References close(), MusicItemSearchEdit::editor(), LEFT_SIDE_WIDTH_MIN, m_searchLine, and TTK::UI::TinyBtnClose.

MusicSongSearchDialog::~MusicSongSearchDialog ( )

Object destructor.

Definition at line 33 of file musicsongsearchdialog.cpp.

References m_searchLine.

Member Function Documentation

void MusicSongSearchDialog::clear ( ) const

Clear the search text.

Definition at line 49 of file musicsongsearchdialog.cpp.

References MusicItemSearchEdit::editor(), and m_searchLine.

Referenced by close().

bool MusicSongSearchDialog::close ( )
slot

Override the close function.

Definition at line 38 of file musicsongsearchdialog.cpp.

References clear().

Referenced by MusicSongsContainerWidget::closeSearchWidget(), and MusicSongSearchDialog().

void MusicSongSearchDialog::setVisible ( bool  visible)
finaloverridevirtual

Set line edit input focus.

Definition at line 54 of file musicsongsearchdialog.cpp.

References MusicItemSearchEdit::editor(), and m_searchLine.

Referenced by MusicSongsContainerWidget::showSearchWidget().

QString MusicSongSearchDialog::text ( ) const

Get the search text that the user searched.

Definition at line 44 of file musicsongsearchdialog.cpp.

References MusicItemSearchEdit::editor(), and m_searchLine.

Referenced by MusicSongsContainerWidget::searchResultChanged().

Member Data Documentation

MusicItemSearchEdit* MusicSongSearchDialog::m_searchLine
private

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