Reorder member variables of PathSelection
This commit is contained in:
parent
666e16725d
commit
033351eebf
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue