Esempio n. 1
0
void Options::restore_window_position( const QString &name, QMainWindow *widget_p )
{
    bool restore_pos = get_opt_bool( "RESTORE_WINDOW_POSITION", true );
    if ( !restore_pos )
        return ;

    restore_window_position( name, ( QWidget* )widget_p );
    widget_p->restoreState( get_opt_array( "WIDGET_POS_DOCKPOS" ) );
}
Esempio n. 2
0
json_t *get_specific_args(json_t *sql, baton_error_t *error) {
    return get_opt_array(sql, "SQL", JSON_ARGS_KEY,
                         JSON_ARGS_SHORT_KEY, error);
}