]> git.lyx.org Git - lyx.git/blobdiff - src/VSpace.cpp
Remove all uses of Q_WS_* macros
[lyx.git] / src / VSpace.cpp
index abec3eff92569101a4db227f77c69417d6b65ba8..50fc2e50a7455d73cb466d2ecd725d1b583f355e 100644 (file)
@@ -21,6 +21,7 @@
 #include "support/convert.h"
 #include "support/Length.h"
 #include "support/lstrings.h"
+#include "support/qstring_helpers.h"
 
 #include "support/lassert.h"
 
@@ -207,7 +208,7 @@ docstring const VSpace::asGUIName() const
                result = _("Vertical fill");
                break;
        case LENGTH:
-               result = from_ascii(len_.asString());
+               result = locLengthDocString(from_ascii(len_.asString()));
                break;
        }
        if (keep_)
@@ -263,10 +264,10 @@ int VSpace::inPixels(BufferView const & bv) const
        // This is how the skips are normally defined by LaTeX.
        // But there should be some way to change this per document.
        case SMALLSKIP:
-               return int(default_height / 4);
+               return default_height / 4;
 
        case MEDSKIP:
-               return int(default_height / 2);
+               return default_height / 2;
 
        case BIGSKIP:
                return default_height;
@@ -276,7 +277,7 @@ int VSpace::inPixels(BufferView const & bv) const
                return 3 * default_height;
 
        case HALFLINE:
-               return int(default_height / 2);
+               return default_height / 2;
 
        case FULLLINE:
                return default_height;