Minor code rework for better consistency.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f519fe9ea2)
r14.0.x
Michele Calgaro 3 years ago
parent 59291a27f9
commit 6fb5d38d9e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -85,6 +85,12 @@ void VButton::setupTexts(Display *display)
{
altGrShiftText = c;
}
// caps + altGr text
capsAltGrText = altGrText.upper();
// caps + altGr + shift text
capsAltGrShiftText = altGrShiftText.lower();
}
void VButton::shiftCapsAltGrPressed(bool shift, bool caps, bool altGrState)
@ -96,11 +102,11 @@ void VButton::shiftCapsAltGrPressed(bool shift, bool caps, bool altGrState)
{
if (shift)
{
TQPushButton::setText(altGrShiftText.lower());
TQPushButton::setText(capsAltGrShiftText);
}
else
{
TQPushButton::setText(altGrText.upper());
TQPushButton::setText(capsAltGrText);
}
}
else if (shift)

@ -32,10 +32,12 @@ protected:
bool isAlpha;
unsigned int keycode;
TQString normalText;
TQString capsText;
TQString shiftText;
TQString altGrText;
TQString capsText;
TQString capsShiftText;
TQString capsAltGrText;
TQString capsAltGrShiftText;
TQString altGrText;
TQString altGrShiftText;
TQRect orig_size;

Loading…
Cancel
Save