Skip to content

Use event filters instead of subclassing QLineEdit and QPlainTextEdit#587

Merged
oldmud0 merged 4 commits intomasterfrom
subclass-replacement
Aug 31, 2021
Merged

Use event filters instead of subclassing QLineEdit and QPlainTextEdit#587
oldmud0 merged 4 commits intomasterfrom
subclass-replacement

Conversation

@in1tiate
Copy link
Member

No description provided.

@in1tiate in1tiate requested a review from oldmud0 August 26, 2021 19:16
ui_evidence_description->appendPlainText(f_evi.description);
ui_evidence_description->setReadOnly(true);
ui_evidence_description->setToolTip(tr("Double-click to edit..."));
ui_evidence_description->setToolTip(tr("Click the pencil to edit..."));
Copy link
Member

@oldmud0 oldmud0 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I am being too meticulous, but if the evidence_edit widget wasn't loaded in the theme, the old tooltip text should be used

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old tooltip text will be inaccurate because I removed the functionality to double click to edit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, now it shows that you deleted the double click handler. ok

@oldmud0 oldmud0 merged commit 7ce4dd6 into master Aug 31, 2021
@in1tiate in1tiate deleted the subclass-replacement branch August 31, 2021 02:57
Crystalwarrior added a commit that referenced this pull request Feb 18, 2022
Fix evidence editing regressions caused by #587
Fix issues with "ok" button detecting itself as "changes from the server"
Fix "ok" button remaining after you press it once, allowing you to spam evidence update packets by spamclicking it
Crystalwarrior added a commit that referenced this pull request Feb 19, 2022
commit 17b6f63
Author: Alex Noir <Varsash@gmail.com>
Date:   Sat Feb 19 18:19:22 2022 +0300

    Fix editing the image name not showing the "ok" button

commit 42b2a8a
Author: Alex Noir <Varsash@gmail.com>
Date:   Sat Feb 19 17:59:56 2022 +0300

    Fix evidence image button getting set to disabled

commit 798617f
Author: Alex Noir <Varsash@gmail.com>
Date:   Sat Feb 19 00:40:26 2022 +0300

    Polish up the evidence system so it's a single-click editing
    Fix evidence editing regressions caused by #587
    Fix issues with "ok" button detecting itself as "changes from the server"
    Fix "ok" button remaining after you press it once, allowing you to spam evidence update packets by spamclicking it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants