2013-08-09 06:57:18 +02:00
|
|
|
#ifndef _LC_QUTILS_H_
|
|
|
|
#define _LC_QUTILS_H_
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2015-01-20 00:48:46 +01:00
|
|
|
QString lcFormatValue(float Value);
|
2016-06-13 03:46:50 +02:00
|
|
|
QString lcFormatValueLocalized(float Value);
|
2016-06-14 01:57:31 +02:00
|
|
|
float lcParseValueLocalized(const QString& Value);
|
2015-01-20 00:48:46 +01:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcQTreeWidgetColumnStretcher : public QObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
lcQTreeWidgetColumnStretcher(QTreeWidget *treeWidget, int columnToStretch);
|
|
|
|
|
|
|
|
virtual bool eventFilter(QObject *obj, QEvent *ev);
|
|
|
|
|
|
|
|
const int m_columnToStretch;
|
|
|
|
};
|
|
|
|
|
|
|
|
class lcQPartsListModel : public QAbstractListModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
lcQPartsListModel(QObject *parent = 0);
|
|
|
|
|
|
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
|
|
|
QVariant data(const QModelIndex &index, int role) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _LC_QUTILS_H_
|