Commit ef49f301 authored by Scott Wheeler's avatar Scott Wheeler

Set the focus to the search widget on startup.

BUG:91948

svn path=/trunk/kdemultimedia/juk/; revision=358758
parent 4aa0f0b4
......@@ -57,6 +57,15 @@ PlaylistSplitter::~PlaylistSplitter()
delete m_playlistBox;
}
////////////////////////////////////////////////////////////////////////////////
// public slots
////////////////////////////////////////////////////////////////////////////////
void PlaylistSplitter::setFocus()
{
m_searchWidget->setFocus();
}
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////
......
......@@ -49,6 +49,9 @@ public:
PlaylistInterface *playlist() const { return m_playlistBox; }
public slots:
virtual void setFocus();
private:
/**
......
......@@ -128,6 +128,11 @@ void SearchLine::clear()
m_lineEdit->clear();
}
void SearchLine::setFocus()
{
m_lineEdit->setFocus();
}
void SearchLine::slotActivate()
{
action("stop")->activate();
......@@ -215,6 +220,11 @@ void SearchWidget::setEnabled(bool enable)
setShown(enable);
}
void SearchWidget::setFocus()
{
m_searchLine->setFocus();
}
////////////////////////////////////////////////////////////////////////////////
// SearchWidget private methods
////////////////////////////////////////////////////////////////////////////////
......
......@@ -48,6 +48,7 @@ public:
public slots:
void clear();
virtual void setFocus();
signals:
void signalQueryChanged();
......@@ -77,6 +78,7 @@ public:
public slots:
void clear();
void setEnabled(bool enable);
virtual void setFocus();
signals:
void signalQueryChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment