[kde-doc-english] [kxstitch] /: Some pattern rendering improvements

Steve Allewell steve.allewell at gmail.com
Sun Dec 6 21:23:55 UTC 2015


Git commit 9fd36ed17450375528fbc43511d8530ebfa6541b by Steve Allewell.
Committed on 06/12/2015 at 21:15.
Pushed by sallewell into branch 'master'.

Some pattern rendering improvements

GUI: New configuration option

M  +4    -0    kxstitch.kcfg
M  +138  -215  src/Renderer.cpp
M  +2    -0    src/Renderer.h
M  +23   -16   ui/EditorConfigPage.ui

http://commits.kde.org/kxstitch/9fd36ed17450375528fbc43511d8530ebfa6541b

diff --git a/kxstitch.kcfg b/kxstitch.kcfg
index e81538f..6399634 100644
--- a/kxstitch.kcfg
+++ b/kxstitch.kcfg
@@ -110,6 +110,10 @@
             <label>Render the french knots</label>
             <default>true</default>
         </entry>
+        <entry name="Renderer_RenderStitchHints" type="Bool">
+            <label>Render stitch hints for colored blocks</label>
+            <default>true</default>
+        </entry>
         <entry name="Renderer_RenderStitchesAs" type="Enum">
             <label>How to display stitches.</label>
             <default>Stitches</default>
