Changeset 5354a01311 in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Jun 15, 2009, 5:10:25 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
5fce561905
Parents:
bcfd415fe2
Message:

+ Windows CE (WM6, actually, but should work on other versions) support:

  • added optimized for wince forms (recommended minimal resolution is 240x320);
  • removed unsupported under wince features from menus (e.g., printing);
  • added preprocessor directives to remove code for unsupported under wince features.
  • Fixed wrong encoding in some files to UTF-8.
  • Updated copyright and e-mail.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    rbcfd415fe2 r5354a01311  
    11/*
    22 *  TSPSG - TSP Solver and Generator
    3  *  Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>
     3 *  Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
    44 *
    55 *  $Id$
     
    2424#include <QMessageBox>
    2525#include <QStatusTipEvent>
     26#include <QFontDialog>
    2627#include "settingsdialog.h"
    2728
     
    3334        connect(buttonCancel,SIGNAL(clicked()),this,SLOT(reject()));
    3435        connect(spinRandMin,SIGNAL(valueChanged(int)),this,SLOT(spinRandMinValueChanged(int)));
     36        connect(buttonFont,SIGNAL(clicked()),this,SLOT(buttonFontClicked()));
    3537//      setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint);
    3638        setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint);
    3739        layout()->setSizeConstraint(layout()->SetFixedSize);
     40#ifndef Q_OS_WINCE
    3841        // Setting initial text of dialog hint label to own status tip
    3942        // text.
     
    4346        labelHint->setMaximumHeight(labelHint->height());
    4447        labelHint->setMinimumHeight(labelHint->height());
     48#endif // Q_OS_WINCE
    4549}
    4650
     51#ifndef Q_OS_WINCE
    4752bool SettingsDialog::event(QEvent *ev)
    4853{
     
    6065                return QDialog::event(ev);
    6166}
     67#endif // Q_OS_WINCE
    6268
     69void SettingsDialog::buttonFontClicked()
     70{
     71        // TODO: Pass current font to dialog and save selected.
     72QFontDialog fd;
     73        fd.exec();
     74}
Note: See TracChangeset for help on using the changeset viewer.