Changeset 24 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Jun 22, 2009, 9:59:44 AM (15 years ago)
Author:
laleppa
Message:

Fix for color selection dialog code to compile without errors using Qt < 4.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/settingsdialog.cpp

    r23 r24  
    9393void SettingsDialog::buttonColorClicked()
    9494{
    95 QColorDialog cd(color,this);
    96         if (cd.exec() == QDialog::Accepted)
    97                 color = cd.selectedColor();
     95QColor color = QColorDialog::getColor(this->color,this);
     96        if (color.isValid())
     97                this->color = color;
    9898}
    9999
Note: See TracChangeset for help on using the changeset viewer.