Changeset 89e5214692 in tspsg for src/mainwindow.h


Ignore:
Timestamp:
Sep 12, 2012, 6:50:04 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
197f54a2b9
Parents:
f48433245d
Message:

Replaced all Q_WS_xxx with Q_OS_xxx ifdefs where possible.

This is needed for compatibility with Qt 5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.h

    rf48433245d r89e5214692  
    3636#include "tspmodel.h"
    3737
    38 #ifdef Q_WS_WIN32
     38#ifdef Q_OS_WIN32
    3939    // Forward declaration. A real one is in shobjidl.h
    4040    struct ITaskbarList3;
     
    8686    void dataChanged();
    8787    void dataChanged(const QModelIndex &tl, const QModelIndex &br);
    88 #ifdef Q_WS_WINCE_WM
     88#ifdef Q_OS_WINCE_WM
    8989    void changeEvent(QEvent *ev);
    9090    void desktopResized(int screen);
    91 #endif // Q_WS_WINCE_WM
     91#endif // Q_OS_WINCE_WM
    9292    void numCitiesChanged(int nCities);
    9393#ifndef QT_NO_PRINTER
    9494    void printPreview(QPrinter *printer);
    9595#endif // QT_NO_PRINTER
    96 #ifdef Q_WS_WIN32
     96#ifdef Q_OS_WIN32
    9797    void solverRoutePartFound(int n);
    98 #endif // Q_WS_WIN32
     98#endif // Q_OS_WIN32
    9999    void spinCitiesValueChanged(int nCities);
    100100
     
    114114#endif // QT_NO_PRINTER
    115115    QAction *actionHelpCheck4Updates;
    116 #ifdef Q_WS_S60
     116#ifdef Q_OS_SYMBIAN
    117117    QAction *actionRightSoftKey;
    118118#endif
    119119    QSettings *settings;
    120120    CTSPModel *tspmodel;
    121 #ifdef Q_WS_WINCE_WM
     121#ifdef Q_OS_WINCE_WM
    122122    QRect currentGeometry;
    123 #endif // Q_WS_WINCE_WM
     123#endif // Q_OS_WINCE_WM
    124124
    125 #ifdef Q_WS_WIN32
     125#ifdef Q_OS_WIN32
    126126    ITaskbarList3 *tl;
    127 #endif // Q_WS_WIN32
     127#endif // Q_OS_WIN32
    128128
    129129    // The solution graph SVG
     
    154154    void outputMatrix(QTextCursor &cur, const TMatrix &matrix);
    155155    void outputMatrix(QTextCursor &cur, const SStep &step);
    156 #ifdef Q_WS_S60
     156#ifdef Q_OS_SYMBIAN
    157157    void resizeEvent(QResizeEvent *ev);
    158 #endif // Q_WS_S60
     158#endif // Q_OS_SYMBIAN
    159159    void retranslateUi(bool all = true);
    160160    bool saveTask();
     
    165165};
    166166
    167 #ifdef Q_WS_S60
     167#ifdef Q_OS_SYMBIAN
    168168// A quickly hacked QMessageBox for Symbian that supports three buttons.
    169169class QSMessageBox: public QMessageBox {
     
    175175    QSMessageBox(QWidget *parent = 0);
    176176};
    177 #endif // Q_WS_S60
     177#endif // Q_OS_SYMBIAN
    178178
    179179#endif // MAINWINDOW_H
Note: See TracChangeset for help on using the changeset viewer.