QPointF target = coordinate.toPointF();
m_lastSetScenePosition = coordinate;
- if (!isUserDragAction) {
+ if (!isUserDragAction)
target += m_centerHorizontalShiftPoint;
- }
centerOn(target);
}
void setViewShift(qreal viewShift);
/**
- * @brief Toggles the shifting of the center point
- *
- * @param enabled True if shifting is enabled
- */
- void toggleCenterShift(bool enabled);
-
- /**
* @brief Update center shifting value
*/
void updateCenterShift();
this, SLOT(drawMapScale(QSize)));
connect(m_mapView, SIGNAL(viewResized(QSize)),
- this, SLOT(setViewPortSize(QSize)));
+ this, SLOT(moveCrosshair()));
connect(this, SIGNAL(zoomLevelChanged(int)),
m_mapView, SLOT(setZoomLevel(int)));
m_email = username;
}
-void MainWindow::setViewPortSize(const QSize &size)
-{
- qDebug() << __PRETTY_FUNCTION__;
-
- m_viewPortSize = size;
-}
-
void MainWindow::showEnableAutomaticUpdateLocationDialog(const QString &text)
{
qDebug() << __PRETTY_FUNCTION__;
void settingsDialogAccepted();
/**
- * @brief Set correnct view port size to datamembers
- *
- * @param size Size of the screen
- */
- void setViewPortSize(const QSize &size);
-
- /**
* @brief Start location search (open search dialog)
*/
void startLocationSearch();
QMessageBox *m_automaticUpdateLocationDialog; ///< Automatic update location dialog
- QSize m_viewPortSize; ///< Size of the viewport
-
QString m_email; ///< Placeholder for email
QString m_password; ///< Placeholder for password