]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/sout/sout_widgets.cpp
qt4: missing const for QString.
[vlc] / modules / gui / qt4 / components / sout / sout_widgets.cpp
index 9dfb940a8190b5be60e5b440c918f7a03e452651..2c770427d5fef3294eef42a232d03f91ae58ee81 100644 (file)
@@ -34,7 +34,7 @@
 #include <QLineEdit>
 #include <QFileDialog>
 
-SoutInputBox::SoutInputBox( QWidget *_parent, QString mrl ) : QGroupBox( _parent )
+SoutInputBox::SoutInputBox( QWidget *_parent, const QString& mrl ) : QGroupBox( _parent )
 {
     /**
      * Source Block
@@ -62,7 +62,7 @@ SoutInputBox::SoutInputBox( QWidget *_parent, QString mrl ) : QGroupBox( _parent
     sourceLayout->addWidget( line, 2, 0, 1, -1 );
 }
 
-void SoutInputBox::setMRL( QString mrl )
+void SoutInputBox::setMRL( const QString& mrl )
 {
     sourceLine->setText( mrl );
     QString type;
@@ -76,7 +76,7 @@ void SoutInputBox::setMRL( QString mrl )
     sourceValueLabel->setText( type );
 }
 
- #define CT( x ) connect( x, SIGNAL( textChanged( const QString ) ), this, SIGNAL( mrlUpdated() ) );
+ #define CT( x ) connect( x, SIGNAL( textChanged( const QString& ) ), this, SIGNAL( mrlUpdated() ) );
  #define CS( x ) connect( x, SIGNAL( valueChanged( int ) ), this, SIGNAL( mrlUpdated() ) );
 
 /* FileDest Box */
@@ -86,7 +86,7 @@ FileDestBox::FileDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *fileOutput = new QLabel(
-         qtr( "This modules outputs to a file on your disk."), this );
+         qtr( "This module writes the transcoded stream to a file."), this );
     layout->addWidget(fileOutput, 0, 0, 1, -1);
 
     QLabel *fileLabel = new QLabel( qtr( "Filename"), this );
@@ -104,7 +104,7 @@ FileDestBox::FileDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     BUTTONACT( fileSelectButton, fileBrowse() );
 }
 
-QString FileDestBox::getMRL( QString mux )
+QString FileDestBox::getMRL( const QString& mux )
 {
     if( fileEdit->text().isEmpty() ) return "";
 
@@ -134,7 +134,8 @@ HTTPDestBox::HTTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *httpOutput = new QLabel(
-         qtr( "This modules streams on the networks with the HTTP protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network via HTTP."),
+        this );
     layout->addWidget(httpOutput, 0, 0, 1, -1);
 
     QLabel *HTTPLabel = new QLabel( qtr("Address"), this );
@@ -157,7 +158,7 @@ HTTPDestBox::HTTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( HTTPEdit );
 }
 
-QString HTTPDestBox::getMRL( QString mux )
+QString HTTPDestBox::getMRL( const QString& mux )
 {
     if( HTTPEdit->text().isEmpty() ) return "";
 
@@ -177,7 +178,8 @@ MMSHDestBox::MMSHDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *mmshOutput = new QLabel(
-         qtr( "This modules streams on the networks with the mms: protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network "
+             " via the mms protocol." ), this );
     layout->addWidget(mmshOutput, 0, 0, 1, -1);
 
     QLabel *MMSHLabel = new QLabel( qtr("Address"), this );
@@ -200,7 +202,7 @@ MMSHDestBox::MMSHDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( MMSHEdit );
 }
 
-QString MMSHDestBox::getMRL( QString mux )
+QString MMSHDestBox::getMRL( const QString& mux )
 {
     if( MMSHEdit->text().isEmpty() ) return "";
 
@@ -220,7 +222,8 @@ UDPDestBox::UDPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *udpOutput = new QLabel(
-         qtr( "This modules streams on the networks with the UDP protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network via UDP."),
+        this );
     layout->addWidget(udpOutput, 0, 0, 1, -1);
 
     QLabel *UDPLabel = new QLabel( qtr("Address"), this );
@@ -243,7 +246,7 @@ UDPDestBox::UDPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( UDPEdit );
 }
 
-QString UDPDestBox::getMRL( QString mux )
+QString UDPDestBox::getMRL( const QString& mux )
 {
     if( UDPEdit->text().isEmpty() ) return "";
 
@@ -265,7 +268,8 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *rtpOutput = new QLabel(
-         qtr( "This modules streams on the networks with the RTP protocol."), this );
+        qtr( "This module outputs the transcoded stream to a network via RTP."),
+        this );
     layout->addWidget(rtpOutput, 0, 0, 1, -1);
 
     QLabel *RTPLabel = new QLabel( qtr("Address"), this );
@@ -313,7 +317,7 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( RTPEdit );
 }
 
-QString RTPDestBox::getMRL( QString mux )
+QString RTPDestBox::getMRL( const QString& mux )
 {
     if( RTPEdit->text().isEmpty() ) return "";
 
@@ -340,7 +344,8 @@ ICEDestBox::ICEDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     QGridLayout *layout = new QGridLayout( this );
 
     QLabel *iceOutput = new QLabel(
-         qtr( "This modules streams using IceCast."), this );
+        qtr( "This module outputs the transcoded stream to an Icecast server."),
+        this );
     layout->addWidget(iceOutput, 0, 0, 1, -1);
 
     QLabel *ICELabel = new QLabel( qtr("Address"), this );
@@ -375,7 +380,7 @@ ICEDestBox::ICEDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( ICEPassEdit );
 }
 
-QString ICEDestBox::getMRL( QString mux )
+QString ICEDestBox::getMRL( const QString& mux )
 {
     if( ICEEdit->text().isEmpty() ) return "";