mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 05:37:45 +00:00
Removed unused variables in input_fields.cpp.
This commit is contained in:
parent
c496a34f57
commit
c20ab0b93e
@ -1057,8 +1057,6 @@ void FlatInput::phPrepare(Painter &p, float64 placeholderFocused) {
|
||||
void FlatInput::keyPressEvent(QKeyEvent *e) {
|
||||
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)) {
|
||||
e->ignore();
|
||||
} else {
|
||||
@ -3758,8 +3756,6 @@ void MaskedInputField::keyPressEvent(QKeyEvent *e) {
|
||||
QString wasText(_oldtext);
|
||||
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)) {
|
||||
e->ignore();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user