コード例 #1
0
void WorkspaceWatcher::change()
{
  bool wasDirty = m_dirty;
  m_dirty = true;

  if (enabled()){
    if (!wasDirty){
      onBecomeDirty();
    }
    onChangeWorkspace();
  }
}
コード例 #2
0
ファイル: SANSEventSlicing.cpp プロジェクト: jkrueger1/mantid
void SANSEventSlicing::showEvent(QShowEvent * ev ){
  if (ui.run_opt->count() > 0)
    onChangeWorkspace(ui.run_opt->currentText()); 
  UserSubWindow::showEvent(ev);
}