Changeset 1757eb594b in tspsg for src/tspmodel.h


Ignore:
Timestamp:
Jan 12, 2010, 3:11:24 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
fcd8c1e4c1
Parents:
64f288c0f8
Message:

+ Added Fractional accuracy (in decimail places) to settings.
+ Created defaults.h file. Moved all default defines there.

  • Replaced all double types with qreal.
  • Replaced all calls to trUtf8() with tr() as we use setCodecForTr() to set UTF-8 encoding as default and tr() is enough.
  • Replaced all 2009 with 2010 in copyrights.
  • Fixed an error when loading .zkt file with less than 5 cities.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspmodel.h

    r64f288c0f8 r1757eb594b  
    11/*!
    22 * \file tspmodel.h
    3  * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
     3 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
    44 *
    55 *  $Id$
     
    3333/*!
    3434 * \brief This class implements table model for manipulating a task.
    35  * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
     35 * \author Copyright &copy; 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
    3636 */
    3737class CTSPModel: public QAbstractTableModel
     
    6464private:
    6565        QSettings *settings;
    66         QVector<QVector<double> > table;
     66        QVector<QVector<qreal> > table;
    6767        quint16 nCities;
    6868        bool loadError(QDataStream::Status);
    6969        bool loadTSPT(QDataStream *);
    7070        bool loadZKT(QDataStream *);
    71         double rand(int, int) const;
     71        qreal rand(int, int) const;
    7272};
    7373
Note: See TracChangeset for help on using the changeset viewer.