Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Sieve Editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Sieve Editor
Commits
48b64ee6
Commit
48b64ee6
authored
Nov 02, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename page
parent
ebfbcfae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
src/sieveeditormainwidget.cpp
src/sieveeditormainwidget.cpp
+5
-5
src/sieveeditorpagewidget.cpp
src/sieveeditorpagewidget.cpp
+5
-0
src/sieveeditorpagewidget.h
src/sieveeditorpagewidget.h
+1
-0
No files found.
src/sieveeditormainwidget.cpp
View file @
48b64ee6
...
...
@@ -110,14 +110,14 @@ void SieveEditorMainWidget::slotScriptDeleted(const QUrl &url)
void
SieveEditorMainWidget
::
slotScriptRenamed
(
const
QUrl
&
oldUrl
,
const
QUrl
&
newUrl
)
{
/*
QWidget *page = hasExistingPage(url);
QWidget
*
page
=
hasExistingPage
(
oldUrl
);
if
(
page
)
{
mTabWidget->removeTab(mTabWidget->indexOf(page));
delete page;
if
(
SieveEditorPageWidget
*
editor
=
qobject_cast
<
SieveEditorPageWidget
*>
(
page
))
{
editor
->
setCurrentUrl
(
newUrl
);
mTabWidget
->
setTabText
(
mTabWidget
->
indexOf
(
page
),
newUrl
.
fileName
());
}
}
updateStackedWidget
();
*/
}
void
SieveEditorMainWidget
::
slotCreateScriptPage
(
const
QUrl
&
url
,
const
QStringList
&
capabilities
,
bool
isNewScript
)
...
...
src/sieveeditorpagewidget.cpp
View file @
48b64ee6
...
...
@@ -108,6 +108,11 @@ QUrl SieveEditorPageWidget::currentUrl() const
return
mCurrentURL
;
}
void
SieveEditorPageWidget
::
setCurrentUrl
(
const
QUrl
&
url
)
{
mCurrentURL
=
url
;
}
void
SieveEditorPageWidget
::
slotGetResult
(
KManageSieve
::
SieveJob
*
,
bool
success
,
const
QString
&
script
,
bool
isActive
)
{
mSieveEditorWidget
->
setReadOnly
(
false
);
...
...
src/sieveeditorpagewidget.h
View file @
48b64ee6
...
...
@@ -40,6 +40,7 @@ public:
void
loadScript
(
const
QUrl
&
url
,
const
QStringList
&
capabilities
);
QUrl
currentUrl
()
const
;
void
setCurrentUrl
(
const
QUrl
&
url
);
void
setIsNewScript
(
bool
isNewScript
);
void
uploadScript
(
bool
showInformation
=
true
,
bool
forceSave
=
false
);
bool
needToSaveScript
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment