Commit b103c00a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Clean.

parent fd8a9517
...@@ -83,9 +83,6 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -83,9 +83,6 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Change the text that was uncool in the usual box */ /* Change the text that was uncool in the usual box */
listLabel[5]->setText( qtr( "Filter:" ) ); listLabel[5]->setText( qtr( "Filter:" ) );
/* Hacks Continued Catch the close event */
dialogBox->installEventFilter( this );
// Hide the subtitles control by default. // Hide the subtitles control by default.
ui.subFrame->hide(); ui.subFrame->hide();
...@@ -192,18 +189,6 @@ void FileOpenPanel::clear() ...@@ -192,18 +189,6 @@ void FileOpenPanel::clear()
ui.subInput->setEditText( "" ); ui.subInput->setEditText( "" );
} }
bool FileOpenPanel::eventFilter(QObject *object, QEvent *event)
{
if ( ( object == dialogBox ) && ( event->type() == QEvent::Hide ) )
{
event->ignore();
return true;
}
// standard event processing
else
return QObject::eventFilter(object, event);
}
void FileOpenPanel::toggleSubtitleFrame() void FileOpenPanel::toggleSubtitleFrame()
{ {
if (ui.subFrame->isVisible()) if (ui.subFrame->isVisible())
......
...@@ -79,7 +79,6 @@ private: ...@@ -79,7 +79,6 @@ private:
QStringList browse( QString ); QStringList browse( QString );
FileOpenBox *dialogBox; FileOpenBox *dialogBox;
QLineEdit *lineFileEdit; QLineEdit *lineFileEdit;
bool eventFilter(QObject *, QEvent *);
public slots: public slots:
virtual void updateMRL(); virtual void updateMRL();
private slots: private slots:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment