OSDN Git Service

kcontrol: remove unused widget in locale module
authorIvailo Monev <xakepa10@gmail.com>
Sun, 27 Jun 2021 11:32:11 +0000 (14:32 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 27 Jun 2021 11:32:11 +0000 (14:32 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kcontrol/locale/kcmlocale.cpp
kcontrol/locale/kcmlocale.h
kcontrol/locale/kcmlocalewidget.ui

index 7ddeb2f..f38487b 100644 (file)
@@ -92,11 +92,6 @@ KCMLocale::KCMLocale( QWidget *parent, const QVariantList &args )
              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() ) );
@@ -687,7 +682,6 @@ void KCMLocale::initAllWidgets()
 
     //Translations tab
     initTranslations();
-    initTranslationsInstall();
 
     initSettingsWidgets();
 }
@@ -1279,21 +1273,6 @@ void KCMLocale::setTranslations( const QString &newValue )
     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 );
index f8d2e41..4047363 100644 (file)
@@ -163,8 +163,6 @@ private:
     void initTranslations();
     void setTranslations( const QString &newValue );
 
-    void initTranslationsInstall();
-
     //Numeric tab
 
     void initNumericDigitGrouping();
@@ -293,8 +291,6 @@ private Q_SLOTS:
     void changedTranslationsAvailable( QListWidgetItem * item );
     void changedTranslationsSelected( QListWidgetItem * item );
 
-    void installTranslations();
-
     //Numeric tab
 
     void defaultNumericDigitGrouping();
index bba9074..759415b 100644 (file)
        <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/>