Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QFontMetrics.height()


    hideColumn(Global.noteTableGuidPosition)// Hide the guid column
    setShowGrid(false);
    setEditTriggers(QAbstractItemView.EditTrigger.NoEditTriggers);
   
    QFontMetrics f = QApplication.fontMetrics();
    fontHeight = f.height();
    rowChanged = new Signal1<String>();
    resetViewport = new Signal0();
   
    NoteTableDateDelegate dateDelegate = new NoteTableDateDelegate();
    setItemDelegateForColumn(Global.noteTableCreationPosition, dateDelegate);
View Full Code Here


  public void load(boolean reload) {
    proxyModel.clear();
    setSortingEnabled(false);
    QFontMetrics f = QApplication.fontMetrics();
    if (!Global.isColumnVisible("thumbnail"))
        verticalHeader().setDefaultSectionSize(f.height());
    else {
      if (Global.getListView() == Global.View_List_Wide)
        verticalHeader().setDefaultSectionSize(Global.smallThumbnailSize.height());
      else
        verticalHeader().setDefaultSectionSize(Global.largeThumbnailSize.height());
View Full Code Here

 
  public void resizeRowHeights() {
    int height;
    if (!Global.isColumnVisible("thumbnail") || !Global.enableThumbnails()) {
      QFontMetrics f = QApplication.fontMetrics();
      verticalHeader().setDefaultSectionSize(f.height());
      height = fontHeight;
    } else {
      if (Global.getListView() == Global.View_List_Wide) {
        verticalHeader().setDefaultSectionSize(Global.smallThumbnailSize.height());
        height = Global.smallThumbnailSize.height();
View Full Code Here

  public void toggleThumbnail(Boolean toggle) {
    Global.saveColumnVisible("thumbnail", toggle);
    int size;
    if (!toggle) {
      QFontMetrics f = QApplication.fontMetrics();
      size = f.height();
      verticalHeader().setDefaultSectionSize(f.height());
    } else
      size = Global.smallThumbnailSize.height();
    for (int i=0; i<runner.getNoteTableModel().rowCount(); i++) {
      setRowHeight(i, size);
View Full Code Here

    Global.saveColumnVisible("thumbnail", toggle);
    int size;
    if (!toggle) {
      QFontMetrics f = QApplication.fontMetrics();
      size = f.height();
      verticalHeader().setDefaultSectionSize(f.height());
    } else
      size = Global.smallThumbnailSize.height();
    for (int i=0; i<runner.getNoteTableModel().rowCount(); i++) {
      setRowHeight(i, size);
    }
View Full Code Here

    }
  }

  private void addRow(int row, String email, boolean mod, boolean login) {
    QFontMetrics f = QApplication.fontMetrics();
    int fontHeight = f.height();

    QTableWidgetItem emailWidget = new QTableWidgetItem();
    emailWidget.setText(email);
    table.setItem(row, 0, emailWidget);
    table.setRowHeight(row, fontHeight);
View Full Code Here

    }
  }

  private void addRow(int row, String folder, String notebook, boolean keepAfter) {
    QFontMetrics f = QApplication.fontMetrics();
    int fontHeight = f.height();

    QTableWidgetItem dir = new QTableWidgetItem();
    dir.setText(folder);
    table.setItem(row, 0, dir);
    table.setRowHeight(row, fontHeight);
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.