Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
2cb2200b
Commit
2cb2200b
authored
Dec 17, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/gui/kde/preferences.cpp: fixed a compilation issue and a crash.
parent
cb07a716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
modules/gui/kde/preferences.cpp
modules/gui/kde/preferences.cpp
+13
-18
No files found.
modules/gui/kde/preferences.cpp
View file @
2cb2200b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* preferences.cpp: preferences window for the kde gui
* preferences.cpp: preferences window for the kde gui
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: preferences.cpp,v 1.
9 2002/12/13 01:56:29 gbazin
Exp $
* $Id: preferences.cpp,v 1.
10 2002/12/17 09:54:32 sam
Exp $
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> Mon Aug 12 2002
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> Mon Aug 12 2002
*
*
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
...
@@ -52,7 +52,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -52,7 +52,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
KDialogBase
(
Tabbed
,
caption
,
Ok
|
Apply
|
Cancel
|
User1
,
Ok
,
parent
,
KDialogBase
(
Tabbed
,
caption
,
Ok
|
Apply
|
Cancel
|
User1
,
Ok
,
parent
,
"vlc preferences"
,
true
,
false
,
"Save"
)
"vlc preferences"
,
true
,
false
,
"Save"
)
{
{
module_t
*
p_parser
;
module_t
*
p_parser
=
NULL
;
vlc_list_t
list
;
vlc_list_t
list
;
module_config_t
*
p_item
;
module_config_t
*
p_item
;
int
i_index
;
int
i_index
;
...
@@ -78,7 +78,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -78,7 +78,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
if
(
!
p_parser
||
i_index
==
list
.
i_count
)
if
(
!
p_parser
||
i_index
==
list
.
i_count
)
{
{
vlc_list_release
(
list
);
vlc_list_release
(
&
list
);
return
;
return
;
}
}
...
@@ -114,7 +114,6 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -114,7 +114,6 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
case
CONFIG_ITEM_MODULE
:
case
CONFIG_ITEM_MODULE
:
{
{
vlc_mutex_lock
(
p_item
->
p_lock
);
vlc_mutex_lock
(
p_item
->
p_lock
);
KPluginsBox
*
item_frame
=
KPluginsBox
*
item_frame
=
new
KPluginsBox
(
p_intf
,
p_item
->
psz_text
,
new
KPluginsBox
(
p_intf
,
p_item
->
psz_text
,
...
@@ -155,7 +154,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -155,7 +154,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
new
QLabel
(
p_item
->
psz_text
,
hb
);
new
QLabel
(
p_item
->
psz_text
,
hb
);
/* add input box with default value */
/* add input box with default value */
vlc_mutex_lock
(
p_item
->
p_lock
);
vlc_mutex_lock
(
p_item
->
p_lock
);
KLineEdit
*
kl
=
new
KLineEdit
(
p_item
->
psz_value
?
KLineEdit
*
kl
=
new
KLineEdit
(
p_item
->
psz_value
?
p_item
->
psz_value
:
""
,
hb
);
p_item
->
psz_value
:
""
,
hb
);
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
...
@@ -166,9 +165,8 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -166,9 +165,8 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
ci
,
SLOT
(
setValue
(
const
QString
&
)));
ci
,
SLOT
(
setValue
(
const
QString
&
)));
QToolTip
::
add
(
kl
,
p_item
->
psz_longtext
);
QToolTip
::
add
(
kl
,
p_item
->
psz_longtext
);
kl
->
setMaxLength
(
40
);
kl
->
setMaxLength
(
40
);
vlc_mutex_unlock
(
p_item
->
p_lock
);
vlc_mutex_unlock
(
p_item
->
p_lock
);
}
}
break
;
break
;
...
@@ -179,7 +177,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -179,7 +177,7 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
new
QLabel
(
p_item
->
psz_text
,
hb
);
new
QLabel
(
p_item
->
psz_text
,
hb
);
/* add input box with default value */
/* add input box with default value */
vlc_mutex_lock
(
p_item
->
p_lock
);
vlc_mutex_lock
(
p_item
->
p_lock
);
// KLineEdit *kl = new KLineEdit( p_item->psz_value ?
// KLineEdit *kl = new KLineEdit( p_item->psz_value ?
// p_item->psz_value : "", hb);
// p_item->psz_value : "", hb);
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
...
@@ -192,18 +190,17 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -192,18 +190,17 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
hb
);
hb
);
connect
(
kfile
,
SIGNAL
(
textChanged
(
const
QString
&
)),
connect
(
kfile
,
SIGNAL
(
textChanged
(
const
QString
&
)),
ci
,
SLOT
(
setValue
(
const
QString
&
)));
ci
,
SLOT
(
setValue
(
const
QString
&
)));
QToolTip
::
add
(
kfile
,
p_item
->
psz_longtext
);
QToolTip
::
add
(
kfile
,
p_item
->
psz_longtext
);
vlc_mutex_unlock
(
p_item
->
p_lock
);
vlc_mutex_unlock
(
p_item
->
p_lock
);
}
}
break
;
break
;
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_INTEGER
:
/* add input box with default value */
/* add input box with default value */
{
{
QHBox
*
hb
=
new
QHBox
(
category_table
);
QHBox
*
hb
=
new
QHBox
(
category_table
);
hb
->
setSpacing
(
spacingHint
());
hb
->
setSpacing
(
spacingHint
());
new
QLabel
(
p_item
->
psz_text
,
hb
);
new
QLabel
(
p_item
->
psz_text
,
hb
);
QSpinBox
*
item_adj
=
new
QSpinBox
(
-
1
,
99999
,
1
,
hb
);
QSpinBox
*
item_adj
=
new
QSpinBox
(
-
1
,
99999
,
1
,
hb
);
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
p_item
->
i_type
,
p_item
->
i_type
,
...
@@ -214,12 +211,12 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -214,12 +211,12 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
QToolTip
::
add
(
item_adj
,
p_item
->
psz_longtext
);
QToolTip
::
add
(
item_adj
,
p_item
->
psz_longtext
);
}
}
break
;
break
;
case
CONFIG_ITEM_FLOAT
:
case
CONFIG_ITEM_FLOAT
:
{
{
QHBox
*
hb
=
new
QHBox
(
category_table
);
QHBox
*
hb
=
new
QHBox
(
category_table
);
hb
->
setSpacing
(
spacingHint
());
hb
->
setSpacing
(
spacingHint
());
new
QLabel
(
p_item
->
psz_text
,
hb
);
new
QLabel
(
p_item
->
psz_text
,
hb
);
KDoubleNumInput
*
kdi
=
new
KDoubleNumInput
(
p_item
->
f_value
,
hb
);
KDoubleNumInput
*
kdi
=
new
KDoubleNumInput
(
p_item
->
f_value
,
hb
);
kdi
->
setRange
(
-
1
,
99999
,
0.01
,
false
);
kdi
->
setRange
(
-
1
,
99999
,
0.01
,
false
);
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
QConfigItem
*
ci
=
new
QConfigItem
(
this
,
p_item
->
psz_name
,
...
@@ -228,11 +225,9 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
...
@@ -228,11 +225,9 @@ KPreferences::KPreferences(intf_thread_t *p_intf, const char *psz_module_name,
connect
(
kdi
,
SIGNAL
(
valueChanged
(
double
)),
connect
(
kdi
,
SIGNAL
(
valueChanged
(
double
)),
ci
,
SLOT
(
setValue
(
double
)));
ci
,
SLOT
(
setValue
(
double
)));
QToolTip
::
add
(
kdi
,
p_item
->
psz_longtext
);
QToolTip
::
add
(
kdi
,
p_item
->
psz_longtext
);
}
}
break
;
break
;
case
CONFIG_ITEM_BOOL
:
case
CONFIG_ITEM_BOOL
:
/* add check button */
/* add check button */
...
...
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