Changeset 7ed8b57eea in tspsg for src/settingsdialog.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/settingsdialog.cpp

    r1241232377 r7ed8b57eea  
    546546void SettingsDialog::buttonFontClicked()
    547547{
    548 bool ok;
    549 QFont font = QFontDialog::getFont(&ok, this->font, this);
    550     if (ok && (this->font != font)) {
    551         this->font = font;
    552         QFont f = font;
    553         f.setPointSize(labelFontExample->font().pointSize());
    554         labelFontExample->setFont(f);
    555         labelFontExample->setText(font.family());
    556         _fontChanged = true;
    557     }
     548    QFont newFont;
     549#ifdef Q_OS_BLACKBERRY
     550    QFontDialog fd(font, this);
     551    fd.setWindowState(Qt::WindowMaximized);
     552    if ((fd.exec() != QDialog::Accepted) || (fd.selectedFont() == font))
     553        return;
     554    newFont = fd.selectedFont();
     555#else
     556    bool ok;
     557    newFont = QFontDialog::getFont(&ok, font, this);
     558    if (!ok || (font == newFont))
     559        return;
     560#endif
     561    font = newFont;
     562    QFont f = font;
     563    f.setPointSize(labelFontExample->font().pointSize());
     564    labelFontExample->setFont(f);
     565    labelFontExample->setText(font.family());
     566    _fontChanged = true;
    558567}
    559568
Note: See TracChangeset for help on using the changeset viewer.