Before setting a layout settings need to set units.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-11-05 13:25:44 +02:00
parent 2e49d1437a
commit 8b6d8aee70

View file

@ -258,20 +258,29 @@ VLayoutGeneratorPtr VCommandLine::DefaultGenerator() const
} }
//fixme: not really sure ...if shift length must be set with shift units ...or separated, will comment for now. {
//Uncomment if need them both only. //just anonymous namespace ...don' like to have a,b,c,d everywhere defined
bool a = parser.isSet(*optionsUsed.value(LONG_OPTION_SHIFTLENGTH));
bool b = parser.isSet(*optionsUsed.value(LONG_OPTION_SHIFTUNITS));
// { if ((a || b) && !(a && b))
// //just anonymous namespace ...don' like to have a,b,c,d everywhere defined {
// bool a = parser.isSet(optionsUsed.value(LONG_OPTION_SHIFTLENGTH)); qCritical() << translate("VCommandLine", "Shift length must be used together with shift units.") << "\n";
// bool b = parser.isSet(optionsUsed.value(LONG_OPTION_SHIFTUNITS)); const_cast<VCommandLine*>(this)->parser.showHelp(V_EX_USAGE);
}
}
// if ((a || b) && !(a && b)) {
// { //just anonymous namespace ...don' like to have a,b,c,d everywhere defined
// qCritical() << translate("VCommandLine", "Shift length must be used together with shift units.") << "\n"; bool a = parser.isSet(*optionsUsed.value(LONG_OPTION_GAPWIDTH));
// const_cast<VCommandLine*>(this)->parser.showHelp(V_EX_USAGE); bool b = parser.isSet(*optionsUsed.value(LONG_OPTION_SHIFTUNITS));
// }
// } if ((a || b) && !(a && b))
{
qCritical() << translate("VCommandLine", "Gap width must be used together with shift units.") << "\n";
const_cast<VCommandLine*>(this)->parser.showHelp(V_EX_USAGE);
}
}
int rotateDegree = OptRotation(); int rotateDegree = OptRotation();
diag.SetRotate(rotateDegree != 0 ); diag.SetRotate(rotateDegree != 0 );