All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Member Functions
SciFigs::PageLimit Class Reference

#include <PageLimit.h>

List of all members.

Public Types

enum  LimitType { Vertical, Horizontal }

Public Member Functions

 PageLimit (LimitType t, QWidget *parent)
virtual void paintEvent (QPaintEvent *e)
 ~PageLimit ()

Member Enumeration Documentation

Enumerator:
Vertical 
Horizontal 

Constructor & Destructor Documentation

SciFigs::PageLimit::PageLimit ( LimitType  t,
QWidget *  parent 
)

References QGpGuiTools::setWidgetColor(), THICKNESS, TRACE, and Vertical.

                                                  :
    QWidget(parent)
{
  TRACE;
  setWidgetColor(this, Qt::white);
  if(t==Vertical)
    resize(THICKNESS,parent->height());
  else
    resize(parent->width(),THICKNESS);
}

References TRACE.

{
  TRACE;

}

Member Function Documentation

void SciFigs::PageLimit::paintEvent ( QPaintEvent *  e) [virtual]

References TRACE.

{
  TRACE;
  QPainter p(this);
  p.setPen(Qt::NoPen);
  p.setBrush(QBrush(Qt::black,Qt::Dense4Pattern));
  if(width()>height())
    p.drawRect(0,0,width(),height());
  else
    p.drawRect(0,0,width(),height());
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines