GCC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-05 14:32:47 +02:00
parent 840a4a9d92
commit 7f065cac89
2 changed files with 12 additions and 12 deletions

View File

@ -295,11 +295,11 @@ void VSettings::SetLayoutPaperWidth(qreal value)
}
//---------------------------------------------------------------------------------------------------------------------
quint32 VSettings::GetLayoutShift() const
qreal VSettings::GetLayoutShift() const
{
const quint32 def = GetDefLayoutShift();
const qreal def = GetDefLayoutShift();
bool ok = false;
const quint32 shift = value(SettingLayoutShift, def).toUInt(&ok);
const qreal shift = value(SettingLayoutShift, def).toDouble(&ok);
if (ok)
{
return shift;
@ -317,17 +317,17 @@ qreal VSettings::GetDefLayoutShift()
}
//---------------------------------------------------------------------------------------------------------------------
void VSettings::SetLayoutShift(quint32 value)
void VSettings::SetLayoutShift(qreal value)
{
setValue(SettingLayoutShift, value);
}
//---------------------------------------------------------------------------------------------------------------------
quint32 VSettings::GetLayoutWidth() const
qreal VSettings::GetLayoutWidth() const
{
const quint32 def = GetDefLayoutWidth();
const qreal def = GetDefLayoutWidth();
bool ok = false;
const quint32 lWidth = value(SettingLayoutWidth, def).toUInt(&ok);
const qreal lWidth = value(SettingLayoutWidth, def).toDouble(&ok);
if (ok)
{
return lWidth;
@ -345,7 +345,7 @@ qreal VSettings::GetDefLayoutWidth()
}
//---------------------------------------------------------------------------------------------------------------------
void VSettings::SetLayoutWidth(quint32 value)
void VSettings::SetLayoutWidth(qreal value)
{
setValue(SettingLayoutWidth, value);
}

View File

@ -89,13 +89,13 @@ public:
qreal GetLayoutPaperWidth() const;
void SetLayoutPaperWidth(qreal value);
quint32 GetLayoutShift() const;
qreal GetLayoutShift() const;
static qreal GetDefLayoutShift();
void SetLayoutShift(quint32 value);
void SetLayoutShift(qreal value);
quint32 GetLayoutWidth() const;
qreal GetLayoutWidth() const;
static qreal GetDefLayoutWidth();
void SetLayoutWidth(quint32 value);
void SetLayoutWidth(qreal value);
Cases GetLayoutGroup() const;
static Cases GetDefLayoutGroup();