- b1_ = new QToolButton(this);
- connect(b1_, SIGNAL(clicked()), this, SLOT(buttonClicked()));
- b1_->setText(toqstr(getLabel(b1.first)));
- layout.at(0)->addWidget(b1_);
+ QToolButton * tb = new QToolButton(this);
+ connect(tb, SIGNAL(clicked()), this, SLOT(button1Clicked()));
+ tb->setText(toqstr(getLabel(b1.first)));
+ layout.at(0)->addWidget(tb);