unit.addItem(tr("Percent"),new Boolean(true));
unit.addItem(tr("Pixels"),new Boolean(false));
width = new QLineEdit("80");
widthValidator = new QIntValidator(0,100, this);
width.setValidator(widthValidator);
width.textChanged.connect(this, "validateWidth()");
rows = new QSpinBox();
cols = new QSpinBox();
rows.setMaximum(30);