diff --git a/src/Renderer.cpp b/src/Renderer.cpp
index 5e005a8..c92253b 100644
--- a/src/Renderer.cpp
+++ b/src/Renderer.cpp
@@ -354,14 +354,14 @@ void Renderer::render(QPainter *painter,
 
 void Renderer::renderStitchesAsStitches(StitchQueue *stitchQueue)
 {
+    QPen pen(Qt::lightGray, 0, Qt::SolidLine, Qt::RoundCap);
+
     int i = stitchQueue->count();
 
     while (i) {
         Stitch *stitch = stitchQueue->at(--i);
         DocumentFloss *documentFloss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
 
-        QPen pen;
-
         if ((d->m_highlight == -1) || (stitch->colorIndex == d->m_highlight)) {
             pen.setColor(documentFloss->flossColor());
             pen.setWidthF(documentFloss->stitchStrands() / 10.0);
@@ -370,7 +370,6 @@ void Renderer::renderStitchesAsStitches(StitchQueue *stitchQueue)
             pen.setWidthF(0);
         }
 
-        pen.setCapStyle(Qt::RoundCap);
         d->m_painter->setPen(pen);
 
         switch (stitch->type) {
@@ -475,11 +474,8 @@ void Renderer::renderStitchesAsBlackWhiteSymbols(StitchQueue *stitchQueue)
 
     while (i) {
         Stitch *stitch = stitchQueue->at(--i);
-        DocumentFloss *floss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
-        Symbol symbol = d->m_symbolLibrary->symbol(floss->stitchSymbol());
-
-        QPen outlinePen(Qt::lightGray);
-        outlinePen.setWidthF(0.01);
+        DocumentFloss *documentFloss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
+        Symbol symbol = d->m_symbolLibrary->symbol(documentFloss->stitchSymbol());
 
         QPen symbolPen = symbol.pen();
         QBrush symbolBrush = symbol.brush();
@@ -496,97 +492,8 @@ void Renderer::renderStitchesAsBlackWhiteSymbols(StitchQueue *stitchQueue)
 
         d->m_painter->drawPath(symbol.path(stitch->type));
 
-        d->m_painter->setPen(outlinePen);
-
-        switch (stitch->type) {
-        case Stitch::Delete:
-            break;
-
-        case Stitch::TLQtr:
-            d->m_painter->drawLine(d->m_topLeft, d->m_center);
-            break;
-
-        case Stitch::TRQtr:
-            d->m_painter->drawLine(d->m_center, d->m_topRight);
-            break;
-
-        case Stitch::BLQtr:
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
-            break;
-
-        case Stitch::BTHalf:
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_topRight);
-            break;
-
-        case Stitch::TL3Qtr:
-            d->m_painter->drawLine(d->m_topRight, d->m_bottomLeft);
-            d->m_painter->drawLine(d->m_topLeft, d->m_center);
-            break;
-
-        case Stitch::BRQtr:
-            d->m_painter->drawLine(d->m_center, d->m_bottomRight);
-            break;
-
-        case Stitch::TBHalf:
-            d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
-            break;
-
-        case Stitch::TR3Qtr:
-            d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
-            d->m_painter->drawLine(d->m_topRight, d->m_center);
-            break;
-
-        case Stitch::BL3Qtr:
-            d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
-            break;
-
-        case Stitch::BR3Qtr:
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_topRight);
-            d->m_painter->drawLine(d->m_center, d->m_bottomRight);
-            break;
-
-        case Stitch::Full:
-            break;
-
-        case Stitch::TLSmallHalf:
-            d->m_painter->drawLine(d->m_centerLeft, d->m_centerTop);
-            break;
-
-        case Stitch::TRSmallHalf:
-            d->m_painter->drawLine(d->m_centerTop, d->m_centerRight);
-            break;
-
-        case Stitch::BLSmallHalf:
-            d->m_painter->drawLine(d->m_centerLeft, d->m_centerBottom);
-            break;
-
-        case Stitch::BRSmallHalf:
-            d->m_painter->drawLine(d->m_centerBottom, d->m_centerRight);
-            break;
-
-        case Stitch::TLSmallFull:
-            d->m_painter->drawLine(d->m_topLeft, d->m_center);
-            d->m_painter->drawLine(d->m_centerTop, d->m_centerLeft);
-            break;
-
-        case Stitch::TRSmallFull:
-            d->m_painter->drawLine(d->m_centerTop, d->m_centerRight);
-            d->m_painter->drawLine(d->m_center, d->m_topRight);
-            break;
-
-        case Stitch::BLSmallFull:
-            d->m_painter->drawLine(d->m_centerLeft, d->m_centerBottom);
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
-            break;
-
-        case Stitch::BRSmallFull:
-            d->m_painter->drawLine(d->m_center, d->m_bottomRight);
-            d->m_painter->drawLine(d->m_centerRight, d->m_centerBottom);
-            break;
-
-        case Stitch::FrenchKnot:
-            break;
+        if (Configuration::renderer_RenderStitchHints()) {
+            renderStitchHints(stitch);
         }
     }
 }
@@ -601,7 +508,6 @@ void Renderer::renderStitchesAsColorSymbols(StitchQueue *stitchQueue)
         DocumentFloss *documentFloss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
         Symbol symbol = d->m_symbolLibrary->symbol(documentFloss->stitchSymbol());
 
-        QPen outlinePen(Qt::lightGray);
         QPen symbolPen = symbol.pen();
         QBrush symbolBrush = symbol.brush();
 
@@ -618,97 +524,8 @@ void Renderer::renderStitchesAsColorSymbols(StitchQueue *stitchQueue)
 
         d->m_painter->drawPath(symbol.path(stitch->type));
 
-        d->m_painter->setPen(outlinePen);
-
-        switch (stitch->type) {
-        case Stitch::Delete:
-            break;
-
-        case Stitch::TLQtr:
-            d->m_painter->drawLine(d->m_topLeft, d->m_center);
-            break;
-
-        case Stitch::TRQtr:
-            d->m_painter->drawLine(d->m_center, d->m_topRight);
-            break;
-
-        case Stitch::BLQtr:
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
-            break;
-
-        case Stitch::BTHalf:
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_topRight);
-            break;
-
-        case Stitch::TL3Qtr:
-            d->m_painter->drawLine(d->m_topRight, d->m_bottomLeft);
-            d->m_painter->drawLine(d->m_topLeft, d->m_center);
-            break;
-
-        case Stitch::BRQtr:
-            d->m_painter->drawLine(d->m_center, d->m_bottomRight);
-            break;
-
-        case Stitch::TBHalf:
-            d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
-            break;
-
-        case Stitch::TR3Qtr:
-            d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
-            d->m_painter->drawLine(d->m_topRight, d->m_center);
-            break;
-
-        case Stitch::BL3Qtr:
-            d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
-            break;
-
-        case Stitch::BR3Qtr:
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_topRight);
-            d->m_painter->drawLine(d->m_center, d->m_bottomRight);
-            break;
-
-        case Stitch::Full:
-            break;
-
-        case Stitch::TLSmallHalf:
-            d->m_painter->drawLine(d->m_centerLeft, d->m_centerTop);
-            break;
-
-        case Stitch::TRSmallHalf:
-            d->m_painter->drawLine(d->m_centerTop, d->m_centerRight);
-            break;
-
-        case Stitch::BLSmallHalf:
-            d->m_painter->drawLine(d->m_centerLeft, d->m_centerBottom);
-            break;
-
-        case Stitch::BRSmallHalf:
-            d->m_painter->drawLine(d->m_centerBottom, d->m_centerRight);
-            break;
-
-        case Stitch::TLSmallFull:
-            d->m_painter->drawLine(d->m_topLeft, d->m_center);
-            d->m_painter->drawLine(d->m_centerTop, d->m_centerLeft);
-            break;
-
-        case Stitch::TRSmallFull:
-            d->m_painter->drawLine(d->m_centerTop, d->m_centerRight);
-            d->m_painter->drawLine(d->m_center, d->m_topRight);
-            break;
-
-        case Stitch::BLSmallFull:
-            d->m_painter->drawLine(d->m_centerLeft, d->m_centerBottom);
-            d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
-            break;
-
-        case Stitch::BRSmallFull:
-            d->m_painter->drawLine(d->m_center, d->m_bottomRight);
-            d->m_painter->drawLine(d->m_centerRight, d->m_centerBottom);
-            break;
-
-        case Stitch::FrenchKnot:
-            break;
+        if (Configuration::renderer_RenderStitchHints()) {
+            renderStitchHints(stitch);
         }
     }
 }
