Examples of QDialog


Examples of com.trolltech.qt.gui.QDialog

    logger.log(logger.HIGH, "Leaving NeverNote.accountInformation");
  }
  @SuppressWarnings("unused")
  private void releaseNotes() {
    logger.log(logger.HIGH, "Entering NeverNote.releaseNotes");
    QDialog dialog = new QDialog(this);
    QHBoxLayout layout = new QHBoxLayout();
    QTextEdit textBox = new QTextEdit();
    layout.addWidget(textBox);
    textBox.setReadOnly(true);
    QFile file = new QFile(Global.getFileManager().getProgramDirPath("release.txt"));
    if (!file.open(new QIODevice.OpenMode(QIODevice.OpenModeFlag.ReadOnly,
                QIODevice.OpenModeFlag.Text)))
      return;
    textBox.setText(file.readAll().toString());
    file.close();
    dialog.setWindowTitle(tr("Release Notes"));
    dialog.setLayout(layout);
    dialog.show();
    logger.log(logger.HIGH, "Leaving NeverNote.releaseNotes");
  }
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.