Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
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
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Marco Bubke
flatpak-qt-creator
Commits
1ccde24c
Commit
1ccde24c
authored
Jun 11, 2012
by
Eike Ziller
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/2.5'
parents
929bc18a
a66e344b
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
35 additions
and
51 deletions
+35
-51
src/libs/3rdparty/cplusplus/Bind.cpp
src/libs/3rdparty/cplusplus/Bind.cpp
+21
-14
src/libs/3rdparty/cplusplus/Bind.h
src/libs/3rdparty/cplusplus/Bind.h
+2
-0
src/plugins/mercurial/mercurialplugin.cpp
src/plugins/mercurial/mercurialplugin.cpp
+4
-4
tests/system/objects.map
tests/system/objects.map
+0
-2
tests/system/shared/project.py
tests/system/shared/project.py
+3
-1
tests/system/shared/workarounds.py
tests/system/shared/workarounds.py
+4
-1
tests/system/suite_debugger/suite.conf
tests/system/suite_debugger/suite.conf
+1
-1
tests/system/suite_general/shared/testdata/creator_tree.tsv
tests/system/suite_general/shared/testdata/creator_tree.tsv
+0
-1
tests/system/suite_general/shared/testdata/qt_tree.tsv
tests/system/suite_general/shared/testdata/qt_tree.tsv
+0
-3
tests/system/suite_general/shared/testdata/speedcrunch_tree.tsv
...system/suite_general/shared/testdata/speedcrunch_tree.tsv
+0
-1
tests/system/suite_general/tst_build_speedcrunch/test.py
tests/system/suite_general/tst_build_speedcrunch/test.py
+0
-6
tests/system/suite_general/tst_cmake_speedcrunch/test.py
tests/system/suite_general/tst_cmake_speedcrunch/test.py
+0
-6
tests/system/suite_general/tst_openqt_creator/test.py
tests/system/suite_general/tst_openqt_creator/test.py
+0
-11
No files found.
src/libs/3rdparty/cplusplus/Bind.cpp
View file @
1ccde24c
...
...
@@ -1851,6 +1851,8 @@ bool Bind::visit(SimpleDeclarationAST *ast)
name
=
elabTypeSpec
->
name
->
name
;
}
ensureValidClassName
(
&
name
,
sourceLocation
);
ForwardClassDeclaration
*
decl
=
control
()
->
newForwardClassDeclaration
(
sourceLocation
,
name
);
setDeclSpecifiers
(
decl
,
type
);
_scope
->
addMember
(
decl
);
...
...
@@ -2894,20 +2896,7 @@ bool Bind::visit(ClassSpecifierAST *ast)
}
}
// get the unqualified class name
const
QualifiedNameId
*
q
=
className
->
asQualifiedNameId
();
const
Name
*
unqualifiedClassName
=
q
?
q
->
name
()
:
className
;
if
(
!
unqualifiedClassName
)
// paranoia check
className
=
0
;
else
if
(
!
(
unqualifiedClassName
->
isNameId
()
||
unqualifiedClassName
->
isTemplateNameId
()))
{
translationUnit
()
->
error
(
sourceLocation
,
"expected a class-name"
);
className
=
unqualifiedClassName
->
identifier
();
if
(
q
&&
className
)
className
=
control
()
->
qualifiedNameId
(
q
->
base
(),
className
);
}
ensureValidClassName
(
&
className
,
sourceLocation
);
}
Class
*
klass
=
control
()
->
newClass
(
sourceLocation
,
className
);
...
...
@@ -3136,6 +3125,24 @@ bool Bind::visit(ArrayDeclaratorAST *ast)
return
false
;
}
void
Bind
::
ensureValidClassName
(
const
Name
**
name
,
unsigned
sourceLocation
)
{
if
(
!*
name
)
return
;
const
QualifiedNameId
*
qName
=
(
*
name
)
->
asQualifiedNameId
();
if
(
qName
)
*
name
=
qName
->
name
();
if
(
!
(
*
name
)
->
isNameId
()
&&
!
(
*
name
)
->
isTemplateNameId
())
{
translationUnit
()
->
error
(
sourceLocation
,
"expected a class-name"
);
*
name
=
(
*
name
)
->
identifier
();
if
(
qName
)
*
name
=
control
()
->
qualifiedNameId
(
qName
->
base
(),
*
name
);
}
}
int
Bind
::
visibilityForAccessSpecifier
(
int
tokenKind
)
{
switch
(
tokenKind
)
{
...
...
src/libs/3rdparty/cplusplus/Bind.h
View file @
1ccde24c
...
...
@@ -274,6 +274,8 @@ protected:
private:
static
const
int
kMaxDepth
;
void
ensureValidClassName
(
const
Name
**
name
,
unsigned
sourceLocation
);
Scope
*
_scope
;
ExpressionTy
_expression
;
const
Name
*
_name
;
...
...
src/plugins/mercurial/mercurialplugin.cpp
View file @
1ccde24c
...
...
@@ -549,8 +549,8 @@ void MercurialPlugin::commit()
m_submitRepository
=
state
.
topLevel
();
connect
(
m_client
,
SIGNAL
(
parsedStatus
(
QList
<
VcsBaseClient
::
StatusItem
>
)),
this
,
SLOT
(
showCommitWidget
(
QList
<
VcsBaseClient
::
StatusItem
>
)));
connect
(
m_client
,
SIGNAL
(
parsedStatus
(
QList
<
VcsBase
::
VcsBase
Client
::
StatusItem
>
)),
this
,
SLOT
(
showCommitWidget
(
QList
<
VcsBase
::
VcsBase
Client
::
StatusItem
>
)));
m_client
->
emitParsedStatus
(
m_submitRepository
);
}
...
...
@@ -559,8 +559,8 @@ void MercurialPlugin::showCommitWidget(const QList<VcsBaseClient::StatusItem> &s
VcsBaseOutputWindow
*
outputWindow
=
VcsBaseOutputWindow
::
instance
();
//Once we receive our data release the connection so it can be reused elsewhere
disconnect
(
m_client
,
SIGNAL
(
parsedStatus
(
QList
<
VcsBaseClient
::
StatusItem
>
)),
this
,
SLOT
(
showCommitWidget
(
QList
<
VcsBaseClient
::
StatusItem
>
)));
disconnect
(
m_client
,
SIGNAL
(
parsedStatus
(
QList
<
VcsBase
::
VcsBase
Client
::
StatusItem
>
)),
this
,
SLOT
(
showCommitWidget
(
QList
<
VcsBase
::
VcsBase
Client
::
StatusItem
>
)));
if
(
status
.
isEmpty
())
{
outputWindow
->
appendError
(
tr
(
"There are no changes to commit."
));
...
...
tests/system/objects.map
View file @
1ccde24c
...
...
@@ -59,8 +59,6 @@
:formFileLineEdit_Utils::FileNameValidatingLineEdit {buddy=':Qt Gui Application.Form file:_QLabel' name='formFileLineEdit' type='Utils::FileNameValidatingLineEdit' visible='1'}
:frame.templateDescription_QTextBrowser {container=':New.frame_QFrame' name='templateDescription' type='QTextBrowser' visible='1'}
:headerFileLineEdit_Utils::FileNameValidatingLineEdit {buddy=':Qt Gui Application.Header file:_QLabel' name='headerFileLineEdit' type='Utils::FileNameValidatingLineEdit' visible='1'}
:projects.projects.pro_QModelIndex {column='0' container=':projects_QModelIndex' text='projects.pro' type='QModelIndex'}
:projects_QModelIndex {column='0' container=':Qt Creator_Utils::NavigationTreeView' text='projects' type='QModelIndex'}
:qt_tabwidget_stackedwidget.QtSupport__Internal__QtVersionManager_QtSupport::Internal::QtOptionsPageWidget {container=':Options.qt_tabwidget_stackedwidget_QStackedWidget' name='QtSupport__Internal__QtVersionManager' type='QtSupport::Internal::QtOptionsPageWidget' visible='1'}
:scrollArea.Create Build Configurations:_QComboBox_2 {container=':Qt Gui Application.scrollArea_QScrollArea' leftWidget=':scrollArea.Create Build Configurations:_QLabel_2' type='QComboBox' unnamed='1' visible='1'}
:scrollArea.Create Build Configurations:_QLabel_2 {container=':Qt Gui Application.scrollArea_QScrollArea' text='Create build configurations:' type='QLabel' unnamed='1' visible='1'}
...
...
tests/system/shared/project.py
View file @
1ccde24c
...
...
@@ -153,7 +153,9 @@ def __verifyFileCreation__(path, expectedFiles):
# created for this version. If it is None, all Qt versions will be used
# param checks turns tests in the function on if set to True
def
createProject_Qt_GUI
(
path
,
projectName
,
qtVersion
=
None
,
checks
=
True
):
available
=
__createProjectSelectType__
(
" Applications"
,
"Qt Gui Application"
)
template
=
"Qt Gui Application"
available
=
__createProjectSelectType__
(
" Applications"
,
template
)
JIRA
.
performWorkaroundIfStillOpen
(
6994
,
JIRA
.
Bug
.
CREATOR
,
template
,
available
)
__createProjectSetNameAndPath__
(
path
,
projectName
,
checks
)
__selectQtVersionDesktop__
(
qtVersion
,
checks
,
available
)
...
...
tests/system/shared/workarounds.py
View file @
1ccde24c
...
...
@@ -221,7 +221,10 @@ class JIRA:
def
_workaroundCreator6994_
(
self
,
*
args
):
if
args
[
0
]
in
(
'Mobile Qt Application'
,
'Qt Gui Application'
,
'Qt Custom Designer Widget'
):
args
[
1
].
remove
(
'Harmattan'
)
if
QtQuickConstants
.
Targets
.
HARMATTAN
in
args
[
1
]:
args
[
1
].
remove
(
QtQuickConstants
.
Targets
.
HARMATTAN
)
else
:
args
[
1
].
remove
(
QtQuickConstants
.
getStringForTarget
(
QtQuickConstants
.
Targets
.
HARMATTAN
))
test
.
xverify
(
False
,
"Removed Harmattan from expected targets."
)
def
_workaroundCreator6853_
(
self
,
*
args
):
...
...
tests/system/suite_debugger/suite.conf
View file @
1ccde24c
...
...
@@ -7,6 +7,6 @@ HOOK_SUB_PROCESSES=false
IMPLICITAUTSTART
=
0
LANGUAGE
=
Python
OBJECTMAP
=../
objects
.
map
TEST_CASES
=
tst_build_new_project
tst_cli_output_console
TEST_CASES
=
tst_build_new_project
tst_cli_output_console
tst_simple_debug
VERSION
=
2
WRAPPERS
=
Qt
tests/system/suite_general/shared/testdata/creator_tree.tsv
deleted
100644 → 0
View file @
929bc18a
"node" "value"
tests/system/suite_general/shared/testdata/qt_tree.tsv
deleted
100644 → 0
View file @
929bc18a
"node" "value"
":projects.projects.pro_QModelIndex" "projects.pro"
":projects_QModelIndex" "projects"
tests/system/suite_general/shared/testdata/speedcrunch_tree.tsv
deleted
100644 → 0
View file @
929bc18a
"node" "value"
tests/system/suite_general/tst_build_speedcrunch/test.py
View file @
1ccde24c
...
...
@@ -18,12 +18,6 @@ def main():
openQmakeProject
(
SpeedCrunchPath
)
waitForSignal
(
"{type='CppTools::Internal::CppModelManager' unnamed='1'}"
,
"sourceFilesRefreshed(QStringList)"
)
# Test that some of the expected items are in the navigation tree
for
row
,
record
in
enumerate
(
testData
.
dataset
(
"speedcrunch_tree.tsv"
)):
node
=
testData
.
field
(
record
,
"node"
)
value
=
testData
.
field
(
record
,
"value"
)
test
.
compare
(
waitForObject
(
node
).
text
,
value
)
fancyToolButton
=
waitForObject
(
":*Qt Creator_Core::Internal::FancyToolButton"
)
qtVerPattern
=
re
.
compile
(
"\d\.\d(\.\d+)?"
)
...
...
tests/system/suite_general/tst_cmake_speedcrunch/test.py
View file @
1ccde24c
...
...
@@ -23,12 +23,6 @@ def main():
return
waitForSignal
(
"{type='CppTools::Internal::CppModelManager' unnamed='1'}"
,
"sourceFilesRefreshed(QStringList)"
)
# Test that some of the expected items are in the navigation tree
for
row
,
record
in
enumerate
(
testData
.
dataset
(
"speedcrunch_tree.tsv"
)):
node
=
testData
.
field
(
record
,
"node"
)
value
=
testData
.
field
(
record
,
"value"
)
test
.
compare
(
findObject
(
node
).
text
,
value
)
# Invoke a rebuild of the application
invokeMenuItem
(
"Build"
,
"Rebuild All"
)
...
...
tests/system/suite_general/tst_openqt_creator/test.py
View file @
1ccde24c
...
...
@@ -15,17 +15,6 @@ def main():
# Wait for parsing to complete
waitForSignal
(
"{type='CppTools::Internal::CppModelManager' unnamed='1'}"
,
"sourceFilesRefreshed(QStringList)"
,
300000
)
# Test that some of the expected items are in the navigation tree
for
row
,
record
in
enumerate
(
testData
.
dataset
(
"creator_tree.tsv"
)):
node
=
testData
.
field
(
record
,
"node"
)
value
=
testData
.
field
(
record
,
"value"
)
test
.
compare
(
waitForObject
(
node
).
text
,
value
)
for
row
,
record
in
enumerate
(
testData
.
dataset
(
"speedcrunch_tree.tsv"
)):
node
=
testData
.
field
(
record
,
"node"
)
value
=
testData
.
field
(
record
,
"value"
)
test
.
compare
(
waitForObject
(
node
).
text
,
value
)
# Now check some basic lookups in the search box
selectFromLocator
(
": Qlist::QList"
,
"QList::QList"
)
test
.
compare
(
wordUnderCursor
(
waitForObject
(
":Qt Creator_CppEditor::Internal::CPPEditorWidget"
)),
"QList"
)
...
...
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