Changeset aa64ad4082 in tspsg for src/main.cpp


Ignore:
Timestamp:
Mar 31, 2013, 2:18:22 PM (11 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10
Children:
95b0ef73dc
Parents:
0edec5a2ae
git-author:
Oleksii Serdiuk <contacts@…> (03/31/13 14:18:22)
git-committer:
Oleksii Serdiuk <contacts@…> (03/31/13 15:41:08)
Message:

Added proxy style and stylesheet to fix some UI issues on BlackBerry?.

Also, removed style selection option because most styles have UI issues
and removed About Qt menu item because About Qt dialog is too big.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r0edec5a2ae raa64ad4082  
    2323
    2424#include "mainwindow.h"
     25#ifdef Q_OS_BLACKBERRY
     26#   include "bb10proxystyle.h"
     27#endif // Q_OS_BLACKBERRY
     28
    2529#if QT_VERSION < 0x040600
    2630#   ifdef Q_CC_MSVC
     
    5559    app.setApplicationName("TSP Solver and Generator");
    5660    app.setApplicationVersion(BUILD_VERSION);
     61
     62#ifdef Q_OS_BLACKBERRY
     63    QApplication::setStartDragDistance(42);
     64    QApplication::setStyle(new BB10ProxyStyle);
     65    app.setStyleSheet(CSS_FIX);
     66#endif // Q_OS_BLACKBERRY
    5767
    5868    // Seeding random number generator
Note: See TracChangeset for help on using the changeset viewer.