Examples of QDateTime


Examples of com.trolltech.qt.core.QDateTime

    authorText.setText(t);
  }

  // Set the creation date
  public void setCreation(long date) {
    QDateTime dt = new QDateTime();
    dt.setTime_t((int) (date / 1000));
    createdDate.setDateTime(dt);
    createdTime.setDateTime(dt);
    createdDate.setDisplayFormat(Global.getDateFormat());
    createdTime.setDisplayFormat(Global.getTimeFormat());
  }
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime

    createdTime.setDisplayFormat(Global.getTimeFormat());
  }

  // Set the creation date
  public void setAltered(long date) {
    QDateTime dt = new QDateTime();
    dt.setTime_t((int) (date / 1000));
    alteredDate.setDateTime(dt);
    alteredTime.setDateTime(dt);
    alteredDate.setDisplayFormat(Global.getDateFormat());
    alteredTime.setDisplayFormat(Global.getTimeFormat());
  }
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime

    alteredTime.setDisplayFormat(Global.getTimeFormat());
  }

  // Set the subject date
  public void setSubjectDate(long date) {
    QDateTime dt = new QDateTime();
    dt.setTime_t((int) (date / 1000));
    subjectDate.setDateTime(dt);
    subjectTime.setDateTime(dt);
    subjectDate.setDisplayFormat(Global.getDateFormat());
    subjectTime.setDisplayFormat(Global.getTimeFormat());
  }
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime

  }


  @SuppressWarnings("unused")
  private void createdChanged() {
    QDateTime dt = new QDateTime();
    dt.setDate(createdDate.date());
    dt.setTime(createdTime.time());
    noteSignal.createdDateChanged.emit(currentNote.getGuid(), dt);

  }
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime

  }

  @SuppressWarnings("unused")
  private void alteredChanged() {
    QDateTime dt = new QDateTime();
    dt.setDate(alteredDate.date());
    dt.setTime(alteredTime.time());
    noteSignal.alteredDateChanged.emit(currentNote.getGuid(), dt);
  }
View Full Code Here

Examples of com.trolltech.qt.core.QDateTime

    noteSignal.alteredDateChanged.emit(currentNote.getGuid(), dt);
  }

  @SuppressWarnings("unused")
  private void subjectDateTimeChanged() {
    QDateTime dt = new QDateTime();
    dt.setDate(subjectDate.date());
    dt.setTime(subjectTime.time());
    noteSignal.subjectDateChanged.emit(currentNote.getGuid(), dt);

  }
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.