[Digikam-devel] extragear/graphics/digikam/libs/widgets

Gilles Caulier caulier.gilles at free.fr
Thu Jul 28 07:40:53 BST 2005


SVN commit 439445 by cgilles:

digiKam image control pannel widget : increase visibility line of guide line and border selection to use contrasted color (red and white).
Thanks to Unai Garro for this tip.

CCMAIL: digikam-devel at kde.org

 M  +12 -2     imagepaniconwidget.cpp  
 M  +11 -1     imageregionwidget.cpp  


--- trunk/extragear/graphics/digikam/libs/widgets/imagepaniconwidget.cpp #439444:439445
@@ -176,19 +176,29 @@
     
     if (m_separateView == Digikam::ImageRegionWidget::SeparateViewVertical)
         {
-        p.setPen(QPen(Qt::red, 1, Qt::DotLine));
+        p.setPen(QPen(Qt::white, 1, Qt::SolidLine));
         p.drawLine(m_localRegionSelection.topLeft().x() + m_localRegionSelection.width()/2,
                    m_localRegionSelection.topLeft().y(),
                    m_localRegionSelection.bottomLeft().x() + m_localRegionSelection.width()/2,
                    m_localRegionSelection.bottomLeft().y());
+        p.setPen(QPen(Qt::red, 1, Qt::DotLine));
+        p.drawLine(m_localRegionSelection.topLeft().x() + m_localRegionSelection.width()/2,
+                   m_localRegionSelection.topLeft().y()+1,
+                   m_localRegionSelection.bottomLeft().x() + m_localRegionSelection.width()/2,
+                   m_localRegionSelection.bottomLeft().y()-1);
         }
     else if (m_separateView == Digikam::ImageRegionWidget::SeparateViewHorizontal)
         {
-        p.setPen(QPen(Qt::red, 1, Qt::DotLine));
+        p.setPen(QPen(Qt::white, 1, Qt::SolidLine));
         p.drawLine(m_localRegionSelection.topLeft().x(),
                    m_localRegionSelection.topLeft().y() + m_localRegionSelection.height()/2,
                    m_localRegionSelection.topRight().x(),
                    m_localRegionSelection.topRight().y() + m_localRegionSelection.height()/2);
+        p.setPen(QPen(Qt::red, 1, Qt::DotLine));
+        p.drawLine(m_localRegionSelection.topLeft().x()+1,
+                   m_localRegionSelection.topLeft().y() + m_localRegionSelection.height()/2,
+                   m_localRegionSelection.topRight().x()-1,
+                   m_localRegionSelection.topRight().y() + m_localRegionSelection.height()/2);
         }
 
     p.end();
--- trunk/extragear/graphics/digikam/libs/widgets/imageregionwidget.cpp #439444:439445
@@ -187,11 +187,16 @@
             case SeparateViewVertical:
             case SeparateViewDuplicateVert:
                 {
-                p->setPen(QPen(Qt::red, 2, Qt::DotLine));
+                p->setPen(QPen(Qt::white, 2, Qt::SolidLine));
                 p->drawLine(getTargetImageRegion().topLeft().x(),    
                             getTargetImageRegion().topLeft().y(),
                             getTargetImageRegion().bottomLeft().x(),
                             getTargetImageRegion().bottomLeft().y());
+                p->setPen(QPen(Qt::red, 2, Qt::DotLine));
+                p->drawLine(getTargetImageRegion().topLeft().x(),    
+                            getTargetImageRegion().topLeft().y()+1,
+                            getTargetImageRegion().bottomLeft().x(),
+                            getTargetImageRegion().bottomLeft().y()-1);
                             
                 p->setPen(QPen::QPen(Qt::red, 1)) ;                    
                 QFontMetrics fontMt = p->fontMetrics();
@@ -218,6 +223,11 @@
             case SeparateViewHorizontal:
             case SeparateViewDuplicateHorz:
                 {
+                p->setPen(QPen(Qt::white, 2, Qt::SolidLine));
+                p->drawLine(getTargetImageRegion().topLeft().x()+1,
+                            getTargetImageRegion().topLeft().y(),
+                            getTargetImageRegion().topRight().x()-1,
+                            getTargetImageRegion().topRight().y());
                 p->setPen(QPen(Qt::red, 2, Qt::DotLine));
                 p->drawLine(getTargetImageRegion().topLeft().x(),
                             getTargetImageRegion().topLeft().y(),



More information about the Digikam-devel mailing list