Ignore:
Timestamp:
Jul 27, 2013, 9:58:14 PM (9 years ago)
Author:
jordan
Message:

support qt5 in transmission-qt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/file-tree.cc

    r14073 r14150  
    437437    {
    438438      QString oldpath;
    439       QModelIndex walk = index;
    440439      FileTreeItem * item = itemFromIndex (index);
    441440
     
    576575FileTreeModel :: clear ()
    577576{
     577  beginResetModel ();
    578578  clearSubtree (QModelIndex());
    579 
    580   reset ();
     579  endResetModel ();
    581580}
    582581
     
    614613  bool added = false;
    615614  FileTreeItem * item;
    616   QStringList tokens = filename.split (QChar::fromAscii('/'));
     615  QStringList tokens = filename.split (QChar::fromLatin1('/'));
    617616
    618617  item = findItemForFileIndex (fileIndex);
     
    887886    {
    888887      setColumnHidden (i, (i<FIRST_VISIBLE_COLUMN) || (LAST_VISIBLE_COLUMN<i));
    889       header()->setResizeMode(i, QHeaderView::Interactive);
     888      header()->setSectionResizeMode(i, QHeaderView::Interactive);
    890889    }
    891890
Note: See TracChangeset for help on using the changeset viewer.