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
662b0388
Commit
662b0388
authored
Oct 28, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Moving function from one file to another...
parent
3e7d9284
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
30 deletions
+29
-30
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+2
-1
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+21
-0
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+5
-0
modules/gui/qt4/util/customwidgets.cpp
modules/gui/qt4/util/customwidgets.cpp
+1
-23
modules/gui/qt4/util/customwidgets.hpp
modules/gui/qt4/util/customwidgets.hpp
+0
-6
No files found.
modules/gui/qt4/components/open.cpp
View file @
662b0388
...
...
@@ -31,7 +31,8 @@
#include "components/open.hpp"
#include "dialogs/open.hpp"
#include "dialogs_provider.hpp"
#include "util/customwidgets.hpp"
#include "components/preferences_widgets.hpp"
#include <QFileDialog>
#include <QDialogButtonBox>
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
662b0388
...
...
@@ -434,6 +434,27 @@ QString StringListConfigControl::getValue()
return
combo
->
itemData
(
combo
->
currentIndex
()
).
toString
();
}
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
QComboBox
*
combo
,
QWidget
*
parent
)
{
module_config_t
*
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
configname
);
if
(
p_config
)
{
for
(
int
i_index
=
0
;
i_index
<
p_config
->
i_list
;
i_index
++
)
{
combo
->
addItem
(
qfu
(
p_config
->
ppsz_list_text
[
i_index
]
),
QVariant
(
p_config
->
pi_list
[
i_index
]
)
);
if
(
p_config
->
value
.
i
==
p_config
->
pi_list
[
i_index
]
)
{
combo
->
setCurrentIndex
(
i_index
);
}
}
combo
->
setToolTip
(
qfu
(
p_config
->
psz_longtext
)
);
}
}
/********* Module **********/
ModuleConfigControl
::
ModuleConfigControl
(
vlc_object_t
*
_p_this
,
module_config_t
*
_p_item
,
QWidget
*
_parent
,
bool
bycat
,
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
662b0388
...
...
@@ -378,6 +378,11 @@ private slots:
void
actionRequested
(
int
);
};
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
QComboBox
*
combo
,
QWidget
*
parent
=
0
);
#if 0
struct ModuleCheckBox {
QCheckBox *checkbox;
...
...
modules/gui/qt4/util/customwidgets.cpp
View file @
662b0388
...
...
@@ -196,26 +196,4 @@ QString VLCKeyToString( int val )
}
}
return
r
;
}
#include <QComboBox>
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
QComboBox
*
combo
,
QWidget
*
parent
)
{
module_config_t
*
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
configname
);
if
(
p_config
)
{
for
(
int
i_index
=
0
;
i_index
<
p_config
->
i_list
;
i_index
++
)
{
combo
->
addItem
(
qfu
(
p_config
->
ppsz_list_text
[
i_index
]
),
QVariant
(
p_config
->
pi_list
[
i_index
]
)
);
if
(
p_config
->
value
.
i
==
p_config
->
pi_list
[
i_index
]
)
{
combo
->
setCurrentIndex
(
i_index
);
}
}
combo
->
setToolTip
(
qfu
(
p_config
->
psz_longtext
)
);
}
}
}
\ No newline at end of file
modules/gui/qt4/util/customwidgets.hpp
View file @
662b0388
...
...
@@ -93,10 +93,4 @@ int qtEventToVLCKey( QKeyEvent *e );
int
qtWheelEventToVLCKey
(
QWheelEvent
*
e
);
QString
VLCKeyToString
(
int
val
);
#include "qt4.hpp"
#include <vlc/vlc.h>
class
QComboBox
;
void
setfillVLCConfigCombo
(
const
char
*
configname
,
intf_thread_t
*
p_intf
,
QComboBox
*
combo
,
QWidget
*
parent
=
0
);
#endif
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