Commit dae63def authored by Victor Yacovlev's avatar Victor Yacovlev

Added 'activateRequest' signal

parent 0dfa9651
......@@ -298,7 +298,8 @@ void MainWindowTask::loadCourse()
{
isReadOnly=false;
loadMarks(fileName);
this->show();
Q_EMIT activateRequest();
// this->show();
return;
}
bool createDefaultWorkFile=true;
......@@ -326,7 +327,8 @@ void MainWindowTask::loadCourse()
updateLastFiles(fileName);
interface->lockContrls();
ui->checkTask->setEnabled(false);
this->show();
Q_EMIT activateRequest();
// this->show();
if(createDefaultWorkFile)
{
markProgChange();
......
......@@ -91,6 +91,9 @@ public:
void setTeacher(bool mode);
QList<QAction*> getActions();
Q_SIGNALS:
void activateRequest();
public slots:
void aboutToQuit ();
......
......@@ -65,6 +65,10 @@ SecondaryWindow * SecondaryWindow::createSecondaryWindow(
connect(centralWidget, SIGNAL(resizeRequest(QSize)),
window->toWidget(), SLOT(handleResizeRequest(QSize)));
}
if (meta->indexOfSignal("activateRequest()") != -1) {
connect(centralWidget, SIGNAL(activateRequest()),
result, SLOT(activate()));
}
return result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment