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
ef262fdc
Commit
ef262fdc
authored
Oct 01, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preview picture gathering adapted to new onDownloadFinished events.
parent
112d1dc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
UBFeaturesWidget.cpp
src/gui/UBFeaturesWidget.cpp
+3
-2
UBFeaturesWidget.h
src/gui/UBFeaturesWidget.h
+1
-1
No files found.
src/gui/UBFeaturesWidget.cpp
View file @
ef262fdc
...
...
@@ -235,7 +235,7 @@ void UBFeaturesWidget::onDisplayMetadata( QMap<QString,QString> metadata )
if
(
!
imageGatherer
)
imageGatherer
=
new
UBDownloadHttpFile
(
0
,
this
);
connect
(
imageGatherer
,
SIGNAL
(
downloadFinished
(
int
,
bool
,
QUrl
,
Q
String
,
QByteArray
,
QPointF
,
QSize
,
bool
)),
this
,
SLOT
(
onPreviewLoaded
(
int
,
boo
l
,
QUrl
,
QString
,
QByteArray
,
QPointF
,
QSize
,
bool
)));
connect
(
imageGatherer
,
SIGNAL
(
downloadFinished
(
int
,
bool
,
QUrl
,
Q
Url
,
QString
,
QByteArray
,
QPointF
,
QSize
,
bool
)),
this
,
SLOT
(
onPreviewLoaded
(
int
,
bool
,
QUr
l
,
QUrl
,
QString
,
QByteArray
,
QPointF
,
QSize
,
bool
)));
// We send here the request and store its reply in order to be able to cancel it if needed
imageGatherer
->
get
(
QUrl
(
metadata
[
"Url"
]),
QPoint
(
0
,
0
),
QSize
(),
false
);
...
...
@@ -262,10 +262,11 @@ void UBFeaturesWidget::onDisplayMetadata( QMap<QString,QString> metadata )
}
void
UBFeaturesWidget
::
onPreviewLoaded
(
int
id
,
bool
pSuccess
,
QUrl
sourceUrl
,
QString
pContentTypeHeader
,
QByteArray
pData
,
QPointF
pPos
,
QSize
pSize
,
bool
isBackground
)
void
UBFeaturesWidget
::
onPreviewLoaded
(
int
id
,
bool
pSuccess
,
QUrl
sourceUrl
,
Q
Url
originalUrl
,
Q
String
pContentTypeHeader
,
QByteArray
pData
,
QPointF
pPos
,
QSize
pSize
,
bool
isBackground
)
{
Q_UNUSED
(
id
);
Q_UNUSED
(
pSuccess
);
Q_UNUSED
(
originalUrl
);
Q_UNUSED
(
isBackground
);
Q_UNUSED
(
pSize
);
Q_UNUSED
(
pPos
);
...
...
src/gui/UBFeaturesWidget.h
View file @
ef262fdc
...
...
@@ -79,7 +79,7 @@ signals:
void
sendFileNameList
(
const
QStringList
lst
);
private
slots
:
void
onPreviewLoaded
(
int
id
,
bool
pSuccess
,
QUrl
sourceUrl
,
QString
pContentTypeHeader
,
QByteArray
pData
,
QPointF
pPos
,
QSize
pSize
,
bool
isBackground
);
void
onPreviewLoaded
(
int
id
,
bool
pSuccess
,
QUrl
sourceUrl
,
Q
Url
originalUrl
,
Q
String
pContentTypeHeader
,
QByteArray
pData
,
QPointF
pPos
,
QSize
pSize
,
bool
isBackground
);
void
currentSelected
(
const
QModelIndex
&
);
void
searchStarted
(
const
QString
&
);
void
createNewFolder
();
...
...
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