1.1 --- a/mainwindow.cpp Tue Apr 07 16:15:53 2009 +0000
1.2 +++ b/mainwindow.cpp Mon Apr 20 10:42:05 2009 +0000
1.3 @@ -3465,27 +3465,19 @@
1.4 if (m) m->updateNoteFlag();
1.5 }
1.6
1.7 -/*
1.8 -void Main::updateNoteInEditor (VymModel *model, const NoteObj ¬e)
1.9 -{
1.10 - if (model&& model==currentModel() )
1.11 - {
1.12 - textEditor->setNote (note);
1.13 - }
1.14 -}
1.15 -*/
1.16 -
1.17 void Main::updateNoteEditor(QModelIndex index )
1.18 {
1.19 + TreeItem *ti=((VymModel*)sender())->getItem(index);
1.20 + /*
1.21 cout << "Main::updateNoteEditor model="<<sender();
1.22 - TreeItem *ti=((VymModel*)sender())->getItem(index);
1.23 - cout << " item="<<ti->getHeading().toStdString()<<" ("<<ti<<")"<<endl;
1.24 + cout << " item="<<ti->headingStd()<<" ("<<ti<<")"<<endl;
1.25 + */
1.26 textEditor->setNote (ti->getNoteObj() );
1.27 }
1.28
1.29 void Main::changeSelection (VymModel *model, const QItemSelection &newsel, const QItemSelection &oldsel)
1.30 {
1.31 - //branchPropertyWindow->setModel (model ); //FIXME-1 this used to be called from BranchObj::select()
1.32 + //branchPropertyWindow->setModel (model ); //FIXME-2 this used to be called from BranchObj::select()
1.33
1.34 if (model && model==currentModel() )
1.35 {
1.36 @@ -3507,9 +3499,7 @@
1.37 } else
1.38 textEditor->setNote(NoteObj() );
1.39 } else
1.40 - {
1.41 textEditor->setInactive();
1.42 - }
1.43
1.44 // Show URL and link in statusbar // FIXME-2
1.45 /*
1.46 @@ -3524,7 +3514,6 @@
1.47 // Update Toolbar // FIXME-1, was so far in BranchObj
1.48 //updateFlagsToolbar();
1.49
1.50 - // Update actions
1.51 updateActions();
1.52 }
1.53 }