tools/shared/qtgradienteditor/qtgradientviewdialog.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    48 QtGradientViewDialog::QtGradientViewDialog(QWidget *parent)
    48 QtGradientViewDialog::QtGradientViewDialog(QWidget *parent)
    49     : QDialog(parent)
    49     : QDialog(parent)
    50 {
    50 {
    51     m_ui.setupUi(this);
    51     m_ui.setupUi(this);
    52     m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
    52     m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
    53     connect(m_ui.gradientView, SIGNAL(currentGradientChanged(const QString &)),
    53     connect(m_ui.gradientView, SIGNAL(currentGradientChanged(QString)),
    54             this, SLOT(slotGradientSelected(const QString &)));
    54             this, SLOT(slotGradientSelected(QString)));
    55     connect(m_ui.gradientView, SIGNAL(gradientActivated(const QString &)),
    55     connect(m_ui.gradientView, SIGNAL(gradientActivated(QString)),
    56             this, SLOT(slotGradientActivated(const QString &)));
    56             this, SLOT(slotGradientActivated(QString)));
    57 }
    57 }
    58 
    58 
    59 void QtGradientViewDialog::setGradientManager(QtGradientManager *manager)
    59 void QtGradientViewDialog::setGradientManager(QtGradientManager *manager)
    60 {
    60 {
    61     m_ui.gradientView->setGradientManager(manager);
    61     m_ui.gradientView->setGradientManager(manager);