Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
David Planella
juk
Commits
ef49f301
Commit
ef49f301
authored
Oct 29, 2004
by
Scott Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the focus to the search widget on startup.
BUG:91948 svn path=/trunk/kdemultimedia/juk/; revision=358758
parent
4aa0f0b4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
0 deletions
+24
-0
playlistsplitter.cpp
playlistsplitter.cpp
+9
-0
playlistsplitter.h
playlistsplitter.h
+3
-0
searchwidget.cpp
searchwidget.cpp
+10
-0
searchwidget.h
searchwidget.h
+2
-0
No files found.
playlistsplitter.cpp
View file @
ef49f301
...
...
@@ -57,6 +57,15 @@ PlaylistSplitter::~PlaylistSplitter()
delete
m_playlistBox
;
}
////////////////////////////////////////////////////////////////////////////////
// public slots
////////////////////////////////////////////////////////////////////////////////
void
PlaylistSplitter
::
setFocus
()
{
m_searchWidget
->
setFocus
();
}
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////
...
...
playlistsplitter.h
View file @
ef49f301
...
...
@@ -49,6 +49,9 @@ public:
PlaylistInterface
*
playlist
()
const
{
return
m_playlistBox
;
}
public
slots
:
virtual
void
setFocus
();
private:
/**
...
...
searchwidget.cpp
View file @
ef49f301
...
...
@@ -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
////////////////////////////////////////////////////////////////////////////////
...
...
searchwidget.h
View file @
ef49f301
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment