Rename initialise to initialize

This commit is contained in:
Jonas Kvinge
2020-10-17 17:29:09 +02:00
parent 5b21118a8c
commit b6693a71f9
43 changed files with 114 additions and 117 deletions

View File

@@ -221,7 +221,7 @@ void StretchHeaderView::SetStretchEnabled(const bool enabled) {
stretch_enabled_ = enabled;
if (enabled) {
// Initialise the list of widths from the current state of the widget
// Initialize the list of widths from the current state of the widget
column_widths_.resize(count());
for (int i = 0; i < count(); ++i) {
column_widths_[i] = ColumnWidthType(sectionSize(i)) / width();

View File

@@ -70,8 +70,8 @@ class StretchHeaderView : public QHeaderView {
bool is_stretch_enabled() const { return stretch_enabled_; }
public slots:
// Changes the stretch mode. Enabling stretch mode will initialise the
// proportional column widths from the current state of the header.
// Changes the stretch mode.
// Enabling stretch mode will initialize the proportional column widths from the current state of the header.
void ToggleStretchEnabled();
void SetStretchEnabled(const bool enabled);