23 class LDrawPathDialog : public QDialog |
23 class LDrawPathDialog : public QDialog |
24 { |
24 { |
25 Q_OBJECT |
25 Q_OBJECT |
26 |
26 |
27 public: |
27 public: |
28 LDrawPathDialog (const QString& defaultPath, bool validDefault, QWidget* parent = nullptr, Qt::WindowFlags f = 0); |
28 LDrawPathDialog(const QString& defaultPath, bool validDefault, QWidget* parent = nullptr, Qt::WindowFlags f = 0); |
29 virtual ~LDrawPathDialog(); |
29 virtual ~LDrawPathDialog(); |
30 QString path() const; |
30 QString path() const; |
31 void setPath (QString path); |
31 void setPath(QString path); |
32 void setStatusText (const QString& statusText, bool ok); |
32 void setStatusText(const QString& statusText, bool ok); |
33 |
33 |
34 signals: |
34 signals: |
35 void pathChanged (QString newPath); |
35 void pathChanged(QString newPath); |
36 |
36 |
37 private: |
37 private: |
38 const bool m_hasValidDefault; |
38 const bool m_hasValidDefault; |
39 class Ui_LDrawPathDialog& ui; |
39 class Ui_LDrawPathDialog& ui; |
40 QPushButton* okButton(); |
40 QPushButton* okButton(); |