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

Get bookmark url

parent f07f985f
......@@ -519,12 +519,24 @@ KSieveUi::SieveEditorWidget::EditorMode SieveEditorMainWidget::pageMode() const
QString SieveEditorMainWidget::currentHelpTitle() const
{
//TODO
QWidget *w = mTabWidget->currentWidget();
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
return page->currentHelpTitle();
}
}
return QString();
}
QUrl SieveEditorMainWidget::currentHelpUrl() const
{
//TODO
QWidget *w = mTabWidget->currentWidget();
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
return page->currentHelpUrl();
}
}
return QUrl();
}
......@@ -302,3 +302,13 @@ void SieveEditorPageWidget::zoomOut()
{
mSieveEditorWidget->zoomOut();
}
QString SieveEditorPageWidget::currentHelpTitle() const
{
return mSieveEditorWidget->currentHelpTitle();
}
QUrl SieveEditorPageWidget::currentHelpUrl() const
{
return mSieveEditorWidget->currentHelpUrl();
}
......@@ -75,6 +75,8 @@ public:
void reverseCase();
void zoomIn();
void zoomOut();
QString currentHelpTitle() const;
QUrl currentHelpUrl() const;
Q_SIGNALS:
void refreshList();
void scriptModified(bool, SieveEditorPageWidget *);
......
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