tools/drawMapTest/mainwindow.cpp
changeset 4439 27a896207aae
parent 4434 34c305fbc63c
child 4442 f8424e1bc936
equal deleted inserted replaced
4438:39ab70b37e01 4439:27a896207aae
    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 }