Rename initialise to initialize
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user