AutoLoadInitFileDialog.js 390 B

123456789101112
  1. if (typeof(qcadInitFileDialog)==="undefined") {
  2. qcadInitFileDialog = function(dlg) {
  3. if (dlg.fileMode===QFileDialog.ExistingFiles) {
  4. qDebug("Init file open dialog");
  5. dlg.setNameFilters(["Blah (*.blah)", "Blub (*.blub)"]);
  6. }
  7. else if (dlg.fileMode===QFileDialog.AnyFile) {
  8. qDebug("Init file save as dialog");
  9. }
  10. };
  11. }