Changeset 157 in tspsg-svn for trunk/src/mainwindow.cpp


Ignore:
Timestamp:
Mar 22, 2011, 9:31:18 PM (14 years ago)
Author:
laleppa
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
  • trunk/src/mainwindow.cpp

    r154 r157  
    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.