Changeset 628500a5d6 in tspsg


Ignore:
Timestamp:
Mar 31, 2013, 9:25:38 PM (11 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10
Children:
c039ebbe82
Parents:
ccdffe3a5f
git-author:
Oleksii Serdiuk <contacts@…> (03/31/13 21:25:38)
git-committer:
Oleksii Serdiuk <contacts@…> (03/31/13 21:46:09)
Message:

UI fixes:

  • made graph smaller;
  • made font smaller;
  • made output text color black;
  • start editing table cells on single tap;
  • don't show keyboard in about dialog.
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/defaults.h

    rccdffe3a5f r628500a5d6  
    8787#define DEF_EMBED_GRAPH_INTO_HTML false
    8888//! Default solution graph size in centimeters (HQ size is this size * HQ_FACTOR)
    89 #define DEF_GRAPH_WIDTH 4.5
     89#ifdef Q_OS_BLACKBERRY
     90#   define DEF_GRAPH_WIDTH 2.5
     91#else
     92#   define DEF_GRAPH_WIDTH 4.5
     93#endif
    9094//! Default for "Show solution steps' matrices for every solution step"
    9195#define DEF_SHOW_MATRIX true
     
    104108#ifdef Q_WS_S60
    105109#   define DEF_FONT_SIZE 8
     110#elif defined(Q_OS_BLACKBERRY)
     111#   define DEF_FONT_SIZE 7
    106112#else
    107113#   define DEF_FONT_SIZE 10
    108114#endif // Q_WS_S60
    109115//! Default text color
    110 #define DEF_TEXT_COLOR QPalette().color(QPalette::Text)
     116#ifdef Q_OS_BLACKBERRY
     117#   define DEF_TEXT_COLOR Qt::black
     118#else
     119#   define DEF_TEXT_COLOR QPalette().color(QPalette::Text)
     120#endif
    111121//! Default selected candidate color
    112122#define DEF_SELECTED_COLOR QColor(0x008000)
  • src/mainwindow.cpp

    rccdffe3a5f r628500a5d6  
    5656    setupUi();
    5757    setAcceptDrops(true);
     58
     59#ifdef Q_OS_BLACKBERRY
     60    taskView->setEditTriggers(QAbstractItemView::AllEditTriggers);
     61#endif
    5862
    5963    initDocStyleSheet();
     
    630634    txtAbout->moveCursor(QTextCursor::Start);
    631635    txtAbout->setFrameShape(QFrame::NoFrame);
     636#ifdef Q_OS_BLACKBERRY
     637    txtAbout->setAttribute(Qt::WA_InputMethodEnabled, false);
     638#endif
    632639
    633640//      txtCredits->setWordWrapMode(QTextOption::NoWrap);
     
    636643    txtCredits->moveCursor(QTextCursor::Start);
    637644    txtCredits->setFrameShape(QFrame::NoFrame);
     645#ifdef Q_OS_BLACKBERRY
     646    txtCredits->setAttribute(Qt::WA_InputMethodEnabled, false);
     647#endif
    638648
    639649    txtLicense->setWordWrapMode(QTextOption::NoWrap);
     
    642652    txtLicense->moveCursor(QTextCursor::Start);
    643653    txtLicense->setFrameShape(QFrame::NoFrame);
     654#ifdef Q_OS_BLACKBERRY
     655    txtLicense->setAttribute(Qt::WA_InputMethodEnabled, false);
     656#endif
    644657
    645658    bb->button(QDialogButtonBox::Ok)->setCursor(QCursor(Qt::PointingHandCursor));
     
    743756    pd.setCancelButton(cancel);
    744757    pd.setMaximum(n);
     758    pd.setAutoClose(false);
    745759    pd.setAutoReset(false);
    746760    pd.setLabelText(tr("Calculating optimal route..."));
Note: See TracChangeset for help on using the changeset viewer.