List initialization -> initialization in constructor

0.6.3
Nelsson Huotari 7 years ago
parent 1c79d5311c
commit 49ae5bc75c

@ -139,9 +139,11 @@ void CSVWidget::SceneToolTextureBrush::adjustToolTips()
CSVWidget::SceneToolTextureBrush::SceneToolTextureBrush (SceneToolbar *parent, const QString& toolTip) CSVWidget::SceneToolTextureBrush::SceneToolTextureBrush (SceneToolbar *parent, const QString& toolTip)
: SceneTool (parent, Type_TopAction), : SceneTool (parent, Type_TopAction),
mToolTip (toolTip), mToolTip (toolTip),
mBrushHistory{"L0#0"},
mTextureBrushWindow(new TextureBrushWindow(this)) mTextureBrushWindow(new TextureBrushWindow(this))
{ {
mBrushHistory.resize(1);
mBrushHistory[0] = "L0#0";
setAcceptDrops(true); setAcceptDrops(true);
connect(mTextureBrushWindow, SIGNAL(passBrushShape(int)), this, SLOT(setButtonIcon(int))); connect(mTextureBrushWindow, SIGNAL(passBrushShape(int)), this, SLOT(setButtonIcon(int)));
setButtonIcon(mTextureBrushWindow->mBrushShape); setButtonIcon(mTextureBrushWindow->mBrushShape);

Loading…
Cancel
Save