Пример #1
0
void App::slotFileSave()
{
	QLCFixtureEditor* editor = NULL;
	editor = static_cast<QLCFixtureEditor*> (m_workspace->activeWindow());
	if (editor != NULL && editor->save() == true)
	{
		// Save the last path so that the next file
		// dialog starts from the same place
		m_lastPath = editor->fileName();
	}
}
Пример #2
0
void App::slotFileSave()
{
    QLCFixtureEditor* editor;
    QMdiSubWindow* sub;

    sub = (qobject_cast<QMdiArea*> (centralWidget()))->activeSubWindow();
    if (sub == NULL)
        return;

    editor = static_cast<QLCFixtureEditor*> (sub->widget());
    if (editor == NULL)
        return;

    editor->save();
}