27 lines
403 B
C++
27 lines
403 B
C++
#ifndef LABEDIT_H
|
|
#define LABEDIT_H
|
|
|
|
#include <QLineEdit>
|
|
#include <QLabel>
|
|
#include <QHBoxLayout>
|
|
#include <QDebug>
|
|
|
|
#define PT_11 11
|
|
|
|
class LabEdit : public QLineEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LabEdit();
|
|
void setLabelNumber(int num);
|
|
public Q_SLOTS:
|
|
void slotLableSetFontSize(int size);
|
|
private:
|
|
void init();
|
|
private:
|
|
QLabel *lab = nullptr;
|
|
int leng = 15;
|
|
};
|
|
|
|
#endif // LABEDIT_H
|