Commit b135370c authored by Stefan Brüns's avatar Stefan Brüns

Replace KLineEdit with QLineEdit

The password field uses none of the KLineEdit features like completion,
so QLineEdit suffices.
parent b5adcd23
...@@ -29,7 +29,6 @@ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core DBus Widgets X11Extr ...@@ -29,7 +29,6 @@ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core DBus Widgets X11Extr
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
I18n I18n
Completion
Config Config
CoreAddons CoreAddons
Crash Crash
......
...@@ -93,7 +93,6 @@ target_link_libraries (krfb ...@@ -93,7 +93,6 @@ target_link_libraries (krfb
${X11_X11_LIB} ${X11_X11_LIB}
${X11_Xdamage_LIB} ${X11_Xdamage_LIB}
Qt5::Network Qt5::Network
KF5::Completion
KF5::CoreAddons KF5::CoreAddons
KF5::DBusAddons KF5::DBusAddons
KF5::DNSSD KF5::DNSSD
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <KMessageWidget> #include <KMessageWidget>
#include <KStandardAction> #include <KStandardAction>
#include <KActionCollection> #include <KActionCollection>
#include <KLineEdit>
#include <KNewPasswordDialog> #include <KNewPasswordDialog>
#include <KPluginLoader> #include <KPluginLoader>
#include <KPluginMetaData> #include <KPluginMetaData>
...@@ -107,7 +106,7 @@ MainWindow::MainWindow(QWidget *parent) ...@@ -107,7 +106,7 @@ MainWindow::MainWindow(QWidget *parent)
setAttribute(Qt::WA_DeleteOnClose, false); setAttribute(Qt::WA_DeleteOnClose, false);
m_passwordEditable = false; m_passwordEditable = false;
m_passwordLineEdit = new KLineEdit(this); m_passwordLineEdit = new QLineEdit(this);
m_passwordLineEdit->setVisible(false); m_passwordLineEdit->setVisible(false);
m_passwordLineEdit->setAlignment(Qt::AlignHCenter); m_passwordLineEdit->setAlignment(Qt::AlignHCenter);
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <KXmlGuiWindow> #include <KXmlGuiWindow>
class KLineEdit; class QLineEdit;
class MainWindow : public KXmlGuiWindow class MainWindow : public KXmlGuiWindow
{ {
...@@ -43,7 +43,7 @@ class MainWindow : public KXmlGuiWindow ...@@ -43,7 +43,7 @@ class MainWindow : public KXmlGuiWindow
private: private:
Ui::MainWidget m_ui; Ui::MainWidget m_ui;
bool m_passwordEditable; bool m_passwordEditable;
KLineEdit *m_passwordLineEdit; QLineEdit *m_passwordLineEdit;
}; };
#endif #endif
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