If I change the title bar property in 1.4.2, the editor does not know it unless I tab out, losing the focus, triggering the SIGNAL. I confess I am not an expert in Qt, C++, or the overall design, though I am getting up to speed.
I saw this on Github:
settings_dialog.cpp
and in plain_text_edit.h,
Do you think this should be on changing any text in the field or that you have to tab out. I found that I would change the title bar and run the program. I saw no change, so I hit save. I saw no change, and that is when I figured out I had to lose focus.
Interested in feedback. Thanks.
I saw this on Github:
settings_dialog.cpp
Code Select
connect(&model, SIGNAL(title_bar_changed(QString)),
this, SLOT(update_title_bar_field()));
connect(ui.title_bar_field, SIGNAL(editingFinished()),
this, SLOT(change_title_bar_requested()));
and in plain_text_edit.h,
Code Select
class PlainTextEdit : public QPlainTextEdit ....
inline PlainTextEdit(QWidget* parent = nullptr) :
QPlainTextEdit(parent),
changed(false),
show_margin(false) {
setTabChangesFocus(true);
setLineWrapMode(LineWrapMode::NoWrap);
QTextCharFormat char_format = currentCharFormat();
char_format.setFontFixedPitch(true);
setCurrentCharFormat(char_format);
connect(this, SIGNAL(textChanged()), this, SLOT(handle_text_changed()));
}
Do you think this should be on changing any text in the field or that you have to tab out. I found that I would change the title bar and run the program. I saw no change, so I hit save. I saw no change, and that is when I figured out I had to lose focus.
Interested in feedback. Thanks.