mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3155 Slightly tweak X-autozoom so it zooms to the nearest outside minor tick.
* Looks much better and makes the problem of having tick labels overlap with neighbour tracks much rarer.
This commit is contained in:
@@ -131,11 +131,11 @@ public:
|
||||
void uiOrderingForXAxisSettings(caf::PdmUiOrdering& uiOrdering);
|
||||
|
||||
void setFormationsForCaseWithSimWellOnly(bool caseWithSimWellOnly);
|
||||
void updateAxisAndGridTickIntervals();
|
||||
|
||||
private:
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
void updateParentPlotLayout();
|
||||
void updateAxisAndGridTickIntervals();
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
||||
|
||||
virtual caf::PdmFieldHandle* objectToggleField() override;
|
||||
@@ -168,6 +168,8 @@ private:
|
||||
void updateAxisScaleEngine();
|
||||
bool isFirstVisibleTrackInPlot() const;
|
||||
|
||||
std::pair<double, double> adjustXRange(double minValue, double maxValue, double tickInterval);
|
||||
|
||||
private:
|
||||
QString m_xAxisTitle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user