Skip to content

Commit

Permalink
fix more compile errors (QList::emplaceback/emplace_back() did not ex…
Browse files Browse the repository at this point in the history
…ist in Qt 5.15
  • Loading branch information
jkriege2 committed Dec 19, 2023
1 parent 5dcd732 commit 83c9803
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jkqtplotter/jkqtpkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ JKQTPBaseKey::KeyLayoutDescription JKQTPBaseKey::getKeyLayout(JKQTPEnhancedPaint
layout.columns.append(allItems);
} else if (keyStyle().layout==JKQTPKeyLayoutOneRow || keyStyle().layout==JKQTPKeyLayoutMultiRow) {
for (const auto& r: allItems.rows) {
layout.columns.emplaceBack(r);
layout.columns.push_back(KeyColumnDescription(r));
}
}

Expand Down Expand Up @@ -460,7 +460,7 @@ void JKQTPBaseKey::KeyLayoutDescription::redistributeOverRows(int rowCnt)

int i=0;
for (int c=0; c<colCnt; c++) {
columns.emplace_back();
columns.push_back(KeyColumnDescription());
}
for (int r=0; r<rowCnt; r++) {
for (int c=0; c<colCnt; c++) {
Expand All @@ -483,7 +483,7 @@ void JKQTPBaseKey::KeyLayoutDescription::redistributeOverColumns(int colCnt)
columns.clear();
int i=0;
for (int c=0; c<colCnt; c++) {
columns.emplace_back();
columns.push_back(KeyColumnDescription());
for (int r=0; r<rowCnt; r++) {
if (i<itemCnt) columns[c].rows.append(items[i]);
i++;
Expand Down

0 comments on commit 83c9803

Please sign in to comment.