Changeset c10297cf73 in tspsg for src/globals.h


Ignore:
Timestamp:
Aug 9, 2009, 1:45:19 AM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
6dfdef0c3e
Parents:
6332a24386
Message:
  • mainwindow.ui and mainwindow.ce.ui had differences only in printing actions and statusbar, so I merged them into one. Differences are now applied in source code. This will simplify Main Window maintenance.
  • Changed #ifndef Q_OS_WINCE to #ifndef QT_NO_PRINTER where relevant.
  • Now using method at() instead of operator [] in solving algorithm. This change dramatically decreased solution time (from 13 seconds to 10-40 milliseconds for 20 cities on my PC).
  • Increased maximum number of cities to 30. Setting more makes no sense at this moment, because generated solution output is big and inserting it to QTextEdit takes veeeeery long time.
  • Translations were updated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/globals.h

    r6332a24386 rc10297cf73  
    3131// Version info
    3232#include "version.h"
    33 // OS detection
     33// OS and ARCH detection
    3434#include "os.h"
    3535
     
    5858
    5959// Maximum available number of cities
    60 #define MAX_NUM_CITIES 20
     60#define MAX_NUM_CITIES 30
    6161// This value means infinity :-)
    6262#ifndef INFINITY
Note: See TracChangeset for help on using the changeset viewer.