mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Silence warnings in divepixmapitem.cpp
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a9b33e53ce
commit
309f0f722a
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,7 @@ void DivePictureItem::setPixmap(const QPixmap &pix)
|
||||||
CloseButtonItem *button = NULL;
|
CloseButtonItem *button = NULL;
|
||||||
void DivePictureItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
void DivePictureItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(event);
|
||||||
Animations::scaleTo(this, 1.0);
|
Animations::scaleTo(this, 1.0);
|
||||||
setZValue(5);
|
setZValue(5);
|
||||||
|
|
||||||
|
@ -109,6 +110,7 @@ void DivePictureItem::setFileUrl(const QString &s)
|
||||||
|
|
||||||
void DivePictureItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
void DivePictureItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(event);
|
||||||
Animations::scaleTo(this, 0.2);
|
Animations::scaleTo(this, 0.2);
|
||||||
setZValue(0);
|
setZValue(0);
|
||||||
if(button){
|
if(button){
|
||||||
|
@ -126,6 +128,7 @@ DivePictureItem::~DivePictureItem(){
|
||||||
|
|
||||||
void DivePictureItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
void DivePictureItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(event);
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(fileUrl));
|
QDesktopServices::openUrl(QUrl::fromLocalFile(fileUrl));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue