equal
deleted
inserted
replaced
40 ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio); |
40 ui->graphicsView->fitInView(ui->graphicsView->scene()->sceneRect(), Qt::KeepAspectRatio); |
41 } |
41 } |
42 |
42 |
43 void MainWindow::scene_pathChanged() |
43 void MainWindow::scene_pathChanged() |
44 { |
44 { |
45 ui->plainTextEdit->setPlainText(scene->encode().toBase64()); |
45 QString str = scene->encode().toBase64(); |
|
46 ui->plainTextEdit->setPlainText(str); |
|
47 ui->sbBytes->setValue(str.size()); |
46 } |
48 } |
47 |
49 |
48 void MainWindow::on_pbSimplify_clicked() |
50 void MainWindow::on_pbSimplify_clicked() |
49 { |
51 { |
50 scene->simplify(); |
52 scene->simplifyLast(); |
51 } |
53 } |