Help developing the Equalizer - new developer
Seb Ruiz
me at sebruiz.net
Wed Jul 4 23:21:35 UTC 2007
On 05/07/07, Fabian Korak <fabiank22 at yahoo.de> wrote:
> void EqualizerSetup::adaptableEqualizer():EngineObserver()
> {
> EngineObserver *observer = new EngineObserver();
> EngineSubject::attach( EngineObserver *observer );
> QString MetaBundle::exactText( int column, bool ensureCached );
> if (column = m_presets[title]) {
> setPreset(column);
> } else {
> setPreset(i18n("Zero"));
> }
> }
Only an object can derive from another object, not a method. So, you
will want to make the Equalizer object inherit from EngineObserver,
not the actual method.
Then, in the constructor of the Equalizer, create a connect between
the signals in EngineObserver to the new slots you created.
Seb
--
http://www.sebruiz.net/
More information about the Amarok
mailing list