this, SLOT( changedTranslationsSelected( QListWidgetItem* ) ) );
connect( m_ui->m_selectTranslations, SIGNAL( movedDown( QListWidgetItem* ) ),
this, SLOT( changedTranslationsSelected( QListWidgetItem* ) ) );
- // User has clicked Install button, trigger distro specific install routine
- connect( m_ui->m_buttonTranslationsInstall, SIGNAL( clicked() ),
- this, SLOT( installTranslations() ) );
- // Hide the Install button, this will be activated by those distros that support this feature.
- m_ui->m_buttonTranslationsInstall->setHidden( true );
// User has clicked Default button, resest lists to Defaults
connect( m_ui->m_buttonDefaultTranslations, SIGNAL( clicked() ),
this, SLOT( defaultTranslations() ) );
//Translations tab
initTranslations();
- initTranslationsInstall();
initSettingsWidgets();
}
initAllWidgets();
}
-void KCMLocale::initTranslationsInstall()
-{
- m_ui->m_buttonTranslationsInstall->blockSignals( true );
- m_ui->m_buttonTranslationsInstall->setText( ki18n( "Install more languages" ).toString( m_kcmLocale ) );
- QString helpText = ki18n( "<p>Click here to install more languages</p>" ).toString( m_kcmLocale );
- m_ui->m_buttonTranslationsInstall->setToolTip( helpText );
- m_ui->m_buttonTranslationsInstall->setWhatsThis( helpText );
- m_ui->m_buttonTranslationsInstall->blockSignals( false );
-}
-
-void KCMLocale::installTranslations()
-{
- // User has clicked Install Languages button, trigger distro specific install routine
-}
-
void KCMLocale::initNumericDigitGrouping()
{
m_ui->m_comboNumericDigitGrouping->blockSignals( true );
void initTranslations();
void setTranslations( const QString &newValue );
- void initTranslationsInstall();
-
//Numeric tab
void initNumericDigitGrouping();
void changedTranslationsAvailable( QListWidgetItem * item );
void changedTranslationsSelected( QListWidgetItem * item );
- void installTranslations();
-
//Numeric tab
void defaultNumericDigitGrouping();
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
- <widget class="KPushButton" name="m_buttonTranslationsInstall">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>Install more languages</string>
- </property>
- </widget>
- </item>
- <item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<tabstop>m_buttonDefaultMeasureSystem</tabstop>
<tabstop>m_comboBinaryUnitDialect</tabstop>
<tabstop>m_buttonDefaultBinaryUnitDialect</tabstop>
- <tabstop>m_buttonTranslationsInstall</tabstop>
</tabstops>
<resources/>
<connections/>