UASQuickViewTextItem.h 524 Bytes
Newer Older
1 2 3 4 5
#ifndef UASQUICKVIEWTEXTITEM_H
#define UASQUICKVIEWTEXTITEM_H

#include "UASQuickViewItem.h"
#include <QLabel>
6
#include <QSpacerItem>
7 8 9 10 11 12
class UASQuickViewTextItem : public UASQuickViewItem
{
public:
    UASQuickViewTextItem(QWidget *parent=0);
    void setValue(double value);
    void setTitle(QString title);
13 14
    int minValuePixelSize();
    void setValuePixelSize(int size);
15 16
protected:
    void resizeEvent(QResizeEvent *event);
17 18 19 20 21 22
private:
    QLabel *titleLabel;
    QLabel *valueLabel;
};

#endif // UASQUICKVIEWTEXTITEM_H