]> git.sesse.net Git - vlc/commitdiff
Qt4 - Errors: cleanup, trailing spaces and (). Public => private.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Sep 2007 15:38:23 +0000 (15:38 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Sep 2007 15:38:23 +0000 (15:38 +0000)
modules/gui/qt4/dialogs/errors.cpp
modules/gui/qt4/dialogs/errors.hpp

index 6224db4d5a2465b28e1fc1b8b4fdacb04e79acb1..6d1bc8c605b22f59702e6ae0f64ceb264deb3745 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * errors.cpp : Errors
  ****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright ( C ) 2006 the VideoLAN team
  * $Id$
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
@@ -9,7 +9,7 @@
  * 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
  * 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,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -40,12 +40,12 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
     setWindowModality( Qt::ApplicationModal );
 
     QGridLayout *layout = new QGridLayout( this );
-    QPushButton *closeButton = new QPushButton(qtr("&Close"));
-    QPushButton *clearButton = new QPushButton(qtr("&Clear"));
+    QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
+    QPushButton *clearButton = new QPushButton( qtr( "&Clear" ) );
     messages = new QTextEdit();
     messages->setReadOnly( true );
     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( stopShowing, 1, 0 );
@@ -73,7 +73,7 @@ void ErrorsDialog::add( bool error, QString title, QString text )
     if( stopShowing->isChecked() ) return;
     messages->textCursor().movePosition( QTextCursor::End );
     messages->setTextColor( error ? "red" : "yellow" );
-    messages->insertPlainText( title + QString( ":\n" ));
+    messages->insertPlainText( title + QString( ":\n" ) );
     messages->setTextColor( "black" );
     messages->insertPlainText( text + QString( "\n" ) );
     messages->ensureCursorVisible();
index e2e5ccc1b09f724a432bef529da0764fb702d868..2f85c94850da46fc632a3d52e40f5efbd2d2be70 100644 (file)
@@ -51,7 +51,7 @@ private:
 
     QCheckBox *stopShowing;
     QTextEdit *messages;
-public slots:
+private slots:
     void close();
     void clear();
     void dontShow();