@@ -716,24 +533,21 @@ void Renderer::renderStitchesAsColorSymbols(StitchQueue *stitchQueue)
 
 void Renderer::renderStitchesAsColorBlocks(StitchQueue *stitchQueue)
 {
+    QBrush blockBrush(Qt::SolidPattern);
+
     int i = stitchQueue->count();
 
     while (i) {
         Stitch *stitch = stitchQueue->at(--i);
         DocumentFloss *documentFloss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
 
-        QPen blockPen;
-        QBrush blockBrush(Qt::SolidPattern);
-
         if ((d->m_highlight == -1) || (stitch->colorIndex == d->m_highlight)) {
-            blockPen.setColor(documentFloss->flossColor());
             blockBrush.setColor(documentFloss->flossColor());
         } else {
-            blockPen.setColor(Qt::lightGray);
             blockBrush.setColor(Qt::lightGray);
         }
 
-        d->m_painter->setPen(blockPen);
+        d->m_painter->setPen(Qt::NoPen);
         d->m_painter->setBrush(blockBrush);
 
         switch (stitch->type) {
@@ -819,39 +633,41 @@ void Renderer::renderStitchesAsColorBlocks(StitchQueue *stitchQueue)
         case Stitch::FrenchKnot:
             break;
         }
+
+        if (Configuration::renderer_RenderStitchHints()) {
+            renderStitchHints(stitch);
+        }
     }
 }
 
 
 void Renderer::renderStitchesAsColorBlocksSymbols(StitchQueue *stitchQueue)
 {
+    QBrush blockBrush(Qt::SolidPattern);
+
     int i = stitchQueue->count();
 
     while (i) {
         Stitch *stitch = stitchQueue->at(--i);
-        DocumentFloss *floss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
-        Symbol symbol = d->m_symbolLibrary->symbol(floss->stitchSymbol());
+        DocumentFloss *documentFloss = d->m_pattern->palette().flosses().value(stitch->colorIndex);
+        Symbol symbol = d->m_symbolLibrary->symbol(documentFloss->stitchSymbol());
 
         QPen symbolPen = symbol.pen();
         QBrush symbolBrush = symbol.brush();
-        QPen blockPen;
-        QBrush blockBrush(Qt::SolidPattern);
 
         if ((d->m_highlight == -1) || (stitch->colorIndex == d->m_highlight)) {
-            QColor flossColor = floss->flossColor();
+            QColor flossColor = documentFloss->flossColor();
             QColor symbolColor = (qGray(flossColor.rgb()) < 128) ? Qt::white : Qt::black;
             symbolPen.setColor(symbolColor);
             symbolBrush.setColor(symbolColor);
-            blockPen.setColor(flossColor);
             blockBrush.setColor(flossColor);
         } else {
             symbolPen.setColor(Qt::darkGray);
             symbolBrush.setColor(Qt::darkGray);
-            blockPen.setColor(Qt::lightGray);
             blockBrush.setColor(Qt::lightGray);
         }
 
-        d->m_painter->setPen(blockPen);
+        d->m_painter->setPen(Qt::NoPen);
         d->m_painter->setBrush(blockBrush);
 
         switch (stitch->type) {
@@ -942,6 +758,107 @@ void Renderer::renderStitchesAsColorBlocksSymbols(StitchQueue *stitchQueue)
         d->m_painter->setBrush(symbolBrush);
 
         d->m_painter->drawPath(symbol.path(stitch->type));
+
+        if (Configuration::renderer_RenderStitchHints()) {
+            renderStitchHints(stitch);
+        }
+    }
+}
+
+
+void Renderer::renderStitchHints(Stitch *stitch)
+{
+    d->m_painter->setPen(QPen(Qt::lightGray, 0));
+
+    switch (stitch->type) {
+    case Stitch::Delete:
+        break;
+
+    case Stitch::TLQtr:
+        d->m_painter->drawLine(d->m_topLeft, d->m_center);
+        break;
+
+    case Stitch::TRQtr:
+        d->m_painter->drawLine(d->m_center, d->m_topRight);
+        break;
+
+    case Stitch::BLQtr:
+        d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
+        break;
+
+    case Stitch::BTHalf:
+        d->m_painter->drawLine(d->m_bottomLeft, d->m_topRight);
+        break;
+
+    case Stitch::TL3Qtr:
+        d->m_painter->drawLine(d->m_topRight, d->m_bottomLeft);
+        d->m_painter->drawLine(d->m_topLeft, d->m_center);
+        break;
+
+    case Stitch::BRQtr:
+        d->m_painter->drawLine(d->m_center, d->m_bottomRight);
+        break;
+
+    case Stitch::TBHalf:
+        d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
+        break;
+
+    case Stitch::TR3Qtr:
+        d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
+        d->m_painter->drawLine(d->m_topRight, d->m_center);
+        break;
+
+    case Stitch::BL3Qtr:
+        d->m_painter->drawLine(d->m_topLeft, d->m_bottomRight);
+        d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
+        break;
+
+    case Stitch::BR3Qtr:
+        d->m_painter->drawLine(d->m_bottomLeft, d->m_topRight);
+        d->m_painter->drawLine(d->m_center, d->m_bottomRight);
+        break;
+
+    case Stitch::Full:
+        break;
+
+    case Stitch::TLSmallHalf:
+        d->m_painter->drawLine(d->m_centerLeft, d->m_centerTop);
+        break;
+
+    case Stitch::TRSmallHalf:
+        d->m_painter->drawLine(d->m_centerTop, d->m_centerRight);
+        break;
+
+    case Stitch::BLSmallHalf:
+        d->m_painter->drawLine(d->m_centerLeft, d->m_centerBottom);
+        break;
+
+    case Stitch::BRSmallHalf:
+        d->m_painter->drawLine(d->m_centerBottom, d->m_centerRight);
+        break;
+
+    case Stitch::TLSmallFull:
+        d->m_painter->drawLine(d->m_topLeft, d->m_center);
+        d->m_painter->drawLine(d->m_centerTop, d->m_centerLeft);
+        break;
+
+    case Stitch::TRSmallFull:
+        d->m_painter->drawLine(d->m_centerTop, d->m_centerRight);
+        d->m_painter->drawLine(d->m_center, d->m_topRight);
+        break;
+
+    case Stitch::BLSmallFull:
+        d->m_painter->drawLine(d->m_centerLeft, d->m_centerBottom);
+        d->m_painter->drawLine(d->m_bottomLeft, d->m_center);
+        break;
+
+    case Stitch::BRSmallFull:
+        d->m_painter->drawLine(d->m_center, d->m_bottomRight);
+        d->m_painter->drawLine(d->m_centerRight, d->m_centerBottom);
+        break;
+
+    case Stitch::FrenchKnot:
+        break;
     }
 }
 
@@ -996,18 +913,16 @@ void Renderer::renderBackstitchesAsBlackWhiteSymbols(Backstitch *backstitch)
 void Renderer::renderKnotsAsColorBlocks(Knot *knot)
 {
     DocumentFloss *documentFloss = d->m_pattern->palette().floss(knot->colorIndex);
-    QPen outlinePen;
+
     QBrush brush(Qt::SolidPattern);
 
     if ((d->m_highlight == -1) || (knot->colorIndex == d->m_highlight)) {
-        outlinePen.setColor(documentFloss->flossColor());
         brush.setColor(documentFloss->flossColor());
     } else {
-        outlinePen.setColor(Qt::lightGray);
         brush.setColor(Qt::lightGray);
     }
 
-    d->m_painter->setPen(outlinePen);
+    d->m_painter->setPen(QPen(Qt::NoPen));
     d->m_painter->setBrush(brush);
 
     QRectF rect(0, 0, 0.75, 0.75);
@@ -1024,7 +939,7 @@ void Renderer::renderKnotsAsColorBlocksSymbols(Knot *knot)
 
     QPen symbolPen = symbol.pen();
     QBrush symbolBrush = symbol.brush();
-    QPen blockPen;
+
     QBrush blockBrush(Qt::SolidPattern);
 
     if ((d->m_highlight == -1) || (knot->colorIndex == d->m_highlight)) {
@@ -1032,16 +947,14 @@ void Renderer::renderKnotsAsColorBlocksSymbols(Knot *knot)
         QColor symbolColor = (qGray(flossColor.rgb()) < 128) ? Qt::white : Qt::black;
         symbolPen.setColor(symbolColor);
         symbolBrush.setColor(symbolColor);
-        blockPen.setColor(flossColor);
         blockBrush.setColor(flossColor);
     } else {
         symbolPen.setColor(Qt::darkGray);
         symbolBrush.setColor(Qt::darkGray);
-        blockPen.setColor(Qt::lightGray);
         blockBrush.setColor(Qt::lightGray);
     }
 
-    d->m_painter->setPen(blockPen);
+    d->m_painter->setPen(QPen(Qt::NoPen));
     d->m_painter->setBrush(blockBrush);
 
     QRectF rect(0, 0, 0.75, 0.75);
@@ -1059,6 +972,8 @@ void Renderer::renderKnotsAsColorSymbols(Knot *knot)
     DocumentFloss *documentFloss = d->m_pattern->palette().floss(knot->colorIndex);
     Symbol symbol = d->m_symbolLibrary->symbol(documentFloss->stitchSymbol());
 
+    QPen outlinePen(Qt::lightGray, 0);
+
     QPen symbolPen = symbol.pen();
     QBrush symbolBrush = symbol.brush();
 
@@ -1066,18 +981,21 @@ void Renderer::renderKnotsAsColorSymbols(Knot *knot)
         QColor flossColor = documentFloss->flossColor();
         symbolPen.setColor(flossColor);
         symbolBrush.setColor(flossColor);
+        outlinePen.setColor(flossColor);
     } else {
         symbolPen.setColor(Qt::lightGray);
         symbolBrush.setColor(Qt::lightGray);
     }
 
-    d->m_painter->setPen(symbolPen);
+    d->m_painter->setPen(outlinePen);
     d->m_painter->setBrush(Qt::NoBrush);
 
     QRectF rect(0, 0, 0.75, 0.75);
     rect.moveCenter(QPointF(knot->position) / 2);
 
     d->m_painter->drawEllipse(rect);
+
+    d->m_painter->setPen(symbolPen);
     d->m_painter->setBrush(symbolBrush);
     d->m_painter->drawPath(symbol.path(Stitch::FrenchKnot).translated(QPointF(knot->position) / 2 - QPointF(0.5, 0.5)));
 }
