2017-07-19 14:20:32 -07:00
|
|
|
#pragma once
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2017-07-26 17:34:25 -07:00
|
|
|
QString lcFormatValue(float Value, int Precision);
|
2016-06-13 01:46:50 +00:00
|
|
|
QString lcFormatValueLocalized(float Value);
|
2016-06-13 23:57:31 +00:00
|
|
|
float lcParseValueLocalized(const QString& Value);
|
2015-01-19 23:48:46 +00:00
|
|
|
|
2013-08-09 04:57:18 +00:00
|
|
|
class lcQTreeWidgetColumnStretcher : public QObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
lcQTreeWidgetColumnStretcher(QTreeWidget *treeWidget, int columnToStretch);
|
|
|
|
|
|
|
|
virtual bool eventFilter(QObject *obj, QEvent *ev);
|
|
|
|
|
|
|
|
const int m_columnToStretch;
|
|
|
|
};
|
|
|
|
|
2017-11-13 17:24:36 -08:00
|
|
|
class lcTransformLineEdit : public QLineEdit
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
lcTransformLineEdit()
|
|
|
|
: QLineEdit()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual QSize sizeHint() const
|
|
|
|
{
|
|
|
|
QFontMetrics FontMetrics(font());
|
|
|
|
|
|
|
|
int Width = FontMetrics.width(QLatin1Char('x')) * 10;
|
|
|
|
|
|
|
|
return QLineEdit::sizeHint() - QSize(Width, 0);
|
|
|
|
}
|
|
|
|
};
|