|
|
|
@ -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)
|
|
|
|
|