Пример #1
0
DlgNewAsset::DlgNewAsset(QWidget *_parent, SoaWg *_wg, SoaTb *_tb, SoaRw *_rw) : QDialog(_parent),
	wg(_wg),
	ins(new WdgInspector(this, 0)),
	tb(_tb),
	row(_rw) {

	ins->SetRow(row);

	ui.setupUi(this);
	setWindowTitle(QString::fromStdString(tb->Name()));

	QVBoxLayout *layout = new QVBoxLayout(ui.inspectorWidget);
	layout->setContentsMargins(0, 0, 0, 0);
	layout->addWidget(ins);

	QObject::connect(ui.okButton, SIGNAL(clicked()), this, SLOT(OkSlot()));
	QObject::connect(ui.cancelButton, SIGNAL(clicked()), this, SLOT(CancelSlot()));
	QObject::connect(ins->Delegate(), SIGNAL(modifiedSignal()), this, SLOT(ModifiedSlot()));

	Check();
}
Пример #2
0
void DownloadItem::modified()
{
  emit modifiedSignal(m_index);

}