Changeset 7ed8b57eea in tspsg for src/main.cpp


Ignore:
Timestamp:
Aug 31, 2013, 11:52:34 PM (11 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
2a5e50e0a9
Parents:
1241232377
Message:

[BB10] UI fixes:

  • added proxy style and stylesheet to fix some UI issues on BlackBerry?;
  • removed style selection option because most styles have UI issues and removed About Qt menu item because About Qt dialog is too big;
  • load bigger (128x128) icons on BlackBerry? 10;
  • removed printing related items from menu as there's no printer;
  • made dialogs to be shown maximized;
  • made solution graph smaller;
  • made font smaller;
  • made output text color black;
  • start editing table cells on single tap;
  • don't show keyboard in about dialog.

Cherry-picks from
aa64ad40827cde0a444cd8198b0f3457aa191f8f
95b0ef73dcb4517ac2ae08867494204bbe8d7ea6
ccdffe3a5f84f12fba2e2f19ab249c31f1fcf35d
628500a5d687889823197e476953859d529af4f0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r1241232377 r7ed8b57eea  
    2323
    2424#include "mainwindow.h"
     25#include "version.h"
     26
     27#ifdef Q_OS_BLACKBERRY
     28#   include "bb10proxystyle.h"
     29#endif // Q_OS_BLACKBERRY
    2530
    2631#include <QDateTime>
     
    2833#include <QTextCodec>
    2934#include <QTranslator>
    30 #include "version.h"
    3135
    3236#if QT_VERSION < QT_VERSION_CHECK(4,6,0)
     
    6468    app.setApplicationName("TSP Solver and Generator");
    6569    app.setApplicationVersion(BUILD_VERSION);
     70
     71#ifdef Q_OS_BLACKBERRY
     72    QApplication::setStartDragDistance(42);
     73    QApplication::setStyle(new BB10ProxyStyle);
     74    app.setStyleSheet(CSS_FIX);
     75#endif // Q_OS_BLACKBERRY
    6676
    6777    // Seeding random number generator
Note: See TracChangeset for help on using the changeset viewer.