Changeset 8227:06b02e5e76af in orange


Ignore:
Timestamp:
08/19/11 09:25:32 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
fcad40292c5a445582d35323908421da7abc3a31
Message:

Make markers ignore zoom by default

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owtools.py

    r8172 r8227  
    336336        :param size: Font size 
    337337        :type size: int 
     338         
     339        Markers have the QGraphicsItem.ItemIgnoresTransformations flag set by default, 
     340        so text remains the same size when zooming. There is no need to scale the manually.  
    338341    """ 
    339342    def __init__(self, text, x, y, align, bold = 0, color = None, brushColor = None, size=None): 
    340343        orangeqt.PlotItem.__init__(self) 
     344        self.setFlag(QGraphicsItem.ItemIgnoresTransformations, True) 
    341345        self._item = QGraphicsTextItem(text, parent=self) 
    342346        self._data_point = QPointF(x,y) 
  • source/Makefile

    r2103 r8227  
    33# (This is needed because vfat doesn't support symbolic links) 
    44ifndef ORANGE_LIBDIR 
    5   ORANGE_LIBDIR=../.. 
     5  ORANGE_LIBDIR=.. 
    66endif 
    77 
    8 MODULES=include orange orangeom orangene corn statc 
     8MODULES=include orange orangeom orangene corn statc orangeqt 
    99ACTIONS=all clean cleantemp 
    1010 
Note: See TracChangeset for help on using the changeset viewer.