mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Ajout de validateurs dans les widgets d'edition des parties dans l'editeur d'element
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@238 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -32,11 +32,9 @@ CircleEditor::CircleEditor(QETElementEditor *editor, PartCircle *circle, QWidget
|
||||
y = new QLineEdit();
|
||||
r = new QLineEdit();
|
||||
|
||||
// QDoubleValidator *format = new QDoubleValidator(-1000.0, -1000.0, 4, this);
|
||||
// x -> setValidator(new QDoubleValidator(-1000.0, 1000.0, 4, this));
|
||||
// y -> setValidator(new QDoubleValidator(-1000.0, 1000.0, 4, this));
|
||||
// h -> setValidator(new QDoubleValidator(0.0, 1000.0, 4, this));
|
||||
|
||||
x -> setValidator(new QDoubleValidator(x));
|
||||
y -> setValidator(new QDoubleValidator(y));
|
||||
r -> setValidator(new QDoubleValidator(r));
|
||||
|
||||
QGridLayout *grid = new QGridLayout(this);
|
||||
grid -> addWidget(new QLabel(tr("Centre : ")), 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user