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() ...@@ -372,17 +372,15 @@ void TagEditor::setupLayout()
addItem(i18n("Comment:"), m_commentBox, rightColumnLayout); addItem(i18n("Comment:"), m_commentBox, rightColumnLayout);
} }
connect(m_artistNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed())); connect(m_artistNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_trackNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed())); connect(m_trackNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_albumNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed())); connect(m_albumNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_genreBox, SIGNAL(activated(int)), this, SIGNAL(changed())); connect(m_genreBox, SIGNAL(activated(int)), this, SLOT(slotDataChanged()));
connect(m_genreBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed())); connect(m_genreBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_fileNameBox, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed())); connect(m_fileNameBox, SIGNAL(textChanged(const QString&)), this, SLOT(slotDataChanged()));
connect(m_yearSpin, SIGNAL(valueChanged(int)), this, SIGNAL(changed())); connect(m_yearSpin, SIGNAL(valueChanged(int)), this, SLOT(slotDataChanged()));
connect(m_trackSpin, SIGNAL(valueChanged(int)), this, SIGNAL(changed())); connect(m_trackSpin, SIGNAL(valueChanged(int)), this, SLOT(slotDataChanged()));
connect(m_commentBox, SIGNAL(textChanged()), this, SIGNAL(changed())); connect(m_commentBox, SIGNAL(textChanged()), this, SLOT(slotDataChanged()));
connect(this, SIGNAL(changed()), this, SLOT(setDataChanged()));
} }
void TagEditor::save(const PlaylistItemList &list) void TagEditor::save(const PlaylistItemList &list)
...@@ -537,7 +535,7 @@ void TagEditor::showEvent(QShowEvent *e) ...@@ -537,7 +535,7 @@ void TagEditor::showEvent(QShowEvent *e)
// private slots // private slots
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void TagEditor::setDataChanged(bool c) void TagEditor::slotDataChanged(bool c)
{ {
m_dataChanged = c; m_dataChanged = c;
} }
......
...@@ -49,7 +49,7 @@ public slots: ...@@ -49,7 +49,7 @@ public slots:
void updateCollection(); void updateCollection();
signals: signals:
void changed(); // void signalChanged();
private: private:
void setupLayout(); void setupLayout();
...@@ -66,7 +66,7 @@ private: ...@@ -66,7 +66,7 @@ private:
virtual void showEvent(QShowEvent *e); virtual void showEvent(QShowEvent *e);
private slots: private slots:
void setDataChanged(bool c = true); void slotDataChanged(bool c = true);
private: private:
typedef QMap<QWidget *, QCheckBox *> BoxMap; 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