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