comparison main/MainWindow.cpp @ 260:1a1c764ea636

* basics of data editing in data table view
author Chris Cannam
date Mon, 09 Jun 2008 16:01:50 +0000
parents a31c65904a49
children 2b4a4b8c465a
comparison
equal deleted inserted replaced
259:c64720483413 260:1a1c764ea636
3055 if (layer) { 3055 if (layer) {
3056 Model *model = layer->getModel(); 3056 Model *model = layer->getModel();
3057 if (model) { 3057 if (model) {
3058 3058
3059 ModelDataTableDialog *dialog = new ModelDataTableDialog(model); 3059 ModelDataTableDialog *dialog = new ModelDataTableDialog(model);
3060 dialog->setAttribute(Qt::WA_DeleteOnClose); // see below 3060 dialog->setAttribute(Qt::WA_DeleteOnClose);
3061 connect(m_viewManager,
3062 SIGNAL(globalCentreFrameChanged(unsigned long)),
3063 dialog, SLOT(scrollToFrame(unsigned long)));
3064 connect(m_viewManager,
3065 SIGNAL(playbackFrameChanged(unsigned long)),
3066 dialog, SLOT(scrollToFrame(unsigned long)));
3061 dialog->show(); 3067 dialog->show();
3062 return; 3068 return;
3063 } 3069 }
3064 } 3070 }
3065 } 3071 }