Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fb0efa32
Commit
fb0efa32
authored
May 03, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: allow SQL-ML configuration
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
64119e13
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
17 deletions
+24
-17
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+10
-0
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+1
-0
modules/gui/qt4/dialogs/ml_configuration.cpp
modules/gui/qt4/dialogs/ml_configuration.cpp
+0
-4
modules/gui/qt4/dialogs/ml_configuration.hpp
modules/gui/qt4/dialogs/ml_configuration.hpp
+2
-9
modules/gui/qt4/ui/sprefs_interface.ui
modules/gui/qt4/ui/sprefs_interface.ui
+11
-4
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
fb0efa32
...
...
@@ -29,6 +29,7 @@
#include "components/simple_preferences.hpp"
#include "components/preferences_widgets.hpp"
#include "dialogs/ml_configuration.hpp"
#include <vlc_config_cat.h>
#include <vlc_configuration.h>
...
...
@@ -548,6 +549,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui
.
assoButton
->
hide
();
ui
.
assocLabel
->
hide
();
#endif
BUTTONACT
(
ui
.
sqlMLbtn
,
configML
()
);
/* interface */
char
*
psz_intf
=
config_GetPsz
(
p_intf
,
"intf"
);
if
(
psz_intf
)
...
...
@@ -886,6 +889,13 @@ void SPrefsPanel::changeStyle( QString s_style )
};
}
void
SPrefsPanel
::
configML
()
{
MLConfDialog
*
mld
=
new
MLConfDialog
(
this
,
p_intf
);
mld
->
exec
();
delete
mld
;
}
#ifdef WIN32
#include <QDialogButtonBox>
#include "util/registry.hpp"
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
fb0efa32
...
...
@@ -137,6 +137,7 @@ private slots:
void
assoDialog
();
void
saveAsso
();
#endif
void
configML
();
void
changeStyle
(
QString
);
};
...
...
modules/gui/qt4/dialogs/ml_configuration.cpp
View file @
fb0efa32
...
...
@@ -244,10 +244,6 @@ MLConfDialog::MLConfDialog( QWidget *parent, intf_thread_t *_p_intf )
CONNECT
(
recursivity
,
toggled
(
bool
),
model
,
setRecursivity
(
bool
)
);
}
MLConfDialog
::~
MLConfDialog
()
{
}
void
MLConfDialog
::
init
()
{
bool
b_recursive
=
var_CreateGetBool
(
p_ml
,
"ml-recursive-scan"
);
...
...
modules/gui/qt4/dialogs/ml_configuration.hpp
View file @
fb0efa32
...
...
@@ -85,17 +85,10 @@ public slots:
class
MLConfDialog
:
public
QVLCDialog
{
Q_OBJECT
;
public:
static
MLConfDialog
*
getInstance
(
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
MLConfDialog
(
(
QWidget
*
)
p_intf
->
p_sys
->
p_mi
,
p_intf
);
return
instance
;
}
virtual
~
MLConfDialog
();
public:
MLConfDialog
(
QWidget
*
,
intf_thread_t
*
);
private:
MLConfDialog
(
QWidget
*
,
intf_thread_t
*
);
void
init
();
vlc_array_t
*
p_monitored_dirs
;
...
...
modules/gui/qt4/ui/sprefs_interface.ui
View file @
fb0efa32
...
...
@@ -246,7 +246,7 @@
</property>
</widget>
</item>
<item
row=
"
1
"
column=
"0"
>
<item
row=
"
2
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"assocLabel"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Maximum"
vsizetype=
"Preferred"
>
...
...
@@ -262,7 +262,7 @@
</property>
</widget>
</item>
<item
row=
"
1
"
column=
"1"
>
<item
row=
"
2
"
column=
"1"
>
<spacer
name=
"horizontalSpacer_6"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
...
...
@@ -275,7 +275,7 @@
</property>
</spacer>
</item>
<item
row=
"
1
"
column=
"2"
>
<item
row=
"
2
"
column=
"2"
>
<widget
class=
"QPushButton"
name=
"assoButton"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Fixed"
>
...
...
@@ -294,7 +294,7 @@
</property>
</widget>
</item>
<item
row=
"
1
"
column=
"3"
>
<item
row=
"
2
"
column=
"3"
>
<spacer
name=
"horizontalSpacer_8"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
...
...
@@ -307,6 +307,13 @@
</property>
</spacer>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QPushButton"
name=
"sqlMLbtn"
>
<property
name=
"text"
>
<string>
Configure Media Library
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
...
...
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