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
K
KDE PIM Add-ons
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
KDE PIM Add-ons
Commits
5f7eaaf3
Commit
5f7eaaf3
authored
May 22, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement test apps
parent
c8c93db9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
sieveeditor/regexeditorlineedit/tests/CMakeLists.txt
sieveeditor/regexeditorlineedit/tests/CMakeLists.txt
+1
-0
sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp
sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp
+10
-2
sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h
sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h
+3
-2
No files found.
sieveeditor/regexeditorlineedit/tests/CMakeLists.txt
View file @
5f7eaaf3
set
(
sieveeditor_regexpeditor_SRCS
main.cpp
regexpeditorwidget.cpp
../regexpeditorlineedit.cpp
)
add_executable
(
sieveeditorregexpeditor_gui
${
sieveeditor_regexpeditor_SRCS
}
)
...
...
sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.cpp
View file @
5f7eaaf3
...
...
@@ -18,11 +18,19 @@
*/
#include "regexpeditorwidget.h"
#include <QHBoxLayout>
#include "../regexpeditorlineedit.h"
#include <QVBoxLayout>
#include <QVariant>
#include <QCheckBox>
RegExpEditorWidget
::
RegExpEditorWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
QVBoxLayout
*
layout
=
new
QVBoxLayout
(
this
);
QCheckBox
*
switchToRegexp
=
new
QCheckBox
(
QStringLiteral
(
"Switch to regexp line edit"
),
this
);
layout
->
addWidget
(
switchToRegexp
);
mLineEdit
=
new
RegexpEditorLineEdit
(
this
);
connect
(
switchToRegexp
,
&
QCheckBox
::
toggled
,
mLineEdit
,
&
RegexpEditorLineEdit
::
switchToRegexpEditorLineEdit
);
layout
->
addWidget
(
mLineEdit
);
}
sieveeditor/regexeditorlineedit/tests/regexpeditorwidget.h
View file @
5f7eaaf3
...
...
@@ -21,14 +21,15 @@
#define REGEXPEDITORWIDGET_H
#include <QWidget>
class
RegexpEditorLineEdit
;
class
RegExpEditorWidget
:
public
QWidget
{
Q_OBJECT
public:
explicit
RegExpEditorWidget
(
QWidget
*
parent
=
nullptr
);
~
RegExpEditorWidget
()
=
default
;
private:
RegexpEditorLineEdit
*
mLineEdit
;
};
#endif // REGEXPEDITORWIDGET_H
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