回答編集履歴
1
コード修正
answer
CHANGED
@@ -52,19 +52,21 @@
|
|
52
52
|
void MainWindow::on_doublePushButton_clicked()
|
53
53
|
{
|
54
54
|
// スケール変更
|
55
|
+
ui->graphicsView->resetMatrix()
|
55
56
|
ui->graphicsView->scale(2, 2);
|
56
57
|
}
|
57
58
|
|
58
59
|
void MainWindow::on_halfPushButton_clicked()
|
59
60
|
{
|
60
61
|
// スケール変更
|
62
|
+
ui->graphicsView->resetMatrix()
|
61
63
|
ui->graphicsView->scale(0.5, 0.5);
|
62
64
|
}
|
63
65
|
|
64
66
|
void MainWindow::on_DefaultPushButton_clicked()
|
65
67
|
{
|
66
68
|
// スケール変更
|
67
|
-
ui->graphicsView->
|
69
|
+
ui->graphicsView->resetMatrix()
|
68
70
|
}
|
69
71
|
```
|
70
72
|
|