Commit c390d777 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove KComboBox/KLineEdit usage

parent be8662ba
......@@ -70,7 +70,7 @@ endif()
set(KDEPIM_APPS_LIB_VERSION_LIB "5.14.40")
set(PIMCOMMON_LIB_VERSION_LIB "5.14.40")
set(LIBKDEPIM_LIB_VERSION_LIB "5.14.40")
set(LIBKDEPIM_LIB_VERSION_LIB "5.14.41")
set(LIBINCIDENCEEDITOR_LIB_VERSION_LIB "5.14.40")
set(CALENDARSUPPORT_LIB_VERSION_LIB "5.14.41")
set(EVENTVIEW_LIB_VERSION_LIB "5.14.40")
......@@ -80,7 +80,6 @@ set_package_properties(KF5AkonadiSearch PROPERTIES DESCRIPTION "The Akonadi Sear
# Find KF5 package
find_package(KF5Codecs ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Completion ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5Config ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5ConfigWidgets ${KF5_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5CoreAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
......
......@@ -70,7 +70,6 @@ target_link_libraries(korgac
KF5::DBusAddons
Phonon::phonon4qt5
KF5::Notifications
KF5::Completion
KF5::IconThemes
KF5::Service
KF5::KIOCore
......
......@@ -47,7 +47,6 @@
#include <MailTransport/TransportManager>
#include <KComboBox>
#include <KConfigGroup>
#include <KIconLoader>
#include <KLocalizedString>
......@@ -59,6 +58,7 @@
#include <QDialogButtonBox>
#include <QHeaderView>
#include <QComboBox>
#include <QKeyEvent>
#include <QLabel>
#include <QPushButton>
......@@ -297,7 +297,7 @@ AlarmDialog::AlarmDialog(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *par
l->setBuddy(mSuspendSpin);
mSuspendUnit = new KComboBox(suspendBox);
mSuspendUnit = new QComboBox(suspendBox);
suspendBoxHBoxLayout->addWidget(mSuspendUnit);
mSuspendUnit->addItem(i18nc("@item:inlistbox suspend in terms of minutes", "minute(s)"));
mSuspendUnit->addItem(i18nc("@item:inlistbox suspend in terms of hours", "hour(s)"));
......
......@@ -43,7 +43,7 @@ namespace CalendarSupport {
class IncidenceViewer;
}
class KComboBox;
class QComboBox;
class QSpinBox;
class QTreeWidget;
......@@ -145,7 +145,7 @@ private:
QRect mRect;
QSpinBox *mSuspendSpin = nullptr;
KComboBox *mSuspendUnit = nullptr;
QComboBox *mSuspendUnit = nullptr;
QTimer mSuspendTimer;
QTreeWidgetItem *mLastItem = nullptr;
QPushButton *mUser1Button = nullptr;
......
......@@ -30,6 +30,7 @@
#include <KCalendarCore/CalFilter>
#include <LibkdepimAkonadi/TagWidgets>
#include <Libkdepim/LineEditCatchReturnKey>
#include <PimCommon/PimUtil>
......@@ -97,6 +98,7 @@ FilterEdit::FilterEdit(QList<KCalendarCore::CalFilter *> *filters, QWidget *pare
{
setupUi(this);
searchline->setListWidget(mRulesList);
new KPIM::LineEditCatchReturnKey(mNameLineEdit, this);
mDetailsFrame->setEnabled(false);
mFilters = filters;
mNewButton->setWhatsThis(
......
......@@ -110,10 +110,7 @@
</widget>
</item>
<item>
<widget class="KLineEdit" name="mNameLineEdit">
<property name="trapEnterKeyEvent" stdset="0">
<bool>true</bool>
</property>
<widget class="QLineEdit" name="mNameLineEdit">
</widget>
</item>
</layout>
......@@ -333,11 +330,6 @@ Only to-dos which have least one attendee will be checked. If you are not in th
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KListWidgetSearchLine</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