mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
19 lines
467 B
C++
19 lines
467 B
C++
|
#include <QToolTip>
|
||
|
|
||
|
#include "qtooltiplabel.h"
|
||
|
|
||
|
QToolTipLabel::QToolTipLabel(QWidget* parent, Qt::WindowFlags f)
|
||
|
: QLabel(parent) {
|
||
|
this->setStyleSheet("QToolTip { font-size: 40pt }");
|
||
|
}
|
||
|
|
||
|
QToolTipLabel::~QToolTipLabel() {}
|
||
|
|
||
|
void QToolTipLabel::mousePressEvent(QMouseEvent * event) {
|
||
|
QToolTip::showText(mapToGlobal(QPoint(0, 0)), "<font face='u001' size=-2>" + objectName() + "</font>");
|
||
|
}
|
||
|
|
||
|
void QToolTipLabel::mouseReleaseEvent(QMouseEvent * event) {
|
||
|
|
||
|
}
|