Couple of minor changes.
This commit is contained in:
parent
e1405d5370
commit
3fb32f1200
5 changed files with 28 additions and 28 deletions
|
|
@ -3,12 +3,12 @@
|
|||
#include <QAbstractTableModel>
|
||||
#include <QColor>
|
||||
|
||||
int GetDefaultAlignmentForType(Oid oid);
|
||||
Qt::Alignment GetDefaultAlignmentForType(Oid oid);
|
||||
QColor GetDefaultColorForType(Oid oid);
|
||||
|
||||
inline int GetDefaultAlignment() { return Qt::AlignLeft + Qt::AlignVCenter; }
|
||||
inline int GetDefaultBoolAlignment() { return Qt::AlignCenter + Qt::AlignVCenter; }
|
||||
inline int GetDefaultNumberAlignment() { return Qt::AlignRight + Qt::AlignVCenter; }
|
||||
inline Qt::Alignment GetDefaultAlignment() { return Qt::AlignLeft + Qt::AlignVCenter; }
|
||||
inline Qt::Alignment GetDefaultBoolAlignment() { return Qt::AlignCenter + Qt::AlignVCenter; }
|
||||
inline Qt::Alignment GetDefaultNumberAlignment() { return Qt::AlignRight + Qt::AlignVCenter; }
|
||||
|
||||
inline QColor GetDefaultBoolColor(bool v)
|
||||
{
|
||||
|
|
@ -18,6 +18,7 @@ inline QColor GetDefaultBoolColor(bool v)
|
|||
inline QColor GetDefaultIntegerColor() { return Qt::darkBlue; }
|
||||
inline QColor GetDefaultFloatColor() { return Qt::darkCyan; }
|
||||
inline QColor GetDefaultNumericColor() { return Qt::darkGreen; }
|
||||
inline QColor GetDefaultNullColor() { return Qt::gray; }
|
||||
|
||||
QString FormatBoolForDisplay(bool v);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue