Changeset ccdffe3a5f in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Mar 31, 2013, 6:31:10 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10
Children:
628500a5d6
Parents:
95b0ef73dc
git-author:
Oleksii Serdiuk <contacts@…> (03/31/13 18:31:10)
git-committer:
Oleksii Serdiuk <contacts@…> (03/31/13 21:45:38)
Message:

Removed printing related items from menu as there's no printer.

Made dialogs to be shown maximized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    r95b0ef73dc rccdffe3a5f  
    419419void SettingsDialog::buttonFontClicked()
    420420{
    421 bool ok;
    422 QFont font = QFontDialog::getFont(&ok,this->font,this);
    423     if (ok && (this->font != font)) {
    424         this->font = font;
    425         _newFont = true;
    426     }
     421    QFontDialog fd(font, this);
     422#ifdef Q_OS_BLACKBERRY
     423    fd.setWindowState(Qt::WindowMaximized);
     424#endif
     425    if ((fd.exec() != QDialog::Accepted) || (fd.selectedFont() == font))
     426        return;
     427    font = fd.selectedFont();
     428    _newFont = true;
    427429}
    428430
Note: See TracChangeset for help on using the changeset viewer.