Changeset 87 in tspsg-svn for trunk/src/tspmodel.h


Ignore:
Timestamp:
Jan 12, 2010, 3:11:24 PM (15 years ago)
Author:
laleppa
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
  • trunk/src/tspmodel.h

    r81 r87  
    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.