176 self.activated[QModelIndex].emit(idx) |
176 self.activated[QModelIndex].emit(idx) |
177 elif ( |
177 elif ( |
178 evt.type() == QEvent.Type.MouseButtonPress and |
178 evt.type() == QEvent.Type.MouseButtonPress and |
179 evt.buttons() & Qt.MouseButton.LeftButton |
179 evt.buttons() & Qt.MouseButton.LeftButton |
180 ): |
180 ): |
181 self.__dragStartPosition = self.mapFromGlobal(evt.globalPosition().toPoint()) |
181 self.__dragStartPosition = self.mapFromGlobal( |
|
182 evt.globalPosition().toPoint()) |
182 |
183 |
183 return False |
184 return False |
184 |
185 |
185 def dragEnterEvent(self, evt): |
186 def dragEnterEvent(self, evt): |
186 """ |
187 """ |