Exemplo n.º 1
0
Arquivo: app.cpp Projeto: speakman/qlc
void App::slotFileSaveAs()
{
	QLCFixtureEditor* editor = NULL;
	editor = static_cast<QLCFixtureEditor*> (m_workspace->activeWindow());
	if (editor && editor->saveAs())
	{
		// Save the last path so that the next file dialog starts from there
		m_lastPath = editor->fileName();
	}
}
Exemplo n.º 2
0
void App::slotFileSaveAs()
{
    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->saveAs();
}