Project

General

Profile

Feature #2074 ยป 0037-Move-show_experimental-to-ruledit_qt.cpp.patch

Marko Lindqvist, 07/04/2026 11:03 AM

View differences:

tools/ruledit/ruledit.cpp
return ui_options;
}
/**********************************************************************//**
Show widget if experimental features enabled, hide otherwise
**************************************************************************/
void show_experimental(QWidget *wdg)
{
#ifdef RULEDIT_EXPERIMENTAL
wdg->show();
#else
wdg->hide();
#endif
}
tools/ruledit/ruledit.h
#ifndef FC__RULEDIT_H
#define FC__RULEDIT_H
void show_experimental(QWidget *wdg);
struct ruledit_arguments {
// Ruleset name. Is nullptr if not specified.
char *ruleset;
tools/ruledit/ruledit_qt.cpp
// Do not handle quit here, but let user to answer to confirmation dialog.
cevent->ignore();
}
/**********************************************************************//**
Show widget if experimental features enabled, hide otherwise
**************************************************************************/
void show_experimental(QWidget *wdg)
{
#ifdef RULEDIT_EXPERIMENTAL
wdg->show();
#else
wdg->hide();
#endif
}
tools/ruledit/ruledit_qt.h
int ruledit_qt_run(int argc, char **argv);
void ruledit_qt_display_requirers(const char *msg, void *data);
void show_experimental(QWidget *wdg);
#endif // FC__RULEDIT_QT_H
    (1-1/1)