Changeset aa64ad4082 in tspsg


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.

Files:
2 added
3 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
  • src/mainwindow.cpp

    r0edec5a2ae raa64ad4082  
    15421542        Ui_MainWindow::retranslateUi(this);
    15431543
     1544#ifdef Q_OS_BLACKBERRY
     1545    menuSettings->removeAction(menuSettingsStyle->menuAction());
     1546#else
    15441547    loadStyleList();
     1548#endif
    15451549    loadToolbarList();
    15461550
     
    16691673    actionHelpReportBug->setIcon(GET_ICON("tools-report-bug"));
    16701674    actionHelpAbout->setIcon(GET_ICON("help-about"));
     1675#ifdef Q_OS_BLACKBERRY
     1676    // Qt about dialog is too big for the screen
     1677    // and it's impossible to close it.
     1678    menuHelp->removeAction(actionHelpAboutQt);
     1679#else
    16711680    actionHelpAboutQt->setIcon(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"));
     1681#endif
    16721682#endif
    16731683    // Buttons
  • tspsg.pri

    r0edec5a2ae raa64ad4082  
    3131    src/tspsolver.cpp \
    3232    src/qtwin.cpp
     33
     34blackberry {
     35    HEADERS += src/bb10proxystyle.h
     36    SOURCES += src/bb10proxystyle.cpp
     37}
    3338
    3439#Forms
Note: See TracChangeset for help on using the changeset viewer.