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 Data Exporter
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
0
Merge Requests
0
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 Data Exporter
Commits
5f045949
Commit
5f045949
authored
Sep 11, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of kaboutdata and i18n in test apps
parent
c65a9d7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
gui/tests/selectiontreewidget_gui.cpp
gui/tests/selectiontreewidget_gui.cpp
+0
-6
gui/tests/showarchivestructuredialog_gui.cpp
gui/tests/showarchivestructuredialog_gui.cpp
+0
-6
No files found.
gui/tests/selectiontreewidget_gui.cpp
View file @
5f045949
...
...
@@ -21,7 +21,6 @@
#include <KLocalizedString>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QStandardPaths>
...
...
@@ -29,15 +28,10 @@ int main(int argc, char **argv)
{
QApplication
app
(
argc
,
argv
);
QStandardPaths
::
setTestModeEnabled
(
true
);
KAboutData
aboutData
(
QStringLiteral
(
"selectiontypedialog_gui"
),
i18n
(
"SelectionTypeTest_Gui"
),
QStringLiteral
(
"1.0"
));
aboutData
.
setShortDescription
(
i18n
(
"Test for selectiontypedialog"
));
QCommandLineParser
parser
;
KAboutData
::
setApplicationData
(
aboutData
);
parser
.
addVersionOption
();
parser
.
addHelpOption
();
aboutData
.
setupCommandLine
(
&
parser
);
parser
.
process
(
app
);
aboutData
.
processCommandLine
(
&
parser
);
SelectionTypeDialog
*
dialog
=
new
SelectionTypeDialog
;
dialog
->
resize
(
800
,
600
);
...
...
gui/tests/showarchivestructuredialog_gui.cpp
View file @
5f045949
...
...
@@ -22,7 +22,6 @@
#include <KLocalizedString>
#include <QFileDialog>
#include <QApplication>
#include <KAboutData>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QStandardPaths>
...
...
@@ -31,16 +30,11 @@ int main(int argc, char **argv)
{
QApplication
app
(
argc
,
argv
);
QStandardPaths
::
setTestModeEnabled
(
true
);
KAboutData
aboutData
(
QStringLiteral
(
"showarchivestructuredialog_gui"
),
i18n
(
"showarchivestructuredialog_Gui"
),
QStringLiteral
(
"1.0"
));
aboutData
.
setShortDescription
(
i18n
(
"Test for showarchivestructuredialog"
));
QCommandLineParser
parser
;
KAboutData
::
setApplicationData
(
aboutData
);
parser
.
addVersionOption
();
parser
.
addHelpOption
();
parser
.
addOption
(
QCommandLineOption
(
QStringList
()
<<
QStringLiteral
(
"+[url]"
),
i18n
(
"URL of a archive to open"
)));
aboutData
.
setupCommandLine
(
&
parser
);
parser
.
process
(
app
);
aboutData
.
processCommandLine
(
&
parser
);
QString
fileName
;
if
(
parser
.
positionalArguments
().
count
())
{
...
...
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