CONNECT( mainTab, currentChanged( int ),
this, updateTab( int ) );
CONNECT(vbobjectsEdit, editingFinished(), this, updateConfig());
+ CONNECT( verbosityBox, valueChanged( int ),
+ this, changeVerbosity( int ) );
/* General action */
readSettings( "Messages", QSize( 600, 450 ) );
cbData = new msg_cb_data_t;
cbData->self = this;
sub = msg_Subscribe( p_intf->p_libvlc, MsgCallback, cbData );
+ changeVerbosity( verbosityBox->value() );
}
MessagesDialog::~MessagesDialog()
delete cbData;
};
+void MessagesDialog::changeVerbosity( int verbosity )
+{
+ msg_SubscriptionSetVerbosity( sub , verbosity );
+}
+
void MessagesDialog::updateTab( int index )
{
/* Second tab : modules tree */
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 */
if( messages->textCursor().hasSelection() )
messages->copy();