|
|
|
@ -72,7 +72,7 @@ void CSVWidget::SceneToolToggle2::showPanel (const QPoint& position)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSVWidget::SceneToolToggle2::addButton (unsigned int id,
|
|
|
|
|
const QString& name, const QString& tooltip)
|
|
|
|
|
const QString& name, const QString& tooltip, bool disabled)
|
|
|
|
|
{
|
|
|
|
|
std::ostringstream stream;
|
|
|
|
|
stream << mSingleIcon << id;
|
|
|
|
@ -84,6 +84,9 @@ void CSVWidget::SceneToolToggle2::addButton (unsigned int id,
|
|
|
|
|
button->setIconSize (QSize (mIconSize, mIconSize));
|
|
|
|
|
button->setFixedSize (mButtonSize, mButtonSize);
|
|
|
|
|
|
|
|
|
|
if (disabled)
|
|
|
|
|
button->setDisabled (true);
|
|
|
|
|
|
|
|
|
|
mLayout->addWidget (button);
|
|
|
|
|
|
|
|
|
|
ButtonDesc desc;
|
|
|
|
@ -95,7 +98,7 @@ void CSVWidget::SceneToolToggle2::addButton (unsigned int id,
|
|
|
|
|
|
|
|
|
|
connect (button, SIGNAL (clicked()), this, SLOT (selected()));
|
|
|
|
|
|
|
|
|
|
if (mButtons.size()==1)
|
|
|
|
|
if (mButtons.size()==1 && !disabled)
|
|
|
|
|
mFirst = button;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|