Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
269a9ae6
Commit
269a9ae6
authored
May 05, 2003
by
sigmunau
Browse files
Implemented support for CONFIG_ITEM_DIRECTORY
parent
5596bb7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/kde/preferences.cpp
View file @
269a9ae6
...
...
@@ -2,7 +2,7 @@
* preferences.cpp: preferences window for the kde gui
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: preferences.cpp,v 1.1
5
2003/0
4
/0
9
1
2:03
:4
4
s
am
Exp $
* $Id: preferences.cpp,v 1.1
6
2003/0
5
/0
5
1
4:58
:4
5
s
igmunau
Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> Mon Aug 12 2002
*
...
...
@@ -194,6 +194,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
break
;
case
CONFIG_ITEM_FILE
:
case
CONFIG_ITEM_DIRECTORY
:
{
QHBox
*
hb
=
new
QHBox
(
category_table
);
hb
->
setSpacing
(
spacingHint
());
...
...
@@ -211,6 +212,10 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
KURLRequester
*
kfile
=
new
KURLRequester
(
p_item
->
psz_value
?
p_item
->
psz_value
:
""
,
hb
);
if
(
p_item
->
i_type
==
CONFIG_ITEM_DIRECTORY
)
{
kfile
->
setMode
(
KFile
::
Directory
|
KFile
::
ExistingOnly
|
KFile
::
LocalOnly
);
}
connect
(
kfile
,
SIGNAL
(
textChanged
(
const
QString
&
)),
ci
,
SLOT
(
setValue
(
const
QString
&
)));
QToolTip
::
add
(
kfile
,
p_item
->
psz_longtext
);
...
...
@@ -358,6 +363,7 @@ void KPreferences::slotApply()
switch
(
p_config
->
getType
()
)
{
case
CONFIG_ITEM_DIRECTORY
:
case
CONFIG_ITEM_STRING
:
case
CONFIG_ITEM_FILE
:
case
CONFIG_ITEM_MODULE
:
...
...
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