978 } |
977 } |
979 |
978 |
980 m_renderers.remove(document); |
979 m_renderers.remove(document); |
981 } |
980 } |
982 |
981 |
983 // --------------------------------------------------------------------------------------------------------------------- |
|
984 // |
|
985 // This little beauty closes the initial file that was open at first when opening a new file over it. |
|
986 // |
|
987 void MainWindow::closeInitialDocument() |
|
988 { |
|
989 /* |
|
990 if (length(m_documents) == 2 and |
|
991 m_documents[0]->name().isEmpty() and |
|
992 not m_documents[1]->name().isEmpty() and |
|
993 not m_documents[0]->hasUnsavedChanges()) |
|
994 { |
|
995 m_documents.first()->close(); |
|
996 } |
|
997 */ |
|
998 } |
|
999 |
|
1000 QModelIndexList MainWindow::selectedIndexes() const |
982 QModelIndexList MainWindow::selectedIndexes() const |
1001 { |
983 { |
1002 return this->ui.objectList->selectionModel()->selectedIndexes(); |
984 return this->ui.objectList->selectionModel()->selectedIndexes(); |
1003 } |
985 } |
1004 |
986 |