src/dialogs/ldrawpathdialog.cpp

changeset 987
91281e39c50c
parent 971
c00f9665a9f8
child 999
213a7c7a3ce4
equal deleted inserted replaced
986:525921eae58c 987:91281e39c50c
41 41
42 okButton()->setEnabled (false); 42 okButton()->setEnabled (false);
43 43
44 connect (ui.path, SIGNAL (textChanged (QString)), this, SIGNAL (pathChanged (QString))); 44 connect (ui.path, SIGNAL (textChanged (QString)), this, SIGNAL (pathChanged (QString)));
45 connect (ui.searchButton, SIGNAL (clicked()), this, SLOT (searchButtonClicked())); 45 connect (ui.searchButton, SIGNAL (clicked()), this, SLOT (searchButtonClicked()));
46 connect (ui.buttonBox, SIGNAL (rejected()), this, validDefault ? SLOT (reject()) : SLOT (slot_exit())); 46 connect (ui.buttonBox, SIGNAL (rejected()), this, SLOT (reject()));
47 connect (ui.buttonBox, SIGNAL (accepted()), this, SLOT (accept())); 47 connect (ui.buttonBox, SIGNAL (accepted()), this, SLOT (accept()));
48 setPath (defaultPath); 48 setPath (defaultPath);
49 } 49 }
50 50
51 LDrawPathDialog::~LDrawPathDialog() 51 LDrawPathDialog::~LDrawPathDialog()
79 79
80 if (not newpath.isEmpty()) 80 if (not newpath.isEmpty())
81 setPath (newpath); 81 setPath (newpath);
82 } 82 }
83 83
84 void LDrawPathDialog::slot_exit()
85 {
86 Exit();
87 }
88
89 void LDrawPathDialog::setStatusText (const QString& statusText, bool ok) 84 void LDrawPathDialog::setStatusText (const QString& statusText, bool ok)
90 { 85 {
91 okButton()->setEnabled (ok); 86 okButton()->setEnabled (ok);
92 87
93 if (statusText.isEmpty() && ok == false) 88 if (statusText.isEmpty() && ok == false)

mercurial