[vlc-devel] commit: Qt4: get rid of qta in favor of qtu ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jan 14 18:20:04 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jan 14 18:52:39 2009 +0200| [18eb8839afb64d2cc634be4d177f9c929d806a27] | committer: Rémi Denis-Courmont 

Qt4: get rid of qta in favor of qtu

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18eb8839afb64d2cc634be4d177f9c929d806a27
---

 modules/gui/qt4/dialogs/open.cpp |    4 ++--
 modules/gui/qt4/dialogs/sout.cpp |    6 +++---
 modules/gui/qt4/qt4.hpp          |    1 -
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index a7d8b96..339ef03 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -396,7 +396,7 @@ void OpenDialog::updateMRL() {
     if( ui.slaveCheckbox->isChecked() ) {
         mrl += " :input-slave=" + ui.slaveText->text();
     }
-    int i_cache = config_GetInt( p_intf, qta( storedMethod ) );
+    int i_cache = config_GetInt( p_intf, qtu( storedMethod ) );
     if( i_cache != ui.cacheSpinBox->value() ) {
         mrl += QString( " :%1=%2" ).arg( storedMethod ).
                                   arg( ui.cacheSpinBox->value() );
@@ -412,7 +412,7 @@ void OpenDialog::newCachingMethod( QString method )
 {
     if( method != storedMethod ) {
         storedMethod = method;
-        int i_value = config_GetInt( p_intf, qta( storedMethod ) );
+        int i_value = config_GetInt( p_intf, qtu( storedMethod ) );
         ui.cacheSpinBox->setValue( i_value );
     }
 }
diff --git a/modules/gui/qt4/dialogs/sout.cpp b/modules/gui/qt4/dialogs/sout.cpp
index b2495b9..56e1161 100644
--- a/modules/gui/qt4/dialogs/sout.cpp
+++ b/modules/gui/qt4/dialogs/sout.cpp
@@ -137,7 +137,7 @@ public:
 
         if( !value.isEmpty() )
         {
-            char *psz = config_StringEscape( qta(value) );
+            char *psz = config_StringEscape( qtu(value) );
             if( psz )
             {
                 QString v = QString( psz );
@@ -339,7 +339,7 @@ void SoutDialog::setOptions()
 {
     QString profileString =
         ui.profileBox->itemData( ui.profileBox->currentIndex() ).toString();
-    msg_Dbg( p_intf, "Profile Used: %s",  qta( profileString ));
+    msg_Dbg( p_intf, "Profile Used: %s",  qtu( profileString ));
     int index;
 
 #define setProfile( muxName, hasVideo, vCodecName, hasAudio, aCodecName ) \
@@ -497,7 +497,7 @@ void SoutDialog::updateMRL()
     sout.i_ab = ui.aBitrateSpin->value();
     sout.i_vb = ui.vBitrateSpin->value();
     sout.i_channels = ui.aChannelsSpin->value();
-    sout.f_scale = atof( qta( ui.vScaleBox->currentText() ) );
+    sout.f_scale = atof( qtu( ui.vScaleBox->currentText() ) );
     sout.psz_group = strdup( qtu( ui.sapGroup->text() ) );
     sout.psz_name = strdup( qtu( ui.sapName->text() ) );
 
diff --git a/modules/gui/qt4/qt4.hpp b/modules/gui/qt4/qt4.hpp
index 591158d..45d116b 100644
--- a/modules/gui/qt4/qt4.hpp
+++ b/modules/gui/qt4/qt4.hpp
@@ -85,7 +85,6 @@ struct intf_sys_t
 #define qfu( i ) QString::fromUtf8( i )
 #define qtr( i ) QString::fromUtf8( _(i) )
 #define qtu( i ) ((i).toUtf8().constData())
-#define qta( i ) ((i).toAscii().constData())
 
 #define CONNECT( a, b, c, d ) connect( a, SIGNAL( b ), c, SLOT(d) )
 #define BUTTONACT( b, a ) connect( b, SIGNAL( clicked() ), this, SLOT(a) )




More information about the vlc-devel mailing list