Changeset 8433:9ba5fb01c900 in orange


Ignore:
Timestamp:
07/23/11 19:32:01 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
bd9325d4f829a208801c32dfc0d671c0aff03850
Message:

More cosmetic changes, continuous curves adapt their width to zoom factor

Location:
source/orangeplot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/curve.cpp

    r8423 r8433  
    6565  if (m_continuous) 
    6666  { 
    67     m_lineItem->setPen(m_pen); 
     67    QPen p = m_pen; 
     68    p.setWidthF(m_pen.widthF()/m_zoom_factor); 
     69    m_lineItem->setPen(p); 
    6870    m_line = QPainterPath(); 
    6971    if (!m_data.isEmpty()) 
  • source/orangeplot/plot.cpp

    r8414 r8433  
    99    setScene(new QGraphicsScene(this)); 
    1010    clipItem = new QGraphicsRectItem(); 
     11    clipItem->setPen(Qt::NoPen); 
    1112    clipItem->setFlag(QGraphicsItem::ItemClipsChildrenToShape, true); 
    1213    scene()->addItem(clipItem); 
Note: See TracChangeset for help on using the changeset viewer.