|
|
@ -20,7 +20,7 @@ void MapETA::paintEvent(QPaintEvent *event) { |
|
|
|
QPainter p(this); |
|
|
|
QPainter p(this); |
|
|
|
p.setRenderHint(QPainter::Antialiasing); |
|
|
|
p.setRenderHint(QPainter::Antialiasing); |
|
|
|
p.setPen(Qt::NoPen); |
|
|
|
p.setPen(Qt::NoPen); |
|
|
|
p.setBrush(QColor(0, 0, 0, 150)); |
|
|
|
p.setBrush(QColor(0, 0, 0, 255)); |
|
|
|
QSizeF txt_size = eta_doc.size(); |
|
|
|
QSizeF txt_size = eta_doc.size(); |
|
|
|
p.drawRoundedRect((width() - txt_size.width()) / 2 - UI_BORDER_SIZE, 0, txt_size.width() + UI_BORDER_SIZE * 2, height() + 25, 25, 25); |
|
|
|
p.drawRoundedRect((width() - txt_size.width()) / 2 - UI_BORDER_SIZE, 0, txt_size.width() + UI_BORDER_SIZE * 2, height() + 25, 25, 25); |
|
|
|
p.translate((width() - txt_size.width()) / 2, (height() - txt_size.height()) / 2); |
|
|
|
p.translate((width() - txt_size.width()) / 2, (height() - txt_size.height()) / 2); |
|
|
|