Commit d49a0b79 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

src/config: port KComboBox to QComboBox

parent aea8700e
......@@ -34,7 +34,7 @@ Autoreplace_Config::Autoreplace_Config(QWidget* parent, const char* name)
connect(patternListView, &QTreeWidget::currentItemChanged, this, &Autoreplace_Config::entrySelected);
connect(directionCombo, QOverload<int>::of(&KComboBox::activated), this, &Autoreplace_Config::directionChanged);
connect(directionCombo, QOverload<int>::of(&QComboBox::activated), this, &Autoreplace_Config::directionChanged);
connect(patternInput, &KLineEdit::textChanged, this, &Autoreplace_Config::patternChanged);
connect(replacementInput, &KLineEdit::textChanged, this, &Autoreplace_Config::replacementChanged);
......
......@@ -131,7 +131,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KComboBox" name="directionCombo">
<widget class="QComboBox" name="directionCombo">
<property name="enabled">
<bool>false</bool>
</property>
......@@ -212,11 +212,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
......
......@@ -50,7 +50,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
</item>
<item row="0" column="1">
<widget class="KComboBox" name="kcfg_TimestampFormat">
<widget class="QComboBox" name="kcfg_TimestampFormat">
<property name="editable">
<bool>true</bool>
</property>
......@@ -298,11 +298,6 @@ the Free Software Foundation; either version 2 of the License, or
<header>kurlrequester.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>kcfg_Timestamping</tabstop>
......
......@@ -140,7 +140,7 @@
</widget>
</item>
<item>
<widget class="KComboBox" name="kcfg_HideUnimportantEventsExcludeActiveThreshold">
<widget class="QComboBox" name="kcfg_HideUnimportantEventsExcludeActiveThreshold">
<property name="enabled">
<bool>false</bool>
</property>
......@@ -350,11 +350,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KPluralHandlingSpinBox</class>
<extends>QSpinBox</extends>
......
......@@ -111,7 +111,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
</item>
<item row="0" column="1">
<widget class="KComboBox" name="kcfg_EncryptionType">
<widget class="QComboBox" name="kcfg_EncryptionType">
<property name="whatsThis">
<string>ECB or Electronic Codebook mode is supported by many encryption clients like FiSH and Mircryption however it is generally considered to be insecure.
......@@ -152,7 +152,7 @@ CBC or Cipher Block Chaining mode is not supported by FiSH but is supported by M
</widget>
</item>
<item row="0" column="1">
<widget class="KComboBox" name="kcfg_ProxyType">
<widget class="QComboBox" name="kcfg_ProxyType">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
......@@ -257,11 +257,6 @@ CBC or Cipher Block Chaining mode is not supported by FiSH but is supported by M
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KPluralHandlingSpinBox</class>
<extends>QSpinBox</extends>
......
......@@ -24,7 +24,7 @@ DCC_Config::DCC_Config(QWidget *parent, const char* name) :
kcfg_DccPath->setMode(KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
languageChange();
connect(kcfg_DccMethodToGetOwnIp, QOverload<int>::of(&KComboBox::activated), this, &DCC_Config::dccMethodChanged);
connect(kcfg_DccMethodToGetOwnIp, QOverload<int>::of(&QComboBox::activated), this, &DCC_Config::dccMethodChanged);
connect(kcfg_DccUPnP, &QCheckBox::stateChanged, this, &DCC_Config::dccUPnPChanged);
dccMethodChanged(kcfg_DccMethodToGetOwnIp->currentIndex());
kcfg_DccBufferSize->setSuffix(ki18np(" byte", " bytes"));
......
......@@ -129,7 +129,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
</item>
<item>
<widget class="KComboBox" name="kcfg_DccIPv4FallbackIface">
<widget class="QComboBox" name="kcfg_DccIPv4FallbackIface">
<property name="enabled">
<bool>false</bool>
</property>
......@@ -221,7 +221,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
</item>
<item row="0" column="1">
<widget class="KComboBox" name="kcfg_DccMethodToGetOwnIp"/>
<widget class="QComboBox" name="kcfg_DccMethodToGetOwnIp"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="ownIP">
......@@ -389,11 +389,6 @@ the Free Software Foundation; either version 2 of the License, or
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
......
......@@ -99,7 +99,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
</item>
<item row="0" column="1">
<widget class="KComboBox" name="kcfg_NickCompletionMode">
<widget class="QComboBox" name="kcfg_NickCompletionMode">
<item>
<property name="text">
<string>Inline Cycle</string>
......@@ -291,11 +291,6 @@ the Free Software Foundation; either version 2 of the License, or
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>kcfg_ShowTrayIcon</tabstop>
......
......@@ -13,7 +13,6 @@
#include "osd.h"
#include "application.h"
#include <KComboBox>
#include <KColorButton>
#include <QCheckBox>
#include <QScreen>
......@@ -61,7 +60,7 @@ OSD_Config::OSD_Config( QWidget* parent, const char* name, Qt::WindowFlags fl )
connect(kcfg_OSDUseCustomColors, &QGroupBox::toggled, this, &OSD_Config::slotCustomColorsChanged);
connect(kcfg_OSDTextColor, &KColorButton::changed, this, &OSD_Config::slotTextColorChanged);
connect(kcfg_OSDBackgroundColor, &KColorButton::changed, this, &OSD_Config::slotBackgroundColorChanged);
connect(kcfg_OSDScreen, QOverload<int>::of(&KComboBox::activated), this, &OSD_Config::slotScreenChanged);
connect(kcfg_OSDScreen, QOverload<int>::of(&QComboBox::activated), this, &OSD_Config::slotScreenChanged);
connect(kcfg_OSDDrawShadow, &QCheckBox::toggled, this, &OSD_Config::slotDrawShadowChanged);
}
......
......@@ -276,7 +276,7 @@
</widget>
</item>
<item row="1" column="1" >
<widget class="KComboBox" name="kcfg_OSDScreen" />
<widget class="QComboBox" name="kcfg_OSDScreen" />
</item>
</layout>
</widget>
......@@ -289,11 +289,6 @@
<extends>QPushButton</extends>
<header>kcolorbutton.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KFontRequester</class>
<extends>QWidget</extends>
......
......@@ -13,7 +13,7 @@ Tabs_Config::Tabs_Config(QWidget *parent, const char *name)
setObjectName(QString::fromLatin1(name));
setupUi(this);
connect(kcfg_TabPlacement, QOverload<int>::of(&KComboBox::activated), this, &Tabs_Config::toggleCheckBoxes);
connect(kcfg_TabPlacement, QOverload<int>::of(&QComboBox::activated), this, &Tabs_Config::toggleCheckBoxes);
}
Tabs_Config::~Tabs_Config()
......
......@@ -39,7 +39,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
</item>
<item>
<widget class="KComboBox" name="kcfg_TabPlacement" >
<widget class="QComboBox" name="kcfg_TabPlacement" >
<item>
<property name="text" >
<string>Top</string>
......@@ -149,13 +149,6 @@ the Free Software Foundation; either version 2 of the License, or
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
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