Michaël Lemaire
75487d286f
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@384 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
21 lines
484 B
C++
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();
|
|
}
|