mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +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:
@@ -164,8 +164,6 @@ protected:
|
||||
};
|
||||
|
||||
class Notification : public Widget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Notification(Manager *manager, History *history, PeerData *peer, PeerData *author, HistoryItem *item, int forwardedCount, QPoint startPosition, int shift, Direction shiftDirection);
|
||||
|
||||
@@ -194,16 +192,12 @@ protected:
|
||||
void mousePressEvent(QMouseEvent *e) override;
|
||||
bool eventFilter(QObject *o, QEvent *e) override;
|
||||
|
||||
private slots:
|
||||
void onHideByTimer();
|
||||
void onReplyResize();
|
||||
void onReplySubmit(bool ctrlShiftEnter);
|
||||
void onReplyCancel();
|
||||
|
||||
private:
|
||||
void refreshLang();
|
||||
void updateReplyGeometry();
|
||||
bool canReply() const;
|
||||
void replyResized();
|
||||
void replyCancel();
|
||||
|
||||
void unlinkHistoryInManager();
|
||||
void toggleActionButtons(bool visible);
|
||||
|
Reference in New Issue
Block a user