Reorder member variables of PathSelection

This commit is contained in:
Martchus 2019-07-07 12:40:32 +02:00
parent 666e16725d
commit 033351eebf
2 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,8 @@ PathSelection::PathSelection(QWidget *parent)
: QWidget(parent) : QWidget(parent)
, m_lineEdit(new ClearLineEdit(this)) , m_lineEdit(new ClearLineEdit(this))
, m_button(new QPushButton(this)) , m_button(new QPushButton(this))
, m_customMode(QFileDialog::Directory)
, m_customDialog(nullptr) , m_customDialog(nullptr)
, m_customMode(QFileDialog::Directory)
{ {
if (!m_completer) { if (!m_completer) {
auto *fileSystemModel = new QFileSystemModel(m_completer); auto *fileSystemModel = new QFileSystemModel(m_completer);

View File

@ -14,6 +14,7 @@ class ClearLineEdit;
class QT_UTILITIES_EXPORT PathSelection : public QWidget { class QT_UTILITIES_EXPORT PathSelection : public QWidget {
Q_OBJECT Q_OBJECT
public: public:
explicit PathSelection(QWidget *parent = nullptr); explicit PathSelection(QWidget *parent = nullptr);
@ -31,8 +32,8 @@ private slots:
private: private:
ClearLineEdit *m_lineEdit; ClearLineEdit *m_lineEdit;
QPushButton *m_button; QPushButton *m_button;
QFileDialog::FileMode m_customMode;
QFileDialog *m_customDialog; QFileDialog *m_customDialog;
QFileDialog::FileMode m_customMode;
static QCompleter *m_completer; static QCompleter *m_completer;
}; };