| 9 | class RectKey : public Key { |
| 10 | public: |
| 11 | RectKey(KeyConfig &config, |
| 12 | const QRect &textGeometry, const QRect &keyGeometry, const QSize &labelSize, |
| 13 | const QColor &keyColor, const QColor &textColor, |
| 14 | const QString &labelText, const QString &secondText, const QString &alphaText, |
| 15 | Qt::Alignment labelAlign = Qt::AlignCenter, |
| 16 | Qt::Alignment secondAlign = Qt::AlignVCenter | Qt::AlignLeft, |
| 17 | Qt::Alignment alphaAlign = Qt::AlignVCenter | Qt::AlignRight) |
| 18 | : RectKey{config.next(), textGeometry, keyGeometry, labelSize, |
| 19 | keyColor, textColor, config.secondColor, config.alphaColor, |
| 20 | labelText, secondText, alphaText, config.labelFont, config.secondFont, config.alphaFont, |
| 21 | labelAlign, secondAlign, alphaAlign} { } |
| 22 | RectKey(KeyCode keycode, |
| 23 | const QRect &textGeometry, const QRect &keyGeometry, const QSize &labelSize, |
| 24 | const QColor &keyColor, const QColor &textColor, const QColor &secondColor, const QColor &alphaColor, |