move redundant code to find pointer to main widget to helper function

This commit is contained in:
Axel Kohlmeyer
2025-06-14 19:04:43 -04:00
parent 90df96b16f
commit c5c1f47c20
10 changed files with 31 additions and 37 deletions

View File

@ -22,6 +22,9 @@ extern char *mystrdup(const std::string &text);
extern char *mystrdup(const char *text);
extern char *mystrdup(const QString &text);
// get pointer to LAMMPS-GUI main widget
extern class QWidget *get_main_widget();
// find if executable is in path
extern bool has_exe(const QString &exe);