mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Introduction of classes, structs and enums related to inset templates.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1129 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -515,3 +515,16 @@ bool QET::compareCanonicalFilePaths(const QString &first, const QString &second)
|
||||
|
||||
return(first_canonical_path == second_canonical_path);
|
||||
}
|
||||
|
||||
/**
|
||||
@param icl an InsetColumnLength object
|
||||
@see InsetColumnLength
|
||||
@return a string describing the type of this InsetColumnLength object
|
||||
*/
|
||||
QString QET::insetColumnLengthToString(const InsetColumnLength &icl) {
|
||||
QString type_str;
|
||||
if (icl== Absolute) type_str = "absolute";
|
||||
else if (icl == RelativeToTotalLength) type_str = "relative to total";
|
||||
else if (icl == RelativeToRemainingLength) type_str = "relative to remaining";
|
||||
return(type_str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user