Changeset 17 in tspsg-svn for trunk/src/tspmodel.cpp


Ignore:
Timestamp:
Jun 15, 2009, 5:10:25 PM (15 years ago)
Author:
laleppa
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.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 *.vcproj*
         1*.idb
        22*.ncb
         3*.pdb
        34*.sln
        45*.suo
        5 *.idb
        6 *.pdb
        7 ui_*
         6*.vcproj*
         7Makefile*
         8Win32
         9Windows Mobile*
         10debug
        811moc_*
        912qrc_*
        10 tspsg
        11 Makefile*
        12 debug
        1313release
         14ui_*
  • trunk/src/tspmodel.cpp

    r16 r17  
    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.