Changeset 5354a01311 in tspsg for src/tspmodel.cpp


Ignore:
Timestamp:
Jun 15, 2009, 5:10:25 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
5fce561905
Parents:
bcfd415fe2
Message:

+ Windows CE (WM6, actually, but should work on other versions) support:

  • added optimized for wince forms (recommended minimal resolution is 240x320);
  • removed unsupported under wince features from menus (e.g., printing);
  • added preprocessor directives to remove code for unsupported under wince features.
  • Fixed wrong encoding in some files to UTF-8.
  • Updated copyright and e-mail.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspmodel.cpp

    rbcfd415fe2 r5354a01311  
    11/*
    22 *  TSPSG - TSP Solver and Generator
    3  *  Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>
     3 *  Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
    44 *
    55 *  $Id$
     
    4545}
    4646
    47 QVariant CTSPModel::headerData(int section, Qt::Orientation, int role) const
     47QVariant CTSPModel::headerData(int section, Qt::Orientation orientation, int role) const
    4848{
    4949        if (role == Qt::DisplayRole)
    50                 return trUtf8("Город %1").arg(section + 1);
     50                if (orientation == Qt::Vertical)
     51                        return trUtf8("Город %1").arg(section + 1);
     52                else
     53                        return trUtf8("%1").arg(section + 1);
    5154        return QVariant();
    5255}
     
    143146        emit dataChanged(index(0,0),index(nCities - 1,nCities - 1));
    144147}
    145 
Note: See TracChangeset for help on using the changeset viewer.