@@ -1088,24 +1006,29 @@ void Renderer::renderKnotsAsBlackWhiteSymbols(Knot *knot)
     DocumentFloss *documentFloss = d->m_pattern->palette().floss(knot->colorIndex);
     Symbol symbol = d->m_symbolLibrary->symbol(documentFloss->stitchSymbol());
 
+    QPen outlinePen(Qt::lightGray, 0);
+
     QPen symbolPen = symbol.pen();
     QBrush symbolBrush = symbol.brush();
 
     if ((d->m_highlight == -1) || (knot->colorIndex == d->m_highlight)) {
         symbolPen.setColor(Qt::black);
         symbolBrush.setColor(Qt::black);
+        outlinePen.setColor(Qt::black);
     } else {
         symbolPen.setColor(Qt::lightGray);
         symbolBrush.setColor(Qt::lightGray);
     }
 
-    d->m_painter->setPen(symbolPen);
+    d->m_painter->setPen(outlinePen);
     d->m_painter->setBrush(Qt::NoBrush);
 
     QRectF rect(0, 0, 0.75, 0.75);
     rect.moveCenter(QPointF(knot->position) / 2);
 
     d->m_painter->drawEllipse(rect);
+
+    d->m_painter->setPen(symbolPen);
     d->m_painter->setBrush(symbolBrush);
     d->m_painter->drawPath(symbol.path(Stitch::FrenchKnot).translated(QPointF(knot->position) / 2 - QPointF(0.5, 0.5)));
 }
