Source Code (Use browser search to find items of interest.)

Class Index

kspread'MyList (./koffice/kspread/plugins/calculator/stats.h:66)

class MyList : public  QList<CALCAMNT>
{

public:

  MyList() : QList<CALCAMNT>() {};

protected:
  int compareItems(Item item1,Item item2);
};


kspread'MyList::compareItems() (./koffice/kspread/plugins/calculator/stats.cpp:314)

int MyList::compareItems(Item item_1, Item item_2){

  CALCAMNT *item1;
  CALCAMNT *item2;

  item1 = (CALCAMNT*) item_1;
  item2 = (CALCAMNT*) item_2;

  if(*item1 > *item2)
    return 1;

  if(*item2 > *item1)
    return -1;

  return 0;

}