comparison widgets/PluginParameterDialog.cpp @ 460:5f9a257598d8

* Ensure text models are exported with text properties in RDF, and imported back into text models again (instead of time/value models)
author Chris Cannam
date Mon, 08 Dec 2008 11:53:10 +0000
parents 035d62c4cddf
children be5c35d3f409
comparison
equal deleted inserted replaced
459:0acf803e2c79 460:5f9a257598d8
247 QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Ok | 247 QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Ok |
248 QDialogButtonBox::Cancel); 248 QDialogButtonBox::Cancel);
249 hbox->addWidget(bb); 249 hbox->addWidget(bb);
250 connect(bb, SIGNAL(accepted()), this, SLOT(dialogAccepted())); 250 connect(bb, SIGNAL(accepted()), this, SLOT(dialogAccepted()));
251 connect(bb, SIGNAL(rejected()), this, SLOT(reject())); 251 connect(bb, SIGNAL(rejected()), this, SLOT(reject()));
252 bb->button(QDialogButtonBox::Ok)->setDefault(true);
252 253
253 setAdvancedVisible(m_advancedVisible); 254 setAdvancedVisible(m_advancedVisible);
254 } 255 }
255 256
256 PluginParameterDialog::~PluginParameterDialog() 257 PluginParameterDialog::~PluginParameterDialog()
602 m_advanced->hide(); 603 m_advanced->hide();
603 m_advancedButton->setText(tr("Advanced >>")); 604 m_advancedButton->setText(tr("Advanced >>"));
604 m_advancedButton->setChecked(false); 605 m_advancedButton->setChecked(false);
605 } 606 }
606 607
607 std::cerr << "resize to " << sizeHint().width() << " x " << sizeHint().height() << std::endl; 608 // std::cerr << "resize to " << sizeHint().width() << " x " << sizeHint().height() << std::endl;
608 609
609 // setMinimumHeight(sizeHint().height()); 610 // setMinimumHeight(sizeHint().height());
610 adjustSize(); 611 adjustSize();
611 612
612 // (sizeHint()); 613 // (sizeHint());