Commit e2c76d6c authored by Yuri Chornoivan's avatar Yuri Chornoivan

Port away from deprecated KInputDialog, KIntSpinBox, and KIntNumInput

parent df4d29d1
......@@ -24,7 +24,7 @@
#include <QClipboard>
#include <KConfigGroup>
#include <KInputDialog>
#include <QInputDialog>
#include <KLocalizedString>
#include <KMessageBox>
#include <KUrl>
......@@ -84,8 +84,8 @@ namespace kt
bool ok = false;
QClipboard* clipboard = QApplication::clipboard();
QString text = KInputDialog::getText(
i18n("Add Tracker"),i18n("Enter the URL of the tracker:"),clipboard->text(),&ok,this);
QString text = QInputDialog::getText(
this, i18n("Add Tracker"), i18n("Enter the URL of the tracker:"), QLineEdit::Normal, clipboard->text(), &ok);
if (!ok)
return;
......
......@@ -24,7 +24,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="KIntSpinBox" name="numSimultanousFiles">
<widget class="QSpinBox" name="numSimultanousFiles">
<property name="minimum">
<number>1</number>
</property>
......@@ -41,7 +41,7 @@
</widget>
</item>
<item row="1" column="1">
<widget class="KIntSpinBox" name="kcfg_MirrorsPerFile">
<widget class="QSpinBox" name="kcfg_MirrorsPerFile">
<property name="minimum">
<number>1</number>
</property>
......@@ -58,7 +58,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KIntSpinBox" name="kcfg_ConnectionsPerUrl">
<widget class="QSpinBox" name="kcfg_ConnectionsPerUrl">
<property name="minimum">
<number>1</number>
</property>
......@@ -71,13 +71,6 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KIntSpinBox</class>
<extends>QSpinBox</extends>
<header>knuminput.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
......@@ -23,7 +23,6 @@
#include <QSortFilterProxyModel>
#include <KInputDialog>
#include <KLocalizedString>
FileSelectionDlg::FileSelectionDlg(FileModel *model, QWidget *parent)
......
......@@ -55,7 +55,7 @@
</widget>
</item>
<item row="2" column="1">
<widget class="KIntNumInput" name="priority">
<widget class="QSpinBox" name="priority">
<property name="toolTip">
<string>Optional: The priority of the mirror, 1 highest 999999 lowest.</string>
</property>
......@@ -108,11 +108,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
<extends>QWidget</extends>
<header>knuminput.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
......
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