Main Page   Class Hierarchy   Compound List   Compound Members   Examples   Search  

qdbtsection.h

This is the verbatim text of the qdbtsection.h include file.
#ifndef _QDBTSECTION_H
#define _QDBTSECTION_H

#include <qpushbt.h>

class QdbtSection : public QPushButton
{
  Q_OBJECT

  public:
    QdbtSection(QWidget *parent=0,const char *name=0);
    QdbtSection(const char *text,QWidget *parent=0,const char *name=0);
   ~QdbtSection();
    virtual int widthHint() const;
    virtual int heightHint() const;
    void setAlignment(int alignment) { align=alignment; }
    int  alignment() const { return align; }
    void setResizable(bool enable);
    bool isResizable() const { return resizable; }

  protected:
    virtual void resizeEvent(QResizeEvent *);
    virtual void drawButton(QPainter *p);
    virtual void drawButtonLabel(QPainter *p);
    virtual void mousePressEvent(QMouseEvent *);
    virtual void mouseReleaseEvent(QMouseEvent *);
    virtual void mouseMoveEvent(QMouseEvent *);
    virtual void keyPressEvent(QKeyEvent *);

  signals:
    void clicked(QdbtSection *);
    void setResizable(QdbtSection *,bool);

  private:
    const int colSpacing;
    int   align;
    bool  resizable;
};

#endif

Generated 11:09, 1999/10/02 for QdbtTabular by doxygen  written by Dimitri van Heesch, © 1997-1998