diff --git a/src/Renderer.h b/src/Renderer.h
index 24a7054..7f4fe61 100644
--- a/src/Renderer.h
+++ b/src/Renderer.h
@@ -27,6 +27,7 @@ class Document;
 class Knot;
 class Pattern;
 class RendererData;
+class Stitch;
 class StitchQueue;
 
 
@@ -70,6 +71,7 @@ private:
     void renderStitchesAsColorSymbols(StitchQueue *);
     void renderStitchesAsColorBlocks(StitchQueue *);
     void renderStitchesAsColorBlocksSymbols(StitchQueue *);
+    void renderStitchHints(Stitch *);
 
     void renderBackstitchesAsColorLines(Backstitch *);
     void renderBackstitchesAsBlackWhiteSymbols(Backstitch *);
diff --git a/ui/EditorConfigPage.ui b/ui/EditorConfigPage.ui
index dfbdb51..110490e 100644
--- a/ui/EditorConfigPage.ui
+++ b/ui/EditorConfigPage.ui
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>388</width>
-    <height>361</height>
+    <height>504</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -17,7 +17,7 @@
    <item>
     <widget class="QTabWidget" name="EditorTabWidget">
      <property name="currentIndex">
-      <number>0</number>
+      <number>1</number>
      </property>
      <widget class="QWidget" name="EditorGridTab">
       <attribute name="title">
