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

Class Index

kspread'DLabel (./koffice/kspread/plugins/calculator/dlabel.h:34)

class DLabel : public QLabel {

Q_OBJECT

public:

DLabel(QWidget *parent=0, const char *name=0);

  ~DLabel() {}

protected:
  
  void  mousePressEvent ( QMouseEvent *);

public:
  bool isLit();
  void setLit(bool _lit);
  int Button();

private:
  int button;
  bool lit;

signals:
  void clicked();

};



kspread'DLabel::DLabel() (./koffice/kspread/plugins/calculator/dlabel.cpp:29)

DLabel::DLabel(QWidget *parent, const char *name)
  :QLabel(parent,name){

    button = 0;
    lit = false;
}


kspread'DLabel::mousePressEvent() (./koffice/kspread/plugins/calculator/dlabel.cpp:36)

void DLabel::mousePressEvent(QMouseEvent *e){

  if(e->button() == LeftButton){
    lit = !lit;
    button = LeftButton;
  }
  else{
    button = MidButton;
  }


  emit clicked();
}



kspread'DLabel::Button() (./koffice/kspread/plugins/calculator/dlabel.cpp:51)

int DLabel::Button(){
  return button;
}


kspread'DLabel::isLit() (./koffice/kspread/plugins/calculator/dlabel.cpp:55)

bool DLabel::isLit(){

  return lit;

}


kspread'DLabel::setLit() (./koffice/kspread/plugins/calculator/dlabel.cpp:61)

void DLabel::setLit(bool _lit){
  lit = _lit;
}