Changeset 8323:7651600707d7 in orange


Ignore:
Timestamp:
06/16/11 12:58:34 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
5078f19843cbe9c358ebe61aa4802253b41a0551
Message:

Export pathForSymbol() to python, for use in legend items

Location:
source/orangegraph
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangegraph/curve.h

    r8317 r8323  
    142142  bool autoUpdate() const; 
    143143  void setAutoUpdate(bool autoUpdate); 
    144      
    145 private: 
     144   
     145  /** 
     146   * Creates a path from a symbol and a size 
     147   * 
     148   * @param symbol the point symbol to use 
     149   * @param size the size of the resulting path 
     150   * @return a path that can be used in a QGraphicsPathItem 
     151   **/ 
     152  static QPainterPath pathForSymbol(int symbol, int size); 
     153private:     
     154 
    146155  enum UpdateFlag 
    147156  { 
     
    155164  }; 
    156165  Q_DECLARE_FLAGS(UpdateFlags, UpdateFlag) 
    157   static QPainterPath pathForSymbol(int symbol, int size); 
    158166  void updateNumberOfItems(); 
    159167  inline void checkForUpdate(); 
  • source/orangegraph/curve.sip

    r8302 r8323  
    8181  bool autoUpdate() const; 
    8282  void setAutoUpdate(bool autoUpdate); 
     83 
     84  static QPainterPath pathForSymbol(int symbol, int size); 
    8385   
    8486}; 
Note: See TracChangeset for help on using the changeset viewer.