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
ef39893f
Commit
ef39893f
authored
Jul 13, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: change messages-dialog to use msg_SubscriptionSetVerbosity
parent
14d8d88c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.cpp
+8
-4
modules/gui/qt4/dialogs/messages.hpp
modules/gui/qt4/dialogs/messages.hpp
+1
-0
No files found.
modules/gui/qt4/dialogs/messages.cpp
View file @
ef39893f
...
@@ -147,6 +147,8 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
...
@@ -147,6 +147,8 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
CONNECT
(
mainTab
,
currentChanged
(
int
),
CONNECT
(
mainTab
,
currentChanged
(
int
),
this
,
updateTab
(
int
)
);
this
,
updateTab
(
int
)
);
CONNECT
(
vbobjectsEdit
,
editingFinished
(),
this
,
updateConfig
());
CONNECT
(
vbobjectsEdit
,
editingFinished
(),
this
,
updateConfig
());
CONNECT
(
verbosityBox
,
valueChanged
(
int
),
this
,
changeVerbosity
(
int
)
);
/* General action */
/* General action */
readSettings
(
"Messages"
,
QSize
(
600
,
450
)
);
readSettings
(
"Messages"
,
QSize
(
600
,
450
)
);
...
@@ -156,6 +158,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
...
@@ -156,6 +158,7 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
cbData
=
new
msg_cb_data_t
;
cbData
=
new
msg_cb_data_t
;
cbData
->
self
=
this
;
cbData
->
self
=
this
;
sub
=
msg_Subscribe
(
p_intf
->
p_libvlc
,
MsgCallback
,
cbData
);
sub
=
msg_Subscribe
(
p_intf
->
p_libvlc
,
MsgCallback
,
cbData
);
changeVerbosity
(
verbosityBox
->
value
()
);
}
}
MessagesDialog
::~
MessagesDialog
()
MessagesDialog
::~
MessagesDialog
()
...
@@ -165,6 +168,11 @@ MessagesDialog::~MessagesDialog()
...
@@ -165,6 +168,11 @@ MessagesDialog::~MessagesDialog()
delete
cbData
;
delete
cbData
;
};
};
void
MessagesDialog
::
changeVerbosity
(
int
verbosity
)
{
msg_SubscriptionSetVerbosity
(
sub
,
verbosity
);
}
void
MessagesDialog
::
updateTab
(
int
index
)
void
MessagesDialog
::
updateTab
(
int
index
)
{
{
/* Second tab : modules tree */
/* Second tab : modules tree */
...
@@ -223,10 +231,6 @@ void MessagesDialog::updateConfig()
...
@@ -223,10 +231,6 @@ void MessagesDialog::updateConfig()
void
MessagesDialog
::
sinkMessage
(
msg_item_t
*
item
)
void
MessagesDialog
::
sinkMessage
(
msg_item_t
*
item
)
{
{
if
((
item
->
i_type
==
VLC_MSG_WARN
&&
verbosityBox
->
value
()
<
1
)
||
(
item
->
i_type
==
VLC_MSG_DBG
&&
verbosityBox
->
value
()
<
2
))
return
;
/* Copy selected text to the clipboard */
/* Copy selected text to the clipboard */
if
(
messages
->
textCursor
().
hasSelection
()
)
if
(
messages
->
textCursor
().
hasSelection
()
)
messages
->
copy
();
messages
->
copy
();
...
...
modules/gui/qt4/dialogs/messages.hpp
View file @
ef39893f
...
@@ -64,6 +64,7 @@ private slots:
...
@@ -64,6 +64,7 @@ private slots:
void
clearOrUpdate
();
void
clearOrUpdate
();
bool
save
();
bool
save
();
void
updateConfig
();
void
updateConfig
();
void
changeVerbosity
(
int
);
private:
private:
void
clear
();
void
clear
();
void
updateTree
();
void
updateTree
();
...
...
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