Mercurial > octave-dspies
comparison libgui/src/files-dock-widget.cc @ 18678:6113e0c6920b
maint: Clean up extra spaces before/after parentheses.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 25 Apr 2014 13:25:25 -0700 |
parents | 2d5d0d86432e |
children | 479d1d3cb5c3 |
comparison
equal
deleted
inserted
replaced
18677:f684f7075aee | 18678:6113e0c6920b |
---|---|
549 { | 549 { |
550 | 550 |
551 QItemSelectionModel *m = _file_tree_view->selectionModel (); | 551 QItemSelectionModel *m = _file_tree_view->selectionModel (); |
552 QModelIndexList rows = m->selectedRows (); | 552 QModelIndexList rows = m->selectedRows (); |
553 | 553 |
554 for ( QModelIndexList::iterator it = rows.begin (); it != rows.end (); it++) | 554 for (QModelIndexList::iterator it = rows.begin (); it != rows.end (); it++) |
555 { | 555 { |
556 QFileInfo file = _file_system_model->fileInfo (*it); | 556 QFileInfo file = _file_system_model->fileInfo (*it); |
557 if (file.exists ()) | 557 if (file.exists ()) |
558 { | 558 { |
559 if (file.isFile ()) | 559 if (file.isFile ()) |
659 files_dock_widget::contextmenu_delete (bool) | 659 files_dock_widget::contextmenu_delete (bool) |
660 { | 660 { |
661 QItemSelectionModel *m = _file_tree_view->selectionModel (); | 661 QItemSelectionModel *m = _file_tree_view->selectionModel (); |
662 QModelIndexList rows = m->selectedRows (); | 662 QModelIndexList rows = m->selectedRows (); |
663 | 663 |
664 for ( QModelIndexList::iterator it = rows.begin (); it != rows.end (); it++) | 664 for (QModelIndexList::iterator it = rows.begin (); it != rows.end (); it++) |
665 { | 665 { |
666 QModelIndex index = *it; | 666 QModelIndex index = *it; |
667 | 667 |
668 QFileInfo info = _file_system_model->fileInfo (index); | 668 QFileInfo info = _file_system_model->fileInfo (index); |
669 | 669 |