Skip to content

Commit

Permalink
Merge 5e46807 into d998d18
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Aug 24, 2018
2 parents d998d18 + 5e46807 commit 5de5f11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ bool GraphPanelPlotWidget::event(QEvent *pEvent)
if (pinchGesture->changeFlags() & QPinchGesture::ScaleFactorChanged) {
scaleAxes(pinchGesture->centerPoint().toPoint(),
CustomScaling, CustomScaling,
1.0/pinchGesture->lastScaleFactor());
1.0/pinchGesture->scaleFactor());

return true;
}
Expand Down Expand Up @@ -3377,7 +3377,7 @@ void GraphPanelPlotWidget::alignWithNeighbors(bool pCanReplot,
int newMinBorderDistStartX = 0;
int newMinBorderDistEndX = 0;
double oldMinExtentY = axisWidget(QwtPlot::yLeft)->scaleDraw()->minimumExtent();
double newMinExtentY = 0;
double newMinExtentY = 0.0;

axisWidget(QwtPlot::xBottom)->getMinBorderDist(oldMinBorderDistStartX, oldMinBorderDistEndX);

Expand Down Expand Up @@ -3425,7 +3425,7 @@ void GraphPanelPlotWidget::alignWithNeighbors(bool pCanReplot,

double minExtentY = yScaleDraw->extent(yScaleWidget->font())
+(plot->titleAxisY().isEmpty()?
0:
0.0:
yScaleWidget->spacing()+yScaleWidget->title().textSize().height());

newMinExtentY = qMax(newMinExtentY, minExtentY);
Expand All @@ -3440,7 +3440,7 @@ void GraphPanelPlotWidget::alignWithNeighbors(bool pCanReplot,

yScaleWidget->scaleDraw()->setMinimumExtent( newMinExtentY
-(plot->titleAxisY().isEmpty()?
0:
0.0:
yScaleWidget->spacing()+yScaleWidget->title().textSize().height()));

if (pCanReplot) {
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/widget/WebViewerWidget/src/webviewerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ bool WebViewerWidget::event(QEvent *pEvent)
if (mOverridingCursor) {
return true;
} else if ( mOverrideCursor && !mOverridingCursor
&& (pEvent->type() == QEvent::CursorChange)
&& (cursor().shape() == Qt::IBeamCursor)) {
&& (pEvent->type() == QEvent::CursorChange)
&& (cursor().shape() == Qt::IBeamCursor)) {
mOverridingCursor = true;

setCursor(Qt::ArrowCursor);
Expand Down

0 comments on commit 5de5f11

Please sign in to comment.