Ejemplo n.º 1
0
void ActionDialog::on_buttonBox_clicked(QAbstractButton* button)
{
    switch ( ui->buttonBox->standardButton(button) ) {
    case QDialogButtonBox::Ok:
        createAction();
        break;
    case QDialogButtonBox::Save:

        emit saveCommand(command());
        QMessageBox::information(
                    this, tr("Command saved"),
                    tr("Command was saved and can be accessed from item menu.\n"
                       "You can set up the command in preferences.") );
        break;
    case QDialogButtonBox::Cancel:
        close();
        break;
    default:
        break;
    }
}
Ejemplo n.º 2
0
int main(int argc, char **argv) {
	redisClient * c = NULL;
	int i, j, iterator_max;

	z_usage(argc, argv);

	xmain(argc, argv);
	xmain_noOptions(argc, argv);
	c = createClient(0);
	if(!c) errx(-1, "main:createClient:Failed");

	iterator_max = atoi(argv[1]);
	for(i = 0; i < iterator_max; i++) {
		
		for(j = 2; j < argc; j++) {
			z_apply_op(c, i, j, ops, (sizeof(ops)/sizeof(z_ops))-1, argv[j]);
		}
	}

	saveCommand(c);
}