Changeset 5354a01311 in tspsg for src/settingsdialog.cpp
- Timestamp:
- Jun 15, 2009, 5:10:25 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 5fce561905
- Parents:
- bcfd415fe2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
rbcfd415fe2 r5354a01311 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.