Changeset e0fcac5f2c in tspsg for src/settingsdialog.cpp
- Timestamp:
- Oct 24, 2009, 3:37:48 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 8af59c4aa3
- Parents:
- 85ad815b0b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r85ad815b0b re0fcac5f2c 188 188 } 189 189 190 /*! 191 * \brief Indicates whether or not the font color has been changed. 192 * \return \c true if font color changed, otherwise \c false. 193 */ 194 bool SettingsDialog::colorChanged() const 195 { 196 return newColor; 197 } 198 199 /*! 200 * \brief Indicates whether or not the font properties have been changed. 201 * \return \c true if font properties changed, otherwise \c false. 202 */ 203 bool SettingsDialog::fontChanged() const 204 { 205 return newFont; 206 } 207 208 /* Privates **********************************************************/ 209 190 210 void SettingsDialog::accept() 191 211 { … … 205 225 } 206 226 227 void SettingsDialog::buttonColorClicked() 228 { 229 QColor color = QColorDialog::getColor(this->color,this); 230 if (color.isValid() && (this->color != color)) { 231 this->color = color; 232 newColor = true; 233 } 234 } 235 207 236 void SettingsDialog::buttonFontClicked() 208 237 { … … 213 242 newFont = true; 214 243 } 215 }216 217 void SettingsDialog::buttonColorClicked()218 {219 QColor color = QColorDialog::getColor(this->color,this);220 if (color.isValid() && (this->color != color)) {221 this->color = color;222 newColor = true;223 }224 }225 226 /*!227 * \brief Indicates whether or not the font color has been changed.228 * \return \c true if font color changed, otherwise \c false.229 */230 bool SettingsDialog::colorChanged() const231 {232 return newColor;233 }234 235 /*!236 * \brief Indicates whether or not the font properties have been changed.237 * \return \c true if font properties changed, otherwise \c false.238 */239 bool SettingsDialog::fontChanged() const240 {241 return newFont;242 244 } 243 245
Note: See TracChangeset
for help on using the changeset viewer.