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

Class Index

kcalc'MyList (./kdeutils/kcalc/stats.h:63)

class MyList : public  QList<CALCAMNT> 
{

public:

  MyList() : QList<CALCAMNT>() {};
  
protected:
  int compareItems(Item item1,Item item2);
};


kcalc'MyList::compareItems() (./kdeutils/kcalc/stats.cpp:262)

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;

}