13
Tip::Tip(QWidget *parent)
22
void Tip::maybeTip(const QPoint &pos)
24
if (!setting->readBoolEntry("BOARD_COORDS_TIP"))
27
int x = ((Board*)parentWidget())->getCurrentX(),
28
y = ((Board*)parentWidget())->getCurrentY();
30
if (x == -1 || y == -1)
33
tip(QRect(pos.x(), pos.y(), 1, 1),
34
QString(QChar(static_cast<const char>('A' + (x<9?x:x+1) - 1))) + // A -> T (skip I)
35
" " + QString::number(((Board*)parentWidget())->getBoardSize()-y+1)); // 19 -> 1
43
StatusTip::StatusTip(QWidget *parent)
46
setAlignment(AlignCenter | SingleLine);
49
StatusTip::~StatusTip()
53
void StatusTip::slotStatusTipCoords(int x, int y, int board_size, bool SGFCoords)
55
emit clearStatusBar();
61
t1 = QString(QChar(static_cast<const char>('a' + x-1)));
62
t2 = QString(QChar(static_cast<const char>('a' + y-1)));
66
t1 = QString(QChar(static_cast<const char>('A' + (x<9?x:x+1) - 1)));
67
t2 = QString::number(board_size - y+1);
70
setText(" " + t1 + //QString(QChar(static_cast<const char>('A' + (x<9?x:x+1) - 1))) + // A -> T (skip I)
71
" " + t2 +//QString::number(board_size-y+1) +