2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Removed unused variables in input_fields.cpp.

This commit is contained in:
23rd
2018-09-23 20:44:01 +03:00
committed by John Preston
parent c496a34f57
commit c20ab0b93e

View File

@@ -1057,8 +1057,6 @@ void FlatInput::phPrepare(Painter &p, float64 placeholderFocused) {
void FlatInput::keyPressEvent(QKeyEvent *e) { void FlatInput::keyPressEvent(QKeyEvent *e) {
QString wasText(_oldtext); QString wasText(_oldtext);
bool shift = e->modifiers().testFlag(Qt::ShiftModifier), alt = e->modifiers().testFlag(Qt::AltModifier);
bool ctrl = e->modifiers().testFlag(Qt::ControlModifier) || e->modifiers().testFlag(Qt::MetaModifier), ctrlGood = true;
if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) { if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) {
e->ignore(); e->ignore();
} else { } else {
@@ -3758,8 +3756,6 @@ void MaskedInputField::keyPressEvent(QKeyEvent *e) {
QString wasText(_oldtext); QString wasText(_oldtext);
int32 wasCursor(_oldcursor); int32 wasCursor(_oldcursor);
bool shift = e->modifiers().testFlag(Qt::ShiftModifier), alt = e->modifiers().testFlag(Qt::AltModifier);
bool ctrl = e->modifiers().testFlag(Qt::ControlModifier) || e->modifiers().testFlag(Qt::MetaModifier), ctrlGood = true;
if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) { if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) {
e->ignore(); e->ignore();
} else { } else {