Class sh::ui::ColumnDimensions

class sh::ui::ColumnDimensions

Auxiliary data structure for persistent column dimensions.

It stores the width of a column whenever it changes and restores it when needed (mostly when Shallot starts).

Public Functions

ColumnDimensions(int index)

Constructed only by the infrastructure and made available otherwise.

void store()
bool remove()
void setWidth(QString col, int width)
int getWidth(QString col, int defaultval)

Public Members

int index

Private Functions

std::unique_ptr<QSettings> db()

Private Members

QHash<QString, int> dims