Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
lifo
Nicolas Ollinger
OpenBoard
Commits
4f61ce89
Commit
4f61ce89
authored
Jan 21, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean-up / commenting
parent
972e078a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
17 deletions
+13
-17
main.cpp
src/core/main.cpp
+0
-10
UBGraphicsMediaItem.cpp
src/domain/UBGraphicsMediaItem.cpp
+7
-1
UBPodcastController.cpp
src/podcast/UBPodcastController.cpp
+1
-1
UBGraphicsTriangle.cpp
src/tools/UBGraphicsTriangle.cpp
+5
-5
No files found.
src/core/main.cpp
View file @
4f61ce89
...
...
@@ -99,15 +99,6 @@ int main(int argc, char *argv[])
qInstallMessageHandler
(
ub_message_output
);
/*
* setGraphicsSystem is obsolete in Qt5, made redundant by the QPA framework.
* TODO: check if this works ok, if not, explore how to use QPA framework
#if defined(Q_OS_LINUX)
qDebug() << "Setting GraphicsSystem to raster";
QApplication::setGraphicsSystem("raster");
#endif
*/
UBApplication
app
(
"OpenBoard"
,
argc
,
argv
);
QStringList
args
=
app
.
arguments
();
...
...
@@ -136,7 +127,6 @@ int main(int argc, char *argv[])
}
}
//app.initialize(false); // should not be needed anymore
QObject
::
connect
(
&
app
,
SIGNAL
(
messageReceived
(
const
QString
&
,
QObject
*
)),
&
app
,
SLOT
(
handleOpenMessage
(
const
QString
&
)));
...
...
src/domain/UBGraphicsMediaItem.cpp
View file @
4f61ce89
...
...
@@ -65,7 +65,13 @@ UBGraphicsMediaItem::UBGraphicsMediaItem(const QUrl& pMediaFileUrl, QGraphicsIte
mMediaObject
->
setNotifyInterval
(
50
);
mDummyVideoWidget
=
new
QWidget
();
// owned and destructed by the scene ...
/* A dummy widget is used to keep the old functionality (when a Phonon video widget
* was used) with the current implementation, such as maintaining a clickable area
* above the video to move it around, etc.
* The whole class could be cleaned up, and the inheritance of QGraphicsProxyWidget
* abandoned, to make for a cleaner solution; for now, this works ok.
*/
mDummyVideoWidget
=
new
QWidget
();
mDummyVideoWidget
->
resize
(
320
,
240
);
mDummyVideoWidget
->
setMinimumSize
(
320
,
240
);
mDummyVideoWidget
->
setWindowOpacity
(
0.0
);
...
...
src/podcast/UBPodcastController.cpp
View file @
4f61ce89
...
...
@@ -799,7 +799,7 @@ QStringList UBPodcastController::audioRecordingDevices()
QStringList
devices
;
#ifdef Q_OS_WIN
//
devices = UBWaveRecorder::waveInDevices();
devices
=
UBWaveRecorder
::
waveInDevices
();
#elif defined(Q_OS_OSX)
devices
=
UBAudioQueueRecorder
::
waveInDevices
();
#endif
...
...
src/tools/UBGraphicsTriangle.cpp
View file @
4f61ce89
...
...
@@ -297,8 +297,8 @@ void UBGraphicsTriangle::paint(QPainter *painter, const QStyleOptionGraphicsItem
mCloseSvgItem
->
setPos
(
closeButtonRect
().
topLeft
());
qDebug
()
<<
"UBGraphicsTriangle Paint"
<<
"closeButtonRect().topLeft()="
<<
closeButtonRect
().
topLeft
();
//
qDebug() << "UBGraphicsTriangle Paint"<<"closeButtonRect().topLeft()="
//
<<closeButtonRect().topLeft();
mHFlipSvgItem
->
setPos
(
hFlipRect
().
topLeft
());
mVFlipSvgItem
->
setPos
(
vFlipRect
().
topLeft
());
...
...
@@ -321,7 +321,7 @@ QPainterPath UBGraphicsTriangle::shape() const
QPainterPath
tShape
;
QPolygonF
tPolygon
;
qDebug
()
<<
"UBGraphicsTriangle shape()"
<<
"A1 ="
<<
A1
<<
"B1 ="
<<
B1
<<
"C1 ="
<<
C1
;
//
qDebug() << "UBGraphicsTriangle shape()"<<"A1 ="<<A1<<"B1 ="<<B1<<"C1 ="<<C1;
tPolygon
<<
A1
<<
B1
<<
C1
;
tShape
.
addPolygon
(
tPolygon
);
...
...
@@ -331,8 +331,8 @@ QPainterPath UBGraphicsTriangle::shape() const
tShape
.
addPolygon
(
tPolygon
);
tPolygon
.
clear
();
qDebug
()
<<
"UBGraphicsTriangle shape()"
<<
"A1 ="
<<
A1
<<
"B1 ="
<<
B1
<<
"C1 ="
<<
C1
;
qDebug
()
<<
"UBGraphicsTriangle shape()"
<<
"A2 ="
<<
A2
<<
"B2 ="
<<
B2
<<
"C2 ="
<<
C2
;
//
qDebug() << "UBGraphicsTriangle shape()"<<"A1 ="<<A1<<"B1 ="<<B1<<"C1 ="<<C1;
//
qDebug() << "UBGraphicsTriangle shape()"<<"A2 ="<<A2<<"B2 ="<<B2<<"C2 ="<<C2;
return
tShape
;
}
...
...
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