Changeset 7ed8b57eea in tspsg for src/settingsdialog.cpp
- Timestamp:
- Aug 31, 2013, 11:52:34 PM (11 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 2a5e50e0a9
- Parents:
- 1241232377
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r1241232377 r7ed8b57eea 546 546 void SettingsDialog::buttonFontClicked() 547 547 { 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; 558 567 } 559 568
Note: See TracChangeset
for help on using the changeset viewer.