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
ae8c9cf7
Commit
ae8c9cf7
authored
Feb 15, 2007
by
Stephan Kulow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile
svn path=/branches/work/kconfiggroup_port/kdemultimedia/juk/; revision=633771
parent
b43f775b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
tageditor.cpp
tageditor.cpp
+5
-5
tageditor.h
tageditor.h
+2
-2
No files found.
tageditor.cpp
View file @
ae8c9cf7
...
...
@@ -450,9 +450,9 @@ void TagEditor::readConfig()
KConfigGroup
config
(
KGlobal
::
config
(),
"TagEditor"
);
if
(
m_artistNameBox
&&
m_albumNameBox
)
{
readCompletionMode
(
&
config
,
m_artistNameBox
,
"ArtistNameBoxMode"
);
readCompletionMode
(
&
config
,
m_albumNameBox
,
"AlbumNameBoxMode"
);
readCompletionMode
(
&
config
,
m_genreBox
,
"GenreBoxMode"
);
readCompletionMode
(
config
,
m_artistNameBox
,
"ArtistNameBoxMode"
);
readCompletionMode
(
config
,
m_albumNameBox
,
"AlbumNameBoxMode"
);
readCompletionMode
(
config
,
m_genreBox
,
"GenreBoxMode"
);
}
bool
show
=
config
.
readEntry
(
"Show"
,
false
);
...
...
@@ -471,10 +471,10 @@ void TagEditor::readConfig()
m_genreBox
->
completionObject
()
->
setItems
(
m_genreList
);
}
void
TagEditor
::
readCompletionMode
(
KConfigBase
*
config
,
KComboBox
*
box
,
const
QString
&
key
)
void
TagEditor
::
readCompletionMode
(
const
KConfigGroup
&
config
,
KComboBox
*
box
,
const
QString
&
key
)
{
KGlobalSettings
::
Completion
mode
=
KGlobalSettings
::
Completion
(
config
->
readEntry
(
key
,
(
int
)
KGlobalSettings
::
CompletionAuto
));
KGlobalSettings
::
Completion
(
config
.
readEntry
(
key
,
(
int
)
KGlobalSettings
::
CompletionAuto
));
box
->
setCompletionMode
(
mode
);
}
...
...
tageditor.h
View file @
ae8c9cf7
...
...
@@ -28,7 +28,7 @@ class KLineEdit;
class
KIntSpinBox
;
class
KTextEdit
;
class
KPushButton
;
class
KConfig
Base
;
class
KConfig
Group
;
class
QCheckBox
;
class
QBoxLayout
;
...
...
@@ -66,7 +66,7 @@ private:
void
setupActions
();
void
setupLayout
();
void
readConfig
();
void
readCompletionMode
(
KConfigBase
*
config
,
KComboBox
*
box
,
const
QString
&
key
);
void
readCompletionMode
(
const
KConfigGroup
&
config
,
KComboBox
*
box
,
const
QString
&
key
);
void
saveConfig
();
void
save
(
const
PlaylistItemList
&
list
);
void
saveChangesPrompt
();
...
...
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