OGS
QValueTooltipSlider.cpp
Go to the documentation of this file.
1
15// ** INCLUDES **
16#include "QValueTooltipSlider.h"
17
18#include <QCursor>
19#include <QString>
20#include <QToolTip>
21
22QValueTooltipSlider::QValueTooltipSlider(QWidget* parent) : QSlider(parent)
23{
24 connect(this, SIGNAL(sliderMoved(int)), this, SLOT(setTooltipValue(int)));
25}
26
28{
29 QToolTip::showText(QCursor::pos(), QString::number(value));
30}
Definition of the QValueTooltipSlider class.
void setTooltipValue(int value)
QValueTooltipSlider(QWidget *parent=nullptr)