Commit a75fc5aca3476a67f81351a07bb0c635ac901b21
1 parent
8937346d4d
Exists in
master
and in
2 other branches
출력 형식 변경
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
app/gui/packet/mainwindow.cpp
... | ... | @@ -135,7 +135,10 @@ void MainWindow::updateControl(oven_control_t *control) |
135 | 135 | { |
136 | 136 | *(base + row) = o; |
137 | 137 | TableValue *val = (TableValue *) ui->controlTable->cellWidget(row, 1); |
138 | - val->setText(QString().sprintf("0x%04X - %d", o, o)); | |
138 | + val->setText(QString().sprintf("0x%04X", o)); | |
139 | + | |
140 | + val = (TableValue *) ui->controlTable->cellWidget(row, 2); | |
141 | + val->setText(QString::number(o)); | |
139 | 142 | } |
140 | 143 | } |
141 | 144 | } |
... | ... | @@ -152,7 +155,10 @@ void MainWindow::updateState(oven_state_t *state) |
152 | 155 | { |
153 | 156 | *(base + row) = o; |
154 | 157 | TableValue *val = (TableValue *) ui->stateTable->cellWidget(row, 1); |
155 | - val->setText(QString().sprintf("0x%04X - %d", o, o)); | |
158 | + val->setText(QString().sprintf("0x%04X", o)); | |
159 | + | |
160 | + val = (TableValue *) ui->stateTable->cellWidget(row, 2); | |
161 | + val->setText(QString::number(o)); | |
156 | 162 | } |
157 | 163 | } |
158 | 164 | } | ... | ... |