Changeset d97db6d321 in tspsg for src/mainwindow.cpp


Ignore:
Timestamp:
Mar 22, 2011, 9:31:18 PM (13 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
a885c3d9d2
Parents:
d8a3826f87
git-author:
Oleksii Serdiuk <contacts@…> (03/22/11 21:31:18)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
Message:
  • Improved some error messages: now they are more verbose.
  • Handheld version now includes larger icons (48x48 instead of 32x32).
  • Fixed bug #2: Solution graph is too small on high resolution screens.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    rd8a3826f87 rd97db6d321  
    606606    dlg->setWindowTitle(tr("About %1").arg(QCoreApplication::applicationName()));
    607607    dlg->setWindowIcon(GET_ICON("help-about"));
     608
    608609    dlg->setLayout(vb);
    609610
     
    715716            QMessageBox::warning(this, tr("Solution Result"), tr("Unable to find a solution.\nMaybe, this task has no solution."));
    716717        }
    717         pd.setLabelText(tr("Cleaning up..."));
     718        pd.setLabelText(tr("Memory cleanup..."));
    718719        pd.setMaximum(0);
    719720        pd.setCancelButton(NULL);
     
    801802    while ((step->next != SStep::NoNextStep) && (c < spinCities->value())) {
    802803        if (pd.wasCanceled()) {
    803             pd.setLabelText(tr("Cleaning up..."));
     804            pd.setLabelText(tr("Memory cleanup..."));
    804805            pd.setMaximum(0);
    805806            pd.setCancelButton(NULL);
     
    934935        solutionText->moveCursor(QTextCursor::Start);
    935936
    936     pd.setLabelText(tr("Cleaning up..."));
     937    pd.setLabelText(tr("Memory cleanup..."));
    937938    pd.setMaximum(0);
    938939    pd.setCancelButton(NULL);
     
    11061107int r;
    11071108    if (settings->value("Output/HQGraph", DEF_HQ_GRAPH).toBool())
    1108         r = 70;
     1109        r = logicalDpiX() / 1.27;
    11091110    else
    1110         r = 35;
     1111        r = logicalDpiX() / 2.54;
    11111112qreal x, y;
    11121113    if (step != NULL)
Note: See TracChangeset for help on using the changeset viewer.