ccColorGradientDlg::ccColorGradientDlg(QWidget* parent) : QDialog(parent, Qt::Tool) , Ui::ColorGradientDialog() { setupUi(this); connect(firstColorButton, SIGNAL(clicked()), this, SLOT(changeFirstColor())); connect(secondColorButton, SIGNAL(clicked()), this, SLOT(changeSecondColor())); //restore previous parameters ccQtHelpers::SetButtonColor(secondColorButton,s_secondColor); ccQtHelpers::SetButtonColor(firstColorButton,s_firstColor); setType(s_lastType); bandingFreqSpinBox->setValue(s_lastFreq); }
ccColorGradientDlg::ccColorGradientDlg(QWidget* parent) : QDialog(parent) , Ui::ColorGradientDialog() { setupUi(this); setWindowFlags(Qt::Tool/*Qt::Dialog | Qt::WindowStaysOnTopHint*/); connect(firstColorButton, SIGNAL(clicked()), this, SLOT(changeFirstColor())); connect(secondColorButton, SIGNAL(clicked()), this, SLOT(changeSecondColor())); //restore previous parameters ccDisplayOptionsDlg::SetButtonColor(secondColorButton,s_secondColor); ccDisplayOptionsDlg::SetButtonColor(firstColorButton,s_firstColor); setType(s_lastType); bandingFreqSpinBox->setValue(s_lastFreq); }