Changeset aecdf994f9 in tspsg for src/tspmodel.h


Ignore:
Timestamp:
Jun 22, 2009, 1:37:12 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:
d5384ee64e
Parents:
799ba1e3f2
Message:

+ Settings are now saved and restored.
+ Font color selection in settings.
+ Primitive about dialog.
+ Automatic resizing of cells to its contents in wince.

  • No "Save window position" checkbox in wince.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspmodel.h

    r799ba1e3f2 raecdf994f9  
    3131#define MAX_CITIES 100
    3232// This value means infinity :-)
    33 #define INFINITY 1.7E+308
     33#ifndef INFINITY
     34        #define INFINITY 1.7E+308
     35#endif
    3436// This is string, which represents infinite value in table
    3537#define INFSTR "---"
    3638
    3739#include <QAbstractTableModel>
     40#include <QSettings>
    3841
    3942class CTSPModel: public QAbstractTableModel
     
    5154        void setNumCities(int);
    5255        void randomize();
    53         int randMin;
    54         int randMax;
    5556private:
     57        QSettings *settings;
    5658        double table[MAX_CITIES][MAX_CITIES];
    5759        int nCities;
Note: See TracChangeset for help on using the changeset viewer.