Commit 05e4a0f0 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Use QPlainTextEdit instead KPimTextEdit

There's nothing that we need from KPimTextEdit that QPlainTextEdit
wouldn't already provide.
parent 77f29e1e
......@@ -23,7 +23,6 @@
#include "agentconfigdialog.h"
#include "akonadiconsole_debug.h"
#include "kpimtextedit/plaintexteditorwidget.h"
#include <AkonadiWidgets/agenttypedialog.h>
#include <AkonadiWidgets/agentinstancewidget.h>
#include <AkonadiCore/agentmanager.h>
......@@ -47,6 +46,7 @@
#include <KGuiItem>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QPlainTextEdit>
class TextDialog : public QDialog
{
......@@ -55,7 +55,7 @@ public:
: QDialog(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mText = new KPIMTextEdit::PlainTextEditorWidget(this);
mText = new QPlainTextEdit(this);
mText->setReadOnly(true);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok, this);
......@@ -76,7 +76,7 @@ public:
}
private:
KPIMTextEdit::PlainTextEditorWidget *mText = nullptr;
QPlainTextEdit *mText = nullptr;
};
using namespace Akonadi;
......
......@@ -73,7 +73,7 @@
<widget class="QWidget" name="layoutWidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="KPIMTextEdit::PlainTextEditorWidget" name="queryEdit"/>
<widget class="QPlainTextEdit" name="queryEdit"/>
</item>
<item>
<widget class="QPushButton" name="execButton">
......@@ -94,13 +94,6 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KPIMTextEdit::PlainTextEditorWidget</class>
<extends>QWidget</extends>
<header>kpimtextedit/plaintexteditorwidget.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
......@@ -29,7 +29,6 @@
#include <AkonadiCore/itemfetchscope.h>
#include <AkonadiCore/itemsearchjob.h>
#include <AkonadiCore/SearchQuery>
#include <kpimtextedit/plaintexteditorwidget.h>
#include <AkonadiSearch/Core/searchstore.h>
......@@ -38,6 +37,7 @@
#include <KComboBox>
#include <KMessageBox>
#include <QTextBrowser>
#include <QPlainTextEdit>
#include <KSharedConfig>
#include <KConfigGroup>
......@@ -72,7 +72,7 @@ SearchWidget::SearchWidget(QWidget *parent)
auto w = new QWidget;
QVBoxLayout *vbox = new QVBoxLayout(w);
vbox->addWidget(new QLabel(QStringLiteral("Search query:")));
mQueryWidget = new KPIMTextEdit::PlainTextEditorWidget;
mQueryWidget = new QPlainTextEdit;
vbox->addWidget(mQueryWidget);
mVSplitter->addWidget(w);
......
......@@ -33,10 +33,8 @@ class QModelIndex;
class QStandardItemModel;
class QTreeView;
class QSplitter;
namespace KPIMTextEdit
{
class PlainTextEditorWidget;
}
class QPlainTextEdit;
namespace Xapian {
class Database;
class Error;
......@@ -58,10 +56,10 @@ private Q_SLOTS:
private:
void xapianError(const Xapian::Error &e);
KComboBox *mStoreCombo = nullptr;
QTextBrowser *mItemView = nullptr;
KPIMTextEdit::PlainTextEditorWidget *mQueryWidget = nullptr;
QPlainTextEdit *mQueryWidget = nullptr;
QListView *mDatabaseView = nullptr;
QStandardItemModel *mDocumentModel = nullptr;
QTreeView *mDocumentView = nullptr;
......
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