connect(read, SIGNAL(clicked()), this, SLOT(onReadBook()));
connect(remove, SIGNAL(clicked()), this, SLOT(onRemoveBook()));
addButton(read, QDialogButtonBox::ActionRole);
- addButton(remove, QDialogButtonBox::ActionRole);
+ addButton(remove, QDialogButtonBox::DestructiveRole);
}
void InfoDialog::onReadBook()