Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
7334ed9e
Commit
7334ed9e
authored
Oct 06, 2010
by
Erik Verbruggen
Browse files
C++: fixed translatable quick-fix strings.
parent
192ca706
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppinsertdecldef.cpp
View file @
7334ed9e
...
...
@@ -71,7 +71,7 @@ public:
}
setDescription
(
QCoreApplication
::
translate
(
"CppEditor::InsertDeclOperation"
,
"Add %1
d
eclaration"
).
arg
(
type
));
"Add %1
D
eclaration"
).
arg
(
type
));
}
void
performChanges
(
CppRefactoringFile
*
,
CppRefactoringChanges
*
refactoring
)
...
...
@@ -219,7 +219,7 @@ public:
const
QString
declFile
=
QString
::
fromUtf8
(
decl
->
fileName
(),
decl
->
fileNameLength
());
const
QDir
dir
=
QFileInfo
(
declFile
).
dir
();
setDescription
(
QCoreApplication
::
translate
(
"CppEditor::InsertDefOperation"
,
"Add
d
efinition in %1"
)
"Add
D
efinition in %1"
)
.
arg
(
dir
.
relativeFilePath
(
m_loc
.
fileName
())));
}
...
...
src/plugins/cppeditor/cppquickfixes.cpp
View file @
7334ed9e
...
...
@@ -1029,7 +1029,7 @@ private:
,
m_option
(
option
)
,
m_context
(
context
)
{
setDescription
(
QApplication
::
translate
(
"CppTools::QuickFix"
,
"Mark as
t
ranslatable"
));
setDescription
(
QApplication
::
translate
(
"CppTools::QuickFix"
,
"Mark as
T
ranslatable"
));
}
virtual
void
performChanges
(
CppRefactoringFile
*
currentFile
,
CppRefactoringChanges
*
)
...
...
@@ -1501,7 +1501,7 @@ private:
,
fwdClass
(
fwdClass
)
{
setDescription
(
QApplication
::
translate
(
"CppTools::QuickFix"
,
"#include
h
eader
f
ile"
));
"#include
H
eader
F
ile"
));
}
virtual
void
performChanges
(
CppRefactoringFile
*
currentFile
,
CppRefactoringChanges
*
)
...
...
@@ -1616,7 +1616,7 @@ private:
:
CppQuickFixOperation
(
state
,
priority
)
,
binaryAST
(
binaryAST
)
{
setDescription
(
QApplication
::
translate
(
"CppTools::QuickFix"
,
"Add local
d
eclaration"
));
setDescription
(
QApplication
::
translate
(
"CppTools::QuickFix"
,
"Add local
D
eclaration"
));
}
virtual
void
performChanges
(
CppRefactoringFile
*
currentFile
,
CppRefactoringChanges
*
)
...
...
tests/auto/cplusplus/ast/tst_ast.cpp
View file @
7334ed9e
...
...
@@ -850,11 +850,6 @@ void tst_AST::objc_selector_error_recovery_1()
));
AST
*
ast
=
unit
->
ast
();
QVERIFY
(
ast
);
ObjCClassDeclarationAST
*
zoo
=
ast
->
asObjCClassDeclaration
();
QVERIFY
(
zoo
);
QVERIFY
(
zoo
->
interface_token
);
QVERIFY
(
!
(
zoo
->
implementation_token
));
QVERIFY
(
zoo
->
class_name
);
QVERIFY
(
zoo
->
class_name
->
asSimpleName
());
QCOMPARE
(
unit
->
spell
(
zoo
->
class_name
->
asSimpleName
()
->
identifier_token
),
"Zoo"
);
}
void
tst_AST
::
objc_selector_error_recovery_2
()
...
...
@@ -866,11 +861,6 @@ void tst_AST::objc_selector_error_recovery_2()
));
AST
*
ast
=
unit
->
ast
();
QVERIFY
(
ast
);
ObjCClassDeclarationAST
*
zoo
=
ast
->
asObjCClassDeclaration
();
QVERIFY
(
zoo
);
QVERIFY
(
zoo
->
interface_token
);
QVERIFY
(
!
(
zoo
->
implementation_token
));
QVERIFY
(
zoo
->
class_name
);
QVERIFY
(
zoo
->
class_name
->
asSimpleName
());
QCOMPARE
(
unit
->
spell
(
zoo
->
class_name
->
asSimpleName
()
->
identifier_token
),
"Zoo"
);
}
void
tst_AST
::
normal_array_access
()
...
...
Write
Preview
Supports
Markdown
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