Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5522fa78 authored by Scott Wheeler's avatar Scott Wheeler

Cleanups for the TagEditor class...

svn path=/trunk/kdemultimedia/juk/; revision=209926
parent ff7367d1
......@@ -372,17 +372,15 @@ void TagEditor::setupLayout()
addItem(i18n("Comment:"), m_commentBox, rightColumnLayout);
}
connect(m_artistNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed()));
connect(m_trackNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed()));
connect(m_albumNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed()));
connect(m_genreBox, SIGNAL(activated(int)), this, SIGNAL(changed()));
connect(m_genreBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed()));
connect(m_fileNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed()));
connect(m_yearSpin, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
connect(m_trackSpin, SIGNAL(valueChanged(int)), this, SIGNAL(changed()));
connect(m_commentBox, SIGNAL(textChanged()), this, SIGNAL(changed()));
connect(this, SIGNAL(changed()), this, SLOT(setDataChanged()));
connect(m_artistNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_trackNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_albumNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_genreBox, SIGNAL(activated(int)), this, SLOT(slotDataChanged()));
connect(m_genreBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_fileNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_yearSpin, SIGNAL(valueChanged(int)), this, SLOT(slotDataChanged()));
connect(m_trackSpin, SIGNAL(valueChanged(int)), this, SLOT(slotDataChanged()));
connect(m_commentBox, SIGNAL(textChanged()), this, SLOT(slotDataChanged()));
}
void TagEditor::save(const PlaylistItemList &list)
......@@ -537,7 +535,7 @@ void TagEditor::showEvent(QShowEvent *e)
// private slots
////////////////////////////////////////////////////////////////////////////////
void TagEditor::setDataChanged(bool c)
void TagEditor::slotDataChanged(bool c)
{
m_dataChanged = c;
}
......
......@@ -49,7 +49,7 @@ public slots:
void updateCollection();
signals:
void changed();
// void signalChanged();
private:
void setupLayout();
......@@ -66,7 +66,7 @@ private:
virtual void showEvent(QShowEvent *e);
private slots:
void setDataChanged(bool c = true);
void slotDataChanged(bool c = true);
private:
typedef QMap<QWidget *, QCheckBox *> BoxMap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment