-
Notifications
You must be signed in to change notification settings - Fork 0
/
IROOTFitOptions.h
41 lines (31 loc) · 908 Bytes
/
IROOTFitOptions.h
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
#ifndef IROOTFITOPTIONS_H
#define IROOTFITOPTIONS_H
#include <QWidget>
#include <QTreeWidgetItem>
#include <QMouseEvent>
namespace Ui {
class IROOTFitOptions;
}
class IROOTFitOptions : public QWidget
{
Q_OBJECT
public:
explicit IROOTFitOptions(QWidget *parent = 0);
~IROOTFitOptions();
private slots:
void on_fitOptions_itemClicked(QTreeWidgetItem *item, int column);
void on_close_clicked();
signals:
void selectionChanged(QList <QTreeWidgetItem*> );
private:
Ui::IROOTFitOptions *ui;
QPoint mousePressOrigin;
void mousePressEvent(QMouseEvent *e){ mousePressOrigin = e->globalPos();}
void mouseMoveEvent(QMouseEvent *e){
if(e->buttons() & Qt::LeftButton ){
move(pos()-(mousePressOrigin-e->globalPos()));
mousePressOrigin = e->globalPos();
}
}
};
#endif // IROOTFITOPTIONS_H