Commit 474f8390 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: messages: fix visibility warning

parent 89f039dd
...@@ -38,12 +38,12 @@ ...@@ -38,12 +38,12 @@
#include <QPushButton> #include <QPushButton>
#include <QTimer> #include <QTimer>
DialogHandler::DialogHandler (intf_thread_t *intf, QObject *_parent) DialogHandler::DialogHandler (intf_thread_t *p_intf, QObject *_parent)
: QObject( _parent ), intf (intf), : QObject( _parent ), intf (p_intf),
critical (VLC_OBJECT(intf), "dialog-critical"), critical (VLC_OBJECT(p_intf), "dialog-critical"),
login (VLC_OBJECT(intf), "dialog-login"), login (VLC_OBJECT(p_intf), "dialog-login"),
question (VLC_OBJECT(intf), "dialog-question"), question (VLC_OBJECT(p_intf), "dialog-question"),
progressBar (VLC_OBJECT(intf), "dialog-progress-bar") progressBar (VLC_OBJECT(p_intf), "dialog-progress-bar")
{ {
var_Create (intf, "dialog-error", VLC_VAR_ADDRESS); var_Create (intf, "dialog-error", VLC_VAR_ADDRESS);
var_AddCallback (intf, "dialog-error", error, this); var_AddCallback (intf, "dialog-error", error, this);
......
...@@ -86,9 +86,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) ...@@ -86,9 +86,9 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
/* Buttons and general layout */ /* Buttons and general layout */
ui.saveLogButton->setToolTip( qtr( "Saves all the displayed logs to a file" ) ); ui.saveLogButton->setToolTip( qtr( "Saves all the displayed logs to a file" ) );
int verbosity = var_InheritInteger( p_intf, "verbose" ); int i_verbosity = var_InheritInteger( p_intf, "verbose" );
vlc_atomic_set( &this->verbosity, verbosity ); changeVerbosity( i_verbosity );
ui.verbosityBox->setValue( verbosity ); ui.verbosityBox->setValue( i_verbosity );
char *objs = var_InheritString( p_intf, "verbose-objects" ); char *objs = var_InheritString( p_intf, "verbose-objects" );
if( objs != NULL ) if( objs != NULL )
...@@ -130,9 +130,9 @@ MessagesDialog::~MessagesDialog() ...@@ -130,9 +130,9 @@ MessagesDialog::~MessagesDialog()
vlc_Unsubscribe( sub ); vlc_Unsubscribe( sub );
}; };
void MessagesDialog::changeVerbosity( int verbosity ) void MessagesDialog::changeVerbosity( int i_verbosity )
{ {
vlc_atomic_set( &this->verbosity, verbosity ); vlc_atomic_set( &this->verbosity, i_verbosity );
} }
void MessagesDialog::updateConfig() void MessagesDialog::updateConfig()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment