Changeset aa64ad4082 in tspsg for src


Ignore:
Timestamp:
Mar 31, 2013, 2:18:22 PM (12 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.

Location:
src
Files:
2 added
2 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
Note: See TracChangeset for help on using the changeset viewer.