mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-20 11:48:35 -06:00
ResInsight: Linux compile fixes
p4#: 18783
This commit is contained in:
parent
e679ba07a5
commit
7c63cccc8d
@ -21,7 +21,7 @@ private:
|
||||
int xPosFromColIdx(size_t colIdx) { return (int)(m_x + 1 + (m_width - 2 ) * colIdx/m_histogramData.size());}
|
||||
int yPosFromCount(size_t colHeight) { return (int)(m_y + m_height - 1 - (m_height - 3 ) * colHeight/m_maxHistogramCount);}
|
||||
|
||||
int xPosFromDomainValue(double value) { double range = m_max - m_min; return (range == 0.0) ? (m_x + 1) : (int)(m_x + 1 + (m_width - 2 ) * (value - m_min)/(m_max - m_min));}
|
||||
int xPosFromDomainValue(double value) { double range = m_max - m_min; return (range == 0.0) ? (int)(m_x + 1) : (int)(m_x + 1 + (m_width - 2 ) * (value - m_min)/(m_max - m_min));}
|
||||
|
||||
std::vector<size_t> m_histogramData;
|
||||
double m_max;
|
||||
|
@ -187,7 +187,7 @@ QVariant caf::PdmField<DataType>::uiValue() const
|
||||
PdmOptionItemInfo::findValues(m_optionEntryCache, convertedFieldValue, indexes);
|
||||
if (convertedFieldValue.type() == QVariant::List)
|
||||
{
|
||||
if (indexes.size() == convertedFieldValue.toList().size())
|
||||
if (indexes.size() == static_cast<size_t>(convertedFieldValue.toList().size()))
|
||||
{
|
||||
QList<QVariant> returnList;
|
||||
for(size_t i = 0; i < indexes.size(); ++i)
|
||||
|
@ -36,8 +36,8 @@
|
||||
|
||||
|
||||
#include <assert.h>
|
||||
#include "..\src\corelib\kernel\qcoreevent.h"
|
||||
#include "..\src\gui\kernel\qevent.h"
|
||||
#include <QEvent>
|
||||
#include <QKeyEvent>
|
||||
|
||||
//==================================================================================================
|
||||
/// Helper class used to override flags to disable editable items
|
||||
|
Loading…
Reference in New Issue
Block a user