Commit 8b04e33a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Errors: cleanup, trailing spaces and (). Public => private.

parent e4b84859
/***************************************************************************** /*****************************************************************************
* errors.cpp : Errors * errors.cpp : Errors
**************************************************************************** ****************************************************************************
* Copyright (C) 2006 the VideoLAN team * Copyright ( C ) 2006 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Clément Stenac <zorglub@videolan.org> * Authors: Clément Stenac <zorglub@videolan.org>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * ( at your option ) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
...@@ -40,12 +40,12 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -40,12 +40,12 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setWindowModality( Qt::ApplicationModal ); setWindowModality( Qt::ApplicationModal );
QGridLayout *layout = new QGridLayout( this ); QGridLayout *layout = new QGridLayout( this );
QPushButton *closeButton = new QPushButton(qtr("&Close")); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
QPushButton *clearButton = new QPushButton(qtr("&Clear")); QPushButton *clearButton = new QPushButton( qtr( "&Clear" ) );
messages = new QTextEdit(); messages = new QTextEdit();
messages->setReadOnly( true ); messages->setReadOnly( true );
messages->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); messages->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
stopShowing = new QCheckBox( qtr( "Hide future errors") ); stopShowing = new QCheckBox( qtr( "Hide future errors" ) );
layout->addWidget( messages, 0, 0, 1, 3 ); layout->addWidget( messages, 0, 0, 1, 3 );
layout->addWidget( stopShowing, 1, 0 ); layout->addWidget( stopShowing, 1, 0 );
...@@ -73,7 +73,7 @@ void ErrorsDialog::add( bool error, QString title, QString text ) ...@@ -73,7 +73,7 @@ void ErrorsDialog::add( bool error, QString title, QString text )
if( stopShowing->isChecked() ) return; if( stopShowing->isChecked() ) return;
messages->textCursor().movePosition( QTextCursor::End ); messages->textCursor().movePosition( QTextCursor::End );
messages->setTextColor( error ? "red" : "yellow" ); messages->setTextColor( error ? "red" : "yellow" );
messages->insertPlainText( title + QString( ":\n" )); messages->insertPlainText( title + QString( ":\n" ) );
messages->setTextColor( "black" ); messages->setTextColor( "black" );
messages->insertPlainText( text + QString( "\n" ) ); messages->insertPlainText( text + QString( "\n" ) );
messages->ensureCursorVisible(); messages->ensureCursorVisible();
......
...@@ -51,7 +51,7 @@ private: ...@@ -51,7 +51,7 @@ private:
QCheckBox *stopShowing; QCheckBox *stopShowing;
QTextEdit *messages; QTextEdit *messages;
public slots: private slots:
void close(); void close();
void clear(); void clear();
void dontShow(); void dontShow();
......
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