@@ -181,15 +181,15 @@
        </item>
        <item row="9" column="1">
         <widget class="QDoubleSpinBox" name="kcfg_Editor_MinimumZoomFactor">
-         <property name="value">
-          <double>0.500000000000000</double>
-         </property>
          <property name="minimum">
           <double>0.500000000000000</double>
          </property>
          <property name="maximum">
           <double>10.000000000000000</double>
          </property>
+         <property name="value">
+          <double>0.500000000000000</double>
+         </property>
         </widget>
        </item>
        <item row="10" column="0">
@@ -201,15 +201,15 @@
        </item>
        <item row="10" column="1">
         <widget class="QDoubleSpinBox" name="kcfg_Editor_MaximumZoomFactor">
-         <property name="value">
-          <double>3.000000000000000</double>
-         </property>
          <property name="minimum">
           <double>0.500000000000000</double>
          </property>
          <property name="maximum">
           <double>25.000000000000000</double>
          </property>
+         <property name="value">
+          <double>3.000000000000000</double>
+         </property>
         </widget>
        </item>
        <item row="11" column="0">
@@ -221,15 +221,15 @@
        </item>
        <item row="11" column="1">
         <widget class="QDoubleSpinBox" name="kcfg_Editor_DefaultZoomFactor">
-         <property name="value">
-          <double>2.000000000000000</double>
-         </property>
          <property name="minimum">
           <double>0.500000000000000</double>
          </property>
          <property name="maximum">
           <double>10.000000000000000</double>
          </property>
+         <property name="value">
+          <double>2.000000000000000</double>
+         </property>
         </widget>
        </item>
       </layout>
@@ -261,6 +261,13 @@
         </widget>
        </item>
        <item>
+        <widget class="QCheckBox" name="kcfg_Renderer_RenderStitchHints">
+         <property name="text">
+          <string>Show stitch hints</string>
+         </property>
+        </widget>
+       </item>
+       <item>
         <widget class="QCheckBox" name="kcfg_Renderer_RenderBackstitches">
          <property name="text">
           <string>Show backstitches</string>
@@ -439,15 +446,15 @@
  </widget>
  <customwidgets>
   <customwidget>
-   <class>KColorButton</class>
-   <extends>QPushButton</extends>
-   <header>kcolorbutton.h</header>
-  </customwidget>
-  <customwidget>
    <class>KComboBox</class>
    <extends>QComboBox</extends>
    <header>kcombobox.h</header>
   </customwidget>
+  <customwidget>
+   <class>KColorButton</class>
+   <extends>QPushButton</extends>
+   <header>kcolorbutton.h</header>
+  </customwidget>
  </customwidgets>
  <resources/>
  <connections/>


More information about the kde-doc-english mailing list