Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
dae63def
Commit
dae63def
authored
Sep 04, 2014
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 'activateRequest' signal
parent
0dfa9651
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
src/plugins/coursemanager/task/mainwindow.cpp
src/plugins/coursemanager/task/mainwindow.cpp
+4
-2
src/plugins/coursemanager/task/mainwindow.h
src/plugins/coursemanager/task/mainwindow.h
+3
-0
src/shared/widgets/secondarywindow.cpp
src/shared/widgets/secondarywindow.cpp
+4
-0
No files found.
src/plugins/coursemanager/task/mainwindow.cpp
View file @
dae63def
...
...
@@ -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
();
...
...
src/plugins/coursemanager/task/mainwindow.h
View file @
dae63def
...
...
@@ -91,6 +91,9 @@ public:
void
setTeacher
(
bool
mode
);
QList
<
QAction
*>
getActions
();
Q_SIGNALS:
void
activateRequest
();
public
slots
:
void
aboutToQuit
();
...
...
src/shared/widgets/secondarywindow.cpp
View file @
dae63def
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment