Support for an empty column

This commit is contained in:
Klaus Basan
2019-04-26 01:16:39 +02:00
parent c51dce8bfd
commit 99c6a03b6f
9 changed files with 64 additions and 2 deletions

View File

@@ -118,6 +118,9 @@ namespace BlackGui
//! Get a standard integer value formatted column
static CColumn standardInteger(const QString &headerName, const QString &toolTip, const BlackMisc::CPropertyIndex &propertyIndex, int alignment = CDefaultFormatter::alignRightVCenter());
//! An empty column
static CColumn emptyColumn();
private:
QString m_translationContext;
QString m_columnName;
@@ -220,6 +223,12 @@ namespace BlackGui
//! Calculate the absolute width
QList<int> calculateWidths(int totalWidth) const;
//! Insert an empty column
void insertEmptyColumn();
//! Ending with an empty column
bool endsWithEmptyColumn() const;
private:
QList<CColumn> m_columns;
QString m_translationContext; //!< for future usage