Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
juk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Planella
juk
Commits
e14ac0f2
Commit
e14ac0f2
authored
Oct 19, 2006
by
Tim Beaulen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port and improve (added stretch to the bottom of the dialog)
svn path=/trunk/KDE/kdemultimedia/juk/; revision=597229
parent
33c053ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
advancedsearchdialog.cpp
advancedsearchdialog.cpp
+18
-9
advancedsearchdialog.h
advancedsearchdialog.h
+2
-4
No files found.
advancedsearchdialog.cpp
View file @
e14ac0f2
...
...
@@ -19,7 +19,7 @@
#include <klocale.h>
#include <kvbox.h>
#include <
qradiobutton.h
>
#include <
QRadioButton
>
#include <QLabel>
#include <QLayout>
...
...
@@ -28,8 +28,6 @@
#include <QBoxLayout>
#include <QGroupBox>
#include <Q3HButtonGroup>
#include "collectionlist.h"
#include "advancedsearchdialog.h"
#include "searchwidget.h"
...
...
@@ -64,9 +62,18 @@ AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
QVBoxLayout
*
criteriaLayout
=
new
QVBoxLayout
;
Q3HButtonGroup
*
group
=
new
Q3HButtonGroup
();
m_matchAnyButton
=
new
QRadioButton
(
i18n
(
"Match any of the following"
),
group
);
m_matchAllButton
=
new
QRadioButton
(
i18n
(
"Match all of the following"
),
group
);
QGroupBox
*
group
=
new
QGroupBox
();
m_matchAnyButton
=
new
QRadioButton
(
i18n
(
"Match any of the following"
));
m_matchAllButton
=
new
QRadioButton
(
i18n
(
"Match all of the following"
));
QHBoxLayout
*
hgroupbox
=
new
QHBoxLayout
;
hgroupbox
->
addWidget
(
m_matchAnyButton
);
hgroupbox
->
addWidget
(
m_matchAllButton
);
group
->
setLayout
(
hgroupbox
);
criteriaLayout
->
addWidget
(
group
);
if
(
defaultSearch
.
isNull
())
{
...
...
@@ -116,6 +123,8 @@ AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
criteriaLayout
->
addWidget
(
buttons
);
criteriaLayout
->
addStretch
(
1
);
criteriaGroupBox
->
setLayout
(
criteriaLayout
);
m_playlistNameLineEdit
->
setFocus
();
...
...
@@ -150,7 +159,7 @@ void AdvancedSearchDialog::accept()
m_search
.
addPlaylist
(
CollectionList
::
instance
());
Q
3ValueListConstIterator
<
SearchLine
*>
it
=
m_searchLines
.
begin
();
Q
List
<
SearchLine
*>::
const_iterator
it
=
m_searchLines
.
begin
();
for
(;
it
!=
m_searchLines
.
end
();
++
it
)
m_search
.
addComponent
((
*
it
)
->
searchComponent
());
...
...
@@ -164,7 +173,7 @@ void AdvancedSearchDialog::accept()
void
AdvancedSearchDialog
::
clear
()
{
Q
3ValueListConstIterator
<
SearchLine
*>
it
=
m_searchLines
.
begin
();
Q
List
<
SearchLine
*>::
const_iterator
it
=
m_searchLines
.
begin
();
for
(;
it
!=
m_searchLines
.
end
();
++
it
)
(
*
it
)
->
clear
();
}
...
...
@@ -180,7 +189,7 @@ void AdvancedSearchDialog::more()
void
AdvancedSearchDialog
::
fewer
()
{
SearchLine
*
searchLine
=
m_searchLines
.
last
();
m_searchLines
.
remove
(
searchLine
);
m_searchLines
.
remove
All
(
searchLine
);
delete
searchLine
;
updateButtons
();
}
...
...
advancedsearchdialog.h
View file @
e14ac0f2
...
...
@@ -17,13 +17,11 @@
#define ADVANCEDSEARCHDIALOG_H
#include <kdialog.h>
//Added by qt3to4:
#include <Q3ValueList>
#include <QList>
#include "searchwidget.h"
class
KLineEdit
;
class
KPushButton
;
class
Q3GroupBox
;
class
QRadioButton
;
...
...
@@ -61,7 +59,7 @@ private:
QWidget
*
m_criteria
;
PlaylistSearch
m_search
;
QString
m_playlistName
;
Q
3Value
List
<
SearchLine
*>
m_searchLines
;
QList
<
SearchLine
*>
m_searchLines
;
KLineEdit
*
m_playlistNameLineEdit
;
QRadioButton
*
m_matchAnyButton
;
QRadioButton
*
m_matchAllButton
;
...
...
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