Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
4f6cde07
Commit
4f6cde07
authored
Apr 10, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1443 from DonLakeFlyer/UnusedCode
Remove unused code
parents
951762ee
f0b1f0a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
MainWindow.cc
src/ui/MainWindow.cc
+0
-35
MainWindow.h
src/ui/MainWindow.h
+0
-3
No files found.
src/ui/MainWindow.cc
View file @
4f6cde07
...
...
@@ -784,41 +784,6 @@ void MainWindow::configureWindowName()
setWindowTitle
(
windowname
);
}
// TODO: This is not used
void
MainWindow
::
startVideoCapture
()
{
// TODO: What is this? What kind of "Video" is saved to bmp?
QString
format
(
"bmp"
);
QString
initialPath
=
QDir
::
currentPath
()
+
tr
(
"/untitled."
)
+
format
;
_screenFileName
=
QGCFileDialog
::
getSaveFileName
(
this
,
tr
(
"Save Video Capture"
),
initialPath
,
tr
(
"%1 Files (*.%2);;All Files (*)"
)
.
arg
(
format
.
toUpper
())
.
arg
(
format
),
format
);
delete
videoTimer
;
videoTimer
=
new
QTimer
(
this
);
}
// TODO: This is not used
void
MainWindow
::
stopVideoCapture
()
{
videoTimer
->
stop
();
// TODO Convert raw images to PNG
}
// TODO: This is not used
void
MainWindow
::
saveScreen
()
{
QPixmap
window
=
QPixmap
::
grabWindow
(
this
->
winId
());
QString
format
=
"bmp"
;
if
(
!
_screenFileName
.
isEmpty
())
{
window
.
save
(
_screenFileName
,
format
.
toLatin1
());
}
}
void
MainWindow
::
enableAutoReconnect
(
bool
enabled
)
{
_autoReconnect
=
enabled
;
...
...
src/ui/MainWindow.h
View file @
4f6cde07
...
...
@@ -141,9 +141,6 @@ public slots:
void
UASDeleted
(
UASInterface
*
uas
);
/** @brief Update system specs of a UAS */
void
UASSpecsChanged
(
int
uas
);
void
startVideoCapture
();
void
stopVideoCapture
();
void
saveScreen
();
void
handleMisconfiguration
(
UASInterface
*
uas
);
/** @brief Load configuration views */
...
...
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