Changeset e0fcac5f2c in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Oct 24, 2009, 3:37:48 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:
8af59c4aa3
Parents:
85ad815b0b
Message:
  • Finished documentation.
  • Sorted all functions in .cpp files according to order of their declaration in .h files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    r85ad815b0b re0fcac5f2c  
    188188}
    189189
     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 */
     194bool 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 */
     203bool SettingsDialog::fontChanged() const
     204{
     205        return newFont;
     206}
     207
     208/* Privates **********************************************************/
     209
    190210void SettingsDialog::accept()
    191211{
     
    205225}
    206226
     227void SettingsDialog::buttonColorClicked()
     228{
     229QColor color = QColorDialog::getColor(this->color,this);
     230        if (color.isValid() && (this->color != color)) {
     231                this->color = color;
     232                newColor = true;
     233        }
     234}
     235
    207236void SettingsDialog::buttonFontClicked()
    208237{
     
    213242                newFont = true;
    214243        }
    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() const
    231 {
    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() const
    240 {
    241         return newFont;
    242244}
    243245
Note: See TracChangeset for help on using the changeset viewer.