# HG changeset patch # User Chris Cannam # Date 1524751601 -3600 # Node ID 3ca1be2e2c91de9069171addda8c039f6644be61 # Parent 97d977091d4ec4c295bab656614b07162f55b69b Tidy diff -r 97d977091d4e -r 3ca1be2e2c91 widgets/PluginParameterDialog.cpp --- a/widgets/PluginParameterDialog.cpp Thu Apr 26 09:27:01 2018 +0100 +++ b/widgets/PluginParameterDialog.cpp Thu Apr 26 15:06:41 2018 +0100 @@ -89,10 +89,6 @@ QLabel *copyrightLabel = new QLabel(plugin->getCopyright().c_str()); copyrightLabel->setWordWrap(true); -// QLabel *typeLabel = new QLabel(plugin->getType().c_str()); -// typeLabel->setWordWrap(true); -// typeLabel->setFont(boldFont); - QLabel *descriptionLabel = 0; if (plugin->getDescription() != "") { descriptionLabel = new QLabel(plugin->getDescription().c_str()); @@ -117,9 +113,6 @@ row++; if (descriptionLabel) { -// label = new QLabel(tr("Description:")); -// label->setAlignment(Qt::AlignTop | Qt::AlignLeft); -// subgrid->addWidget(label, row, 0); subgrid->addWidget(descriptionLabel, row, 1, 1, 2); row++; } @@ -132,12 +125,6 @@ row++; } -// label = new QLabel(tr("Type:")); -// label->setAlignment(Qt::AlignTop | Qt::AlignLeft); -// subgrid->addWidget(label, row, 0); -// subgrid->addWidget(typeLabel, row, 1); -// row++; - label = new QLabel(tr("Maker:")); label->setAlignment(Qt::AlignTop | Qt::AlignLeft); subgrid->addWidget(label, row, 0); @@ -596,8 +583,6 @@ void PluginParameterDialog::setAdvancedVisible(bool visible) { -// m_advanced->setVisible(visible); - if (visible) { m_advancedButton->setText(tr("Advanced <<")); m_advancedButton->setChecked(true); @@ -608,22 +593,14 @@ m_advancedButton->setChecked(false); } -// cerr << "resize to " << sizeHint().width() << " x " << sizeHint().height() << endl; - -// setMinimumHeight(sizeHint().height()); adjustSize(); -// (sizeHint()); - m_advancedVisible = visible; QSettings settings; settings.beginGroup("PluginParameterDialog"); settings.setValue("advancedvisible", visible); settings.endGroup(); - -// if (visible) setMaximumHeight(sizeHint().height()); -// adjustSize(); } void