Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flatpak-qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Bubke
flatpak-qt-creator
Commits
4acbbe83
Commit
4acbbe83
authored
16 years ago
by
hjk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
parents
3bd633ef
12e4f2b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/cpptools/completionsettingspage.cpp
+12
-10
12 additions, 10 deletions
src/plugins/cpptools/completionsettingspage.cpp
src/plugins/cpptools/completionsettingspage.h
+1
-0
1 addition, 0 deletions
src/plugins/cpptools/completionsettingspage.h
with
13 additions
and
10 deletions
src/plugins/cpptools/completionsettingspage.cpp
+
12
−
10
View file @
4acbbe83
...
@@ -42,10 +42,15 @@ using namespace CppTools::Internal;
...
@@ -42,10 +42,15 @@ using namespace CppTools::Internal;
CompletionSettingsPage
::
CompletionSettingsPage
(
CppCodeCompletion
*
completion
)
CompletionSettingsPage
::
CompletionSettingsPage
(
CppCodeCompletion
*
completion
)
:
m_completion
(
completion
)
:
m_completion
(
completion
)
,
m_page
(
0
)
,
m_page
(
new
Ui_CompletionSettingsPage
)
{
{
}
}
CompletionSettingsPage
::~
CompletionSettingsPage
()
{
delete
m_page
;
}
QString
CompletionSettingsPage
::
name
()
const
QString
CompletionSettingsPage
::
name
()
const
{
{
return
tr
(
"Completion"
);
return
tr
(
"Completion"
);
...
@@ -63,7 +68,6 @@ QString CompletionSettingsPage::trCategory() const
...
@@ -63,7 +68,6 @@ QString CompletionSettingsPage::trCategory() const
QWidget
*
CompletionSettingsPage
::
createPage
(
QWidget
*
parent
)
QWidget
*
CompletionSettingsPage
::
createPage
(
QWidget
*
parent
)
{
{
m_page
=
new
Ui_CompletionSettingsPage
;
QWidget
*
w
=
new
QWidget
(
parent
);
QWidget
*
w
=
new
QWidget
(
parent
);
m_page
->
setupUi
(
w
);
m_page
->
setupUi
(
w
);
...
@@ -76,13 +80,11 @@ QWidget *CompletionSettingsPage::createPage(QWidget *parent)
...
@@ -76,13 +80,11 @@ QWidget *CompletionSettingsPage::createPage(QWidget *parent)
void
CompletionSettingsPage
::
finished
(
bool
accepted
)
void
CompletionSettingsPage
::
finished
(
bool
accepted
)
{
{
if
(
accepted
)
{
if
(
!
accepted
)
m_completion
->
setCaseSensitivity
(
return
;
m_page
->
caseSensitive
->
isChecked
()
?
Qt
::
CaseSensitive
:
Qt
::
CaseInsensitive
);
m_completion
->
setAutoInsertBraces
(
m_page
->
autoInsertBraces
->
isChecked
());
m_completion
->
setPartialCompletionEnabled
(
m_page
->
partiallyComplete
->
isChecked
());
}
delete
m_page
;
m_completion
->
setCaseSensitivity
(
m_page
=
0
;
m_page
->
caseSensitive
->
isChecked
()
?
Qt
::
CaseSensitive
:
Qt
::
CaseInsensitive
);
m_completion
->
setAutoInsertBraces
(
m_page
->
autoInsertBraces
->
isChecked
());
m_completion
->
setPartialCompletionEnabled
(
m_page
->
partiallyComplete
->
isChecked
());
}
}
This diff is collapsed.
Click to expand it.
src/plugins/cpptools/completionsettingspage.h
+
1
−
0
View file @
4acbbe83
...
@@ -49,6 +49,7 @@ class CompletionSettingsPage : public Core::IOptionsPage
...
@@ -49,6 +49,7 @@ class CompletionSettingsPage : public Core::IOptionsPage
{
{
public:
public:
CompletionSettingsPage
(
CppCodeCompletion
*
completion
);
CompletionSettingsPage
(
CppCodeCompletion
*
completion
);
~
CompletionSettingsPage
();
QString
name
()
const
;
QString
name
()
const
;
QString
category
()
const
;
QString
category
()
const
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment