-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstemedtooltip.h
More file actions
43 lines (32 loc) · 773 Bytes
/
stemedtooltip.h
File metadata and controls
43 lines (32 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef STEMEDTOOLTIP_H
#define STEMEDTOOLTIP_H
#include <QWidget>
#include <QToolTip>
#include <QPainter>
#include <QPropertyAnimation>
#include <QDebug>
namespace Ui {
class StemedTooltip;
}
class StemedTooltip : public QWidget
{
Q_OBJECT
public:
explicit StemedTooltip(QWidget *parent = 0);
~StemedTooltip();
void setName(QString name);
void setSize(QString size);
void setUrl(QString url);
private:
Ui::StemedTooltip *ui;
void paintEvent(QPaintEvent *);
const int STEM_HEIGHT = 10;
const int STEM_WIDTH = 20; //should be 2*STEM_WIDTH and even.
const int WIDTH = 250;
const int HEIGHT = 80;
QWidget *_parent;
public slots:
void showWindow();
void hideWindow();
};
#endif // STEMEDTOOLTIP_H