Changeset 17 in tspsg-svn for trunk/src/settingsdialog.cpp
- Timestamp:
- Jun 15, 2009, 5:10:25 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 *. vcproj*1 *.idb 2 2 *.ncb 3 *.pdb 3 4 *.sln 4 5 *.suo 5 *.idb 6 *.pdb 7 ui_* 6 *.vcproj* 7 Makefile* 8 Win32 9 Windows Mobile* 10 debug 8 11 moc_* 9 12 qrc_* 10 tspsg11 Makefile*12 debug13 13 release 14 ui_*
-
- Property svn:ignore
-
trunk/src/settingsdialog.cpp
r10 r17 1 1 /* 2 2 * 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> 4 4 * 5 5 * $Id$ … … 24 24 #include <QMessageBox> 25 25 #include <QStatusTipEvent> 26 #include <QFontDialog> 26 27 #include "settingsdialog.h" 27 28 … … 33 34 connect(buttonCancel,SIGNAL(clicked()),this,SLOT(reject())); 34 35 connect(spinRandMin,SIGNAL(valueChanged(int)),this,SLOT(spinRandMinValueChanged(int))); 36 connect(buttonFont,SIGNAL(clicked()),this,SLOT(buttonFontClicked())); 35 37 // setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint); 36 38 setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint); 37 39 layout()->setSizeConstraint(layout()->SetFixedSize); 40 #ifndef Q_OS_WINCE 38 41 // Setting initial text of dialog hint label to own status tip 39 42 // text. … … 43 46 labelHint->setMaximumHeight(labelHint->height()); 44 47 labelHint->setMinimumHeight(labelHint->height()); 48 #endif // Q_OS_WINCE 45 49 } 46 50 51 #ifndef Q_OS_WINCE 47 52 bool SettingsDialog::event(QEvent *ev) 48 53 { … … 60 65 return QDialog::event(ev); 61 66 } 67 #endif // Q_OS_WINCE 62 68 69 void SettingsDialog::buttonFontClicked() 70 { 71 // TODO: Pass current font to dialog and save selected. 72 QFontDialog fd; 73 fd.exec(); 74 }
Note: See TracChangeset
for help on using the changeset viewer.