Commit 26db96be authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix build with removed code from libksieve without MR...

parent 2acd06b3
Pipeline #68519 passed with stage
in 4 minutes and 55 seconds
......@@ -342,17 +342,6 @@ void SieveEditorMainWidget::slotReplace()
}
}
void SieveEditorMainWidget::slotShareScript()
{
QWidget *w = mTabWidget->currentWidget();
if (w) {
auto page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
page->shareScript();
}
}
}
QString SieveEditorMainWidget::currentText() const
{
QWidget *w = mTabWidget->currentWidget();
......
......@@ -60,7 +60,6 @@ public Q_SLOTS:
void slotCut();
void slotSaveAs();
void slotCheckSpelling();
void slotShareScript();
void slotImport();
void slotCreateRulesGraphically();
void slotCheckSyntax();
......
......@@ -190,13 +190,6 @@ void SieveEditorMainWindow::setupActions()
mShareAction->setIcon(QIcon::fromTheme(QStringLiteral("document-share")));
purposeMenu->setEditorWidget(mMainWidget->sieveEditorMainWidget());
mShareHotNewStuffAction = new QAction(i18n("Share Script..."), this);
connect(mShareHotNewStuffAction, &QAction::triggered, mMainWidget->sieveEditorMainWidget(), &SieveEditorMainWidget::slotShareScript);
ac->addAction(QStringLiteral("share_hot_new_stuff_script"), mShareHotNewStuffAction);
const QStringList overlays = QStringList() << QStringLiteral("list-add");
mShareHotNewStuffAction->setIcon(QIcon(new KIconEngine(QStringLiteral("get-hot-new-stuff"), KIconLoader::global(), overlays)));
mShareHotNewStuffAction->setEnabled(false);
mSpellCheckAction = new QAction(i18n("Check Spelling..."), this);
connect(mSpellCheckAction, &QAction::triggered, mMainWidget->sieveEditorMainWidget(), &SieveEditorMainWidget::slotCheckSpelling);
ac->addAction(QStringLiteral("check_spelling"), mSpellCheckAction);
......@@ -371,7 +364,6 @@ void SieveEditorMainWindow::slotUpdateActions()
mImportAction->setEnabled(hasPage);
mShareAction->setEnabled(hasPage && !mNetworkIsDown);
mShareHotNewStuffAction->setEnabled(hasPage && !mNetworkIsDown);
mSpellCheckAction->setEnabled(editActionEnabled);
mCheckSyntaxAction->setEnabled(editActionEnabled && !mNetworkIsDown);
mCreateRulesGraphicallyAction->setEnabled(editActionEnabled);
......
......@@ -85,7 +85,6 @@ private:
QAction *mWrapTextAction = nullptr;
QAction *mPrintAction = nullptr;
QAction *mPrintPreviewAction = nullptr;
QAction *mShareHotNewStuffAction = nullptr;
PimCommon::KActionMenuChangeCase *mMenuChangeCaseAction = nullptr;
QLabel *mStatusBarInfo = nullptr;
......
......@@ -235,11 +235,6 @@ void SieveEditorPageWidget::replace()
mSieveEditorWidget->replace();
}
void SieveEditorPageWidget::shareScript()
{
mSieveEditorWidget->slotShareScript();
}
void SieveEditorPageWidget::import()
{
mSieveEditorWidget->slotImport();
......
......@@ -50,7 +50,6 @@ public:
void selectAll();
void saveAs();
void checkSpelling();
void shareScript();
void import();
void createRulesGraphically();
void checkSyntax();
......
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