Commit a1491f45 authored by Laurent Montel's avatar Laurent Montel 😁

Connect signal/slot

parent ac3b1b62
......@@ -48,6 +48,9 @@ RegexpEditorLineEdit::RegexpEditorLineEdit(QWidget *parent, const QList<QVariant
mRegExpEditorButton->setToolTip(i18n("Create Regular Expression"));
mainLayout->addWidget(mRegExpEditorButton);
mRegexEditorInstalled = !KServiceTypeTrader::self()->query(QStringLiteral("KRegExpEditor/KRegExpEditor")).isEmpty();
if (mRegexEditorInstalled) {
connect(mRegExpEditorButton, &QPushButton::clicked, this, &RegexpEditorLineEdit::slotOpenRegexpEditor);
}
//Hidden by default
mRegExpEditorButton->setVisible(false);
}
......@@ -56,6 +59,11 @@ RegexpEditorLineEdit::~RegexpEditorLineEdit()
{
}
void RegexpEditorLineEdit::slotOpenRegexpEditor()
{
//TODO
}
void RegexpEditorLineEdit::switchToRegexpEditorLineEdit(bool regexpEditor)
{
mIsRegExpMode = regexpEditor;
......
......@@ -34,7 +34,9 @@ public:
void switchToRegexpEditorLineEdit(bool regexpEditor) Q_DECL_OVERRIDE;
void setCode(const QString &str) Q_DECL_OVERRIDE;
QString code() const Q_DECL_OVERRIDE;
private:
void slotOpenRegexpEditor();
QLineEdit *mLineEdit;
QPushButton *mRegExpEditorButton;
bool mIsRegExpMode;
......
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