Commit 02617cc3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Open - Hide the OK/Cancel for everyone ( Windows too )

parent 905e5d8a
...@@ -69,9 +69,8 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -69,9 +69,8 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 ); ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
// But hide the two OK/Cancel buttons. Enable them for debug. // But hide the two OK/Cancel buttons. Enable them for debug.
#ifndef WIN32 fileDialogAcceptBox = findChildren<QDialogButtonBox*>()[0];
findChild<QDialogButtonBox*>()->hide(); fileDialogAcceptBox->hide();
#endif
/* Ugly hacks to get the good Widget */ /* Ugly hacks to get the good Widget */
//This lineEdit is the normal line in the fileDialog. //This lineEdit is the normal line in the fileDialog.
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "ui/open_disk.h" #include "ui/open_disk.h"
#include "ui/open_net.h" #include "ui/open_net.h"
#include "ui/open_capture.h" #include "ui/open_capture.h"
#include <QDialogButtonBox>
class QLineEdit; class QLineEdit;
...@@ -79,6 +80,7 @@ private: ...@@ -79,6 +80,7 @@ private:
QStringList browse( QString ); QStringList browse( QString );
FileOpenBox *dialogBox; FileOpenBox *dialogBox;
QLineEdit *lineFileEdit; QLineEdit *lineFileEdit;
QDialogButtonBox *fileDialogAcceptBox;
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