UASQuickViewTextItem.h 486 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
protected:
    void resizeEvent(QResizeEvent *event);
15 16 17
private:
    QLabel *titleLabel;
    QLabel *valueLabel;
18
    QSpacerItem *spacerItem;
19 20 21
};

#endif // UASQUICKVIEWTEXTITEM_H