Skip to content

Commit

Permalink
Update PhotosViewer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chgeorgios authored Feb 11, 2019
1 parent 3301753 commit 66d6907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PhotosViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"""
from PyQt5.QtWidgets import (QGraphicsView, QGraphicsScene, QVBoxLayout, QHBoxLayout, QWidget, \
QLineEdit, QLabel, QSizePolicy, QPushButton, QFrame)
from PyQt5.QtCore import (Qt, pyqtSignal, QRectF, QRect, QSize)
from PyQt5.QtCore import (Qt, pyqtSignal, QRectF, QRect, QSize, QFileInfo)
from PyQt5.QtGui import (QPainterPath, QIcon, QPixmap, QImage)
from qgis.core import QgsProject
import os.path
Expand Down Expand Up @@ -190,7 +190,7 @@ def __init__(self, drawSelf):
prj = QgsProject.instance()
if prj.fileName():
imPath = QFileInfo(prj.fileName()).absolutePath() + \
feature.attributes()[feature.fieldNameIndex('RelPath')]
f.attributes()[f.fieldNameIndex('RelPath')]

azimuth = f.attributes()[f.fieldNameIndex('Azimuth')]
self.allpictures.append(f.attributes()[f.fieldNameIndex('Name')])
Expand Down Expand Up @@ -387,4 +387,4 @@ def extentbutton(self):
self.viewer.panSelect = False
self.viewer.zoomSelect = False
self.viewer.setCursor(Qt.ArrowCursor)
self.viewer.setDragMode(QGraphicsView.NoDrag)
self.viewer.setDragMode(QGraphicsView.NoDrag)

0 comments on commit 66d6907

Please sign in to comment.