-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support balance_performance #1458
feat: support balance_performance #1458
Conversation
629b2ae
to
86273ed
Compare
/check obs |
Deepin ChatOps Bot |
880b8bd
to
9358965
Compare
/integrate battery_balance_performance |
AutoIntegrationPr Bot |
/integrate battery_balance_performance |
17e66e2
to
0adfbcf
Compare
/integrate battery_balance_performance |
/check obs |
0adfbcf
to
1947453
Compare
/integrate battery_balance_performance |
5468510
to
30d4f31
Compare
/integrate battery_balance_performance |
ac11e2f
to
8431211
Compare
/integrate battery_balance_performance |
f952b5a
to
87e2553
Compare
/check obs |
4 similar comments
/check obs |
/check obs |
/check obs |
/check obs |
87e2553
to
566e9d1
Compare
/check obs |
Deepin Obs Bot |
QStandardItem *items = m_powerPlanModel->item(i, 0); | ||
if (items->data(PowerPlanRole).toString() == PERFORMANCE) { | ||
m_powerPlanModel->removeRow(i+1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用removeRows,不然得按照先删除i+1,再删除i, 容易出错,
@@ -128,12 +152,56 @@ void GeneralModule::initUI() | |||
DStandardItem *powerPlanItem = | |||
new DStandardItem(m_powerPlanMap.value(PERFORMANCE)); | |||
powerPlanItem->setData(PERFORMANCE, PowerPlanRole); | |||
m_powerPlanModel->insertRow(1, powerPlanItem); | |||
if (row_count == 6) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
考虑用 insertRows,放置下标错乱问题,
566e9d1
to
5265c1e
Compare
5265c1e
to
ac5ee46
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, Decodetalkers The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2 similar comments
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, Decodetalkers The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, Decodetalkers The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/merge |
Log: