3b73654a | 2014-11-19 22:35:11 | Michele Calgaro |
Fixed help handbook sections for Sound & Multimedia -> Sound System. This relates to bug 1850. |
||
M kcontrol/arts/arts.cpp M kcontrol/arts/arts.h |
||
diff --git a/kcontrol/arts/arts.cpp b/kcontrol/arts/arts.cpp index 02e8af0..388776b 100644 --- a/kcontrol/arts/arts.cpp +++ b/kcontrol/arts/arts.cpp @@ -152,7 +152,7 @@ initAudioIOList(); TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialog::spacingHint()); - TQTabWidget *tab = new TQTabWidget(this); + tab = new TQTabWidget(this); layout->addWidget(tab); general = new generalTab(tab); @@ -412,6 +412,17 @@ emit changed( false ); } +TQString KArtsModule::handbookSection() const +{ + int index = tab->currentPageIndex(); + if (index == 0) + return "sndserver-general"; + else if (index == 1) + return "sndserver-soundio"; + else + return TQString::null; +} + int KArtsModule::userSavedChanges() { int reply; diff --git a/kcontrol/arts/arts.h b/kcontrol/arts/arts.h index 6306b24..5eebd4b 100644 --- a/kcontrol/arts/arts.h +++ b/kcontrol/arts/arts.h @@ -60,7 +60,8 @@ void load( bool useDefaults ); void save(); void defaults(); - + virtual TQString handbookSection() const; + bool artsdIsRunning(); private slots: @@ -88,6 +89,7 @@ TQLineEdit *deviceName; TQSpinBox *samplingRate; KIntNumInput *suspendTime; + TQTabWidget *tab; generalTab *general; hardwareTab *hardware; TDEConfig *config; |