2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Pass modifiers inside InputField submitted signal.

Also use non-MOC connections for all InputFields.
Also use Ctrl/Cmd + Enter to submit fast share box.
Fixes #4769.
This commit is contained in:
John Preston
2018-05-31 15:20:28 +03:00
parent b3059248d4
commit bfc748cd31
36 changed files with 272 additions and 332 deletions

View File

@@ -18,19 +18,10 @@ class InputField;
} // namespace Ui
class ReportBox : public BoxContent, public RPCSender {
Q_OBJECT
public:
ReportBox(QWidget*, not_null<PeerData*> peer);
ReportBox(QWidget*, not_null<PeerData*> peer, MessageIdsList ids);
private slots:
void onReport();
void onReasonResized();
void onClose() {
closeBox();
}
protected:
void prepare() override;
void setInnerFocus() override;
@@ -45,7 +36,9 @@ private:
Other,
};
void reasonChanged(Reason reason);
void reasonResized();
void updateMaxHeight();
void report();
void reportDone(const MTPBool &result);
bool reportFail(const RPCError &error);