paysages3d/gui_qt/inputlayers.cpp
2012-07-10 15:38:12 +00:00

21 lines
484 B
C++

#include "inputlayers.h"
#include <QLabel>
#include <QPushButton>
InputLayers::InputLayers(QWidget* form, QString label, Layers* value):
BaseInput(form, label)
{
_value = value;
_preview = new QLabel(form);
((QLabel*)_preview)->setAlignment(Qt::AlignCenter);
_control = new QPushButton(tr("Editer"), form);
}
void InputLayers::updatePreview()
{
((QLabel*)_preview)->setText(tr("%1 layers").arg(layersCount(_value)));
BaseInput::updatePreview();
}