Changeset 8178:f3e06dc1cc3c in orange


Ignore:
Timestamp:
08/16/11 14:26:28 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
152e3b84e82f0cf530c48e41e8cc03150cfdaf43
Message:

Ifdefs for QList::reserve() to support Qt < 4.7

Location:
source/orangeqt
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/curve.cpp

    r8171 r8178  
    141141  } 
    142142  m_data.clear(); 
     143 
     144#if QT_VERSION >= 0x040700 
    143145  m_data.reserve(n); 
     146#endif 
     147 
    144148  for (int i = 0; i < n; ++i) 
    145149  { 
  • source/orangeqt/curve.h

    r8171 r8178  
    331331  else if (n < size) 
    332332  {   
     333#if QT_VERSION >= 0x040700 
    333334    list.reserve(size); 
     335#endif 
    334336    for (int i = 0; i < (size-n); ++i) 
    335337    { 
  • source/orangeqt/plot.cpp

    r8171 r8178  
    261261    const int n = qMin(x_data.size(), y_data.size()); 
    262262    QList<bool> selected; 
     263#if QT_VERSION >= 0x040700 
    263264    selected.reserve(n); 
     265#endif 
    264266    DataPoint p; 
    265267    for (int i = 0; i < n; ++i) 
  • source/orangeqt/plotitem.sip

    r8171 r8178  
     1%Module PlatItem 
     2 
    13class PlotItem : QGraphicsObject { 
    24 
     
    2527    void attach(Plot* graph /TransferThis/); 
    2628    void detach(); 
    27     %MethodCode 
     29%MethodCode 
    2830        sipTransferBack(sipGetPyObject(sipCpp, sipType_PlotItem)); 
    2931        sipCpp->detach(); 
    30     %End 
     32%End 
    3133 
    3234    Plot* plot(); 
Note: See TracChangeset for help on using the changeset viewer.