Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QFileDialog.selectFile()


    int pos = name.lastIndexOf(Global.attachmentNameDelimeter);
    if (pos > -1) {
      guid = name.substring(0, pos).replace("nnres://", "");
      name = name.substring(pos +Global.attachmentNameDelimeter.length());
      fd.selectFile(name);
      pos = name.lastIndexOf('.');
      if (pos > -1) {
        String mimeType = "(*." + name.substring(pos + 1)
            + ");; All Files (*)";
        fd.setFilter(tr(mimeType));
 
View Full Code Here


      guid = guid.substring(0,pos);
    }
    pos = name.lastIndexOf(Global.attachmentNameDelimeter);
    if (pos > -1) {
      guid = name.substring(0, pos);
      fd.selectFile(name.substring(pos+Global.attachmentNameDelimeter.length()));   
    }
    if (fd.exec() != 0 && fd.selectedFiles().size() > 0) {
      Resource resBinary = conn.getNoteTable().noteResourceTable.getNoteResource(guid, true);
      String fileName = fd.selectedFiles().get(0);
      QFile saveFile = new QFile(fileName);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.