Changeset 17 in tspsg-svn for trunk/src/settingsdialog.cpp


Ignore:
Timestamp:
Jun 15, 2009, 5:10:25 PM (15 years ago)
Author:
laleppa
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.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 *.vcproj*
         1*.idb
        22*.ncb
         3*.pdb
        34*.sln
        45*.suo
        5 *.idb
        6 *.pdb
        7 ui_*
         6*.vcproj*
         7Makefile*
         8Win32
         9Windows Mobile*
         10debug
        811moc_*
        912qrc_*
        10 tspsg
        11 Makefile*
        12 debug
        1313release
         14ui_*
  • trunk/src/settingsdialog.cpp

    r10 r17  
    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.