]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/podcast_configuration.cpp
s/vlc_object_yield/vlc_object_release/
[vlc] / modules / gui / qt4 / dialogs / podcast_configuration.cpp
index 7a5ad8cafb772ede9d2dfafc13c6d4a4be241d49..69d0dc906b98da4965fa82eb428d070c62b211b5 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "podcast_configuration.hpp"
 
 PodcastConfigDialog *PodcastConfigDialog::instance = NULL;
 
-PodcastConfigDialog::PodcastConfigDialog( intf_thread_t *_p_intf)
-                : QVLCFrame( _p_intf )
+PodcastConfigDialog::PodcastConfigDialog( QWidget *parent, intf_thread_t *_p_intf)
+                    : QVLCDialog( parent, _p_intf )
 
 {
     ui.setupUi( this );
 
-    QPushButton *okButton = new QPushButton( qtr( "OK" ), this );
-    QPushButton *cancelButton = new QPushButton( qtr( "Cancel" ), this );
+    ui.podcastDelete->setToolTip( qtr( "Deletes the selected item" ) );
+    QPushButton *okButton = new QPushButton( qtr( "&Close" ), this );
+    QPushButton *cancelButton = new QPushButton( qtr( "&Cancel" ), this );
     ui.okCancel->addButton( okButton, QDialogButtonBox::AcceptRole );
     ui.okCancel->addButton( cancelButton, QDialogButtonBox::RejectRole );
+
     CONNECT( ui.podcastAdd, clicked(), this, add() );
     CONNECT( ui.podcastDelete, clicked(), this, remove() );
+    CONNECT( okButton, clicked(), this, close() );
 
     char *psz_urls = config_GetPsz( p_intf, "podcast-urls" );
     if( psz_urls )