Package com.trolltech.qt.core

Examples of com.trolltech.qt.core.QModelIndex.data()


        if (noteTableView.proxyModel.rowCount() == 0)
          pos = 0;
        if (pos>0)  {
          QModelIndex i = noteTableView.proxyModel.index(pos-1, Global.noteTableGuidPosition);
          if (i!=null) {
            currentNoteGuid = (String)i.data();
          }
        }
      }   
    if (!noteTableView.isColumnHidden(Global.noteTableGuidPosition))
      showColumns();
View Full Code Here


        }
      }
      QModelIndex index;
      for (int i=0; i<noteTableView.model().rowCount(); i++) {
        index = noteTableView.model().index(i, Global.noteTableGuidPosition);
        if (currentNoteGuid.equals(index.data())) {
//          noteTableView.selectionModel().blockSignals(true);
             noteTableView.selectRow(i);
//             noteTableView.selectionModel().blockSignals(false);
          noteTableView.scrollTo(index, ScrollHint.EnsureVisible)// This should work, but it doesn't
             i=listManager.getNoteTableModel().rowCount();
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.