public void initialize() { ui.setupUi(this); ui.btnAdd.clicked.connect(this, "addClicked()"); ProjectController.getInstance().update.connect(this, "updateData()"); ProjectController.getInstance().add.connect(this, "addData(Project)"); LanguageController.getInstance().languageChanged.connect(this, "translate()"); setFields(); }
@SuppressWarnings("unused") private void translate() { ui.retranslateUi(this); changeText(); }