]> git.sesse.net Git - vlc/commitdiff
Qt: Teletext handling simplifications and change of the icons to more clear ones.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 22 Jan 2009 11:47:12 +0000 (12:47 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 22 Jan 2009 11:47:12 +0000 (12:47 +0100)
modules/gui/qt4/Modules.am
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.hpp
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/pixmaps/toolbar/tv.png
modules/gui/qt4/pixmaps/toolbar/tvtelx-transparent.png [deleted file]
modules/gui/qt4/pixmaps/toolbar/tvtelx.png
modules/gui/qt4/vlc.qrc

index d39cdb136d16166b6c36d6056282c3ef53089338..a663ebe8dbb1650b9ae6070b5213a0b9b5a9b643 100644 (file)
@@ -137,7 +137,6 @@ DEPS_res = \
        pixmaps/toolbar/skip_for.png \
        pixmaps/toolbar/skip_back.png \
        pixmaps/toolbar/tv.png \
-       pixmaps/toolbar/tvtelx-transparent.png \
        pixmaps/toolbar/tvtelx.png \
        pixmaps/toolbar/visu.png \
        pixmaps/toolbar/volume-high.png \
index 16639c4bdc559c863ebc3902632fec2c67184482..67d7d24d6ef01a79db950e44b1ad3851bc74a997 100644 (file)
@@ -504,13 +504,14 @@ QFrame *AbstractController::telexFrame()
     BUTTON_SET_BAR2( telexTransparent, tvtelx,
                      qtr( "Toggle Transparency " ) );
     telexTransparent->setEnabled( false );
+    telexTransparent->setCheckable( true );
     telexLayout->addWidget( telexTransparent );
 
     /* Transparency change and set */
     CONNECT( telexTransparent, clicked( bool ),
             THEMIM->getIM(), telexSetTransparency( bool ) );
     CONNECT( THEMIM->getIM(), teletextTransparencyActivated( bool ),
-            telexFrame, toggleTeletextTransparency( bool ) );
+             telexTransparent, setChecked( bool ) );
 
 
     /* Page setting */
index 5f424d2dd58b0e9dd7314aa86332acbf8bb4514a..0b81f33055930e7b07088de70191e5f57997ec1b 100644 (file)
@@ -119,12 +119,6 @@ void SoundWidget::updateVolume()
     }
 }
 
-void TeletextController::toggleTeletextTransparency( bool b_transparent )
-{
-    telexTransparent->setIcon( b_transparent ? QIcon( ":/tvtelx" )
-                                             : QIcon( ":/tvtelx-trans" ) );
-}
-
 void TeletextController::enableTeletextButtons( bool b_enabled )
 {
     telexOn->setChecked( b_enabled );
index d6c622c0c2bb94d7188ddc682dc67028be5f38d0..8ce7579e26f2de521da8e173e21f512d29b1cf70 100644 (file)
@@ -72,7 +72,6 @@ private:
 
 private slots:
     void enableTeletextButtons( bool );
-    void toggleTeletextTransparency( bool );
 };
 
 #define VOLUME_MAX 200
index 2a582f3f954a68595aaa9843dc4b8281c313887d..7812de4e32e218fae0ceb20d716314e9f23f3bb0 100644 (file)
@@ -289,7 +289,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
                 telexLayout->addWidget( telexOn );
 
                 QToolButton *telexTransparent = new QToolButton;
-                telexOn->setIcon( QIcon( ":/tvtelx-trans" ) );
+                telexOn->setIcon( QIcon( ":/tvtelx" ) );
                 telexLayout->addWidget( telexTransparent );
 
                 QSpinBox *telexPage = new QSpinBox;
index 93350f93ab33644930b54157685767fcdcbe3b0f..1622fdaf995ead681474bdbd73e05267ee901b38 100644 (file)
Binary files a/modules/gui/qt4/pixmaps/toolbar/tv.png and b/modules/gui/qt4/pixmaps/toolbar/tv.png differ
diff --git a/modules/gui/qt4/pixmaps/toolbar/tvtelx-transparent.png b/modules/gui/qt4/pixmaps/toolbar/tvtelx-transparent.png
deleted file mode 100644 (file)
index 4b3c164..0000000
Binary files a/modules/gui/qt4/pixmaps/toolbar/tvtelx-transparent.png and /dev/null differ
index 34a6a23f50048e560047681991ebb9cfab32ac9a..dc358d2150248da71494198ac09f6bae254602de 100644 (file)
Binary files a/modules/gui/qt4/pixmaps/toolbar/tvtelx.png and b/modules/gui/qt4/pixmaps/toolbar/tvtelx.png differ
index 1cbff3b67bbc850dcbb982828cc46eb215af66b6..39389db7c684f0a4b80ffbb8d3193b7edfdacbd2 100644 (file)
@@ -50,7 +50,6 @@
   <file alias="tv">pixmaps/toolbar/tv.png</file>
   <file alias="fullscreen">pixmaps/toolbar/fullscreen.png</file>
   <file alias="defullscreen">pixmaps/toolbar/defullscreen.png</file>
-  <file alias="tvtelx-trans">pixmaps/toolbar/tvtelx-transparent.png</file>
   <file alias="tvtelx">pixmaps/toolbar/tvtelx.png</file>
   <file alias="extended">pixmaps/toolbar/extended_16px.png</file>
   <file alias="record">pixmaps/toolbar/record_16px.png</file>