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
39f1ce05
Commit
39f1ce05
authored
Jan 13, 2009
by
hjk
Browse files
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
parents
a8342123
8fd841c1
Changes
40
Hide whitespace changes
Inline
Side-by-side
doc/doc.pri
View file @
39f1ce05
...
...
@@ -2,7 +2,7 @@ unix {
QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html $$(QTDIR)/tools/qdoc3/qdoc3
HELPGENERATOR = $$(QTDIR)/bin/qhelpgenerator
} else {
QDOC = $$(QTDIR)\tools\qdoc3\release\qdoc3.exe
QDOC =
set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&&
$$(QTDIR)\tools\qdoc3\release\qdoc3.exe
HELPGENERATOR = $$(QTDIR)\bin\qhelpgenerator.exe
}
...
...
shared/cplusplus/Parser.cpp
View file @
39f1ce05
...
...
@@ -57,6 +57,7 @@
#include "AST.h"
#include "Literals.h"
#include <cstdlib>
#include <cstring>
#include <cassert>
CPLUSPLUS_BEGIN_NAMESPACE
...
...
src/libs/cplusplus/ResolveExpression.cpp
View file @
39f1ce05
...
...
@@ -425,6 +425,12 @@ bool ResolveExpression::visit(UnaryExpressionAST *ast)
return
false
;
}
bool
ResolveExpression
::
visit
(
CompoundLiteralAST
*
ast
)
{
accept
(
ast
->
type_id
);
return
false
;
}
bool
ResolveExpression
::
visit
(
QualifiedNameAST
*
ast
)
{
ResolveClass
resolveClass
;
...
...
src/libs/cplusplus/ResolveExpression.h
View file @
39f1ce05
...
...
@@ -105,6 +105,7 @@ protected:
virtual
bool
visit
(
ThrowExpressionAST
*
ast
);
virtual
bool
visit
(
TypeIdAST
*
ast
);
virtual
bool
visit
(
UnaryExpressionAST
*
ast
);
virtual
bool
visit
(
CompoundLiteralAST
*
ast
);
//names
virtual
bool
visit
(
QualifiedNameAST
*
ast
);
...
...
src/plugins/coreplugin/dialogs/ioptionspage.h
View file @
39f1ce05
...
...
@@ -54,7 +54,8 @@ public:
virtual
QString
trCategory
()
const
=
0
;
virtual
QWidget
*
createPage
(
QWidget
*
parent
)
=
0
;
virtual
void
finished
(
bool
accepted
)
=
0
;
virtual
void
apply
()
=
0
;
virtual
void
finish
()
=
0
;
};
}
// namespace Core
...
...
src/plugins/coreplugin/dialogs/settingsdialog.cpp
View file @
39f1ce05
...
...
@@ -126,20 +126,22 @@ void SettingsDialog::pageSelected(QTreeWidgetItem *)
void
SettingsDialog
::
accept
()
{
foreach
(
IOptionsPage
*
page
,
m_pages
)
page
->
finished
(
true
);
foreach
(
IOptionsPage
*
page
,
m_pages
)
{
page
->
apply
();
page
->
finish
();
}
done
(
QDialog
::
Accepted
);
}
void
SettingsDialog
::
reject
()
{
foreach
(
IOptionsPage
*
page
,
m_pages
)
page
->
finish
ed
(
false
);
page
->
finish
(
);
done
(
QDialog
::
Rejected
);
}
void
SettingsDialog
::
apply
()
{
foreach
(
IOptionsPage
*
page
,
m_pages
)
page
->
finished
(
true
);
page
->
apply
(
);
}
src/plugins/coreplugin/dialogs/shortcutsettings.cpp
View file @
39f1ce05
...
...
@@ -120,14 +120,14 @@ QWidget *ShortcutSettings::createPage(QWidget *parent)
return
w
;
}
void
ShortcutSettings
::
finished
(
bool
accepted
)
void
ShortcutSettings
::
apply
(
)
{
if
(
accepted
)
{
foreach
(
ShortcutItem
*
item
,
m_scitems
)
{
item
->
m_cmd
->
setKeySequence
(
item
->
m_key
);
}
}
foreach
(
ShortcutItem
*
item
,
m_scitems
)
item
->
m_cmd
->
setKeySequence
(
item
->
m_key
);
}
void
ShortcutSettings
::
finish
()
{
qDeleteAll
(
m_scitems
);
m_scitems
.
clear
();
}
...
...
src/plugins/coreplugin/dialogs/shortcutsettings.h
View file @
39f1ce05
...
...
@@ -77,7 +77,8 @@ public:
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
();
protected:
bool
eventFilter
(
QObject
*
o
,
QEvent
*
e
);
...
...
src/plugins/coreplugin/generalsettings.cpp
View file @
39f1ce05
...
...
@@ -81,11 +81,8 @@ QWidget *GeneralSettings::createPage(QWidget *parent)
return
w
;
}
void
GeneralSettings
::
finished
(
bool
accepted
)
void
GeneralSettings
::
apply
(
)
{
if
(
!
accepted
)
return
;
// Apply the new base color if accepted
StyleHelper
::
setBaseColor
(
m_page
->
colorButton
->
color
());
EditorManager
::
instance
()
->
setExternalEditor
(
m_page
->
externalEditorEdit
->
text
());
...
...
src/plugins/coreplugin/generalsettings.h
View file @
39f1ce05
...
...
@@ -55,7 +55,8 @@ public:
QString
category
()
const
;
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
()
{
}
private
slots
:
void
resetInterfaceColor
();
...
...
src/plugins/cpaster/settingspage.cpp
View file @
39f1ce05
...
...
@@ -86,11 +86,8 @@ QWidget *SettingsPage::createPage(QWidget *parent)
return
w
;
}
void
SettingsPage
::
finished
(
bool
accepted
)
void
SettingsPage
::
apply
(
)
{
if
(
!
accepted
)
return
;
m_username
=
m_ui
.
userEdit
->
text
();
m_server
=
QUrl
(
m_ui
.
serverEdit
->
text
());
m_copy
=
m_ui
.
clipboardBox
->
isChecked
();
...
...
src/plugins/cpaster/settingspage.h
View file @
39f1ce05
...
...
@@ -59,7 +59,8 @@ public:
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
()
{
}
QString
username
()
const
;
QUrl
serverUrl
()
const
;
...
...
src/plugins/cpptools/completionsettingspage.cpp
View file @
39f1ce05
...
...
@@ -78,11 +78,8 @@ QWidget *CompletionSettingsPage::createPage(QWidget *parent)
return
w
;
}
void
CompletionSettingsPage
::
finished
(
bool
accepted
)
void
CompletionSettingsPage
::
apply
(
)
{
if
(
!
accepted
)
return
;
m_completion
->
setCaseSensitivity
(
m_page
->
caseSensitive
->
isChecked
()
?
Qt
::
CaseSensitive
:
Qt
::
CaseInsensitive
);
m_completion
->
setAutoInsertBraces
(
m_page
->
autoInsertBraces
->
isChecked
());
...
...
src/plugins/cpptools/completionsettingspage.h
View file @
39f1ce05
...
...
@@ -56,7 +56,8 @@ public:
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
()
{
}
private:
CppCodeCompletion
*
m_completion
;
...
...
src/plugins/debugger/gdboptionpage.cpp
View file @
39f1ce05
...
...
@@ -122,11 +122,8 @@ void GdbOptionPage::onScriptFileChanged()
m_settings
->
m_scriptFile
=
m_ui
.
scriptFileChooser
->
path
();
}
void
GdbOptionPage
::
finished
(
bool
accepted
)
void
GdbOptionPage
::
apply
(
)
{
if
(
!
accepted
)
return
;
m_settings
->
m_gdbCmd
=
m_ui
.
gdbLocationChooser
->
path
();
m_settings
->
m_gdbEnv
=
m_ui
.
environmentEdit
->
text
();
m_settings
->
m_autoRun
=
m_ui
.
autoStartBox
->
isChecked
();
...
...
src/plugins/debugger/gdboptionpage.h
View file @
39f1ce05
...
...
@@ -59,7 +59,8 @@ public:
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
()
{
}
public
slots
:
void
onGdbLocationChanged
();
...
...
src/plugins/designer/settingspage.cpp
View file @
39f1ce05
...
...
@@ -39,7 +39,8 @@
using
namespace
Designer
::
Internal
;
SettingsPage
::
SettingsPage
(
QDesignerOptionsPageInterface
*
designerPage
)
:
m_designerPage
(
designerPage
)
m_designerPage
(
designerPage
),
m_applyOnFinish
(
false
)
{
}
...
...
@@ -64,10 +65,17 @@ QString SettingsPage::trCategory() const
QWidget
*
SettingsPage
::
createPage
(
QWidget
*
parent
)
{
m_applyOnFinish
=
false
;
return
m_designerPage
->
createPage
(
parent
);
}
void
SettingsPage
::
finished
(
bool
accepted
)
void
SettingsPage
::
apply
(
)
{
m_designerPage
->
finish
(
accepted
);
// FIXME: Since no cleanup should be done here, we can't call finish(true)
m_applyOnFinish
=
true
;
}
void
SettingsPage
::
finish
()
{
m_designerPage
->
finish
(
m_applyOnFinish
);
}
src/plugins/designer/settingspage.h
View file @
39f1ce05
...
...
@@ -59,10 +59,12 @@ public:
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
();
private:
QDesignerOptionsPageInterface
*
m_designerPage
;
bool
m_applyOnFinish
;
};
}
// namespace Internal
...
...
src/plugins/git/settingspage.cpp
View file @
39f1ce05
...
...
@@ -95,11 +95,10 @@ QWidget *SettingsPage::createPage(QWidget *parent)
return
m_widget
;
}
void
SettingsPage
::
finished
(
bool
accepted
)
void
SettingsPage
::
apply
(
)
{
if
(
!
accepted
||
!
m_widget
)
if
(
!
m_widget
)
return
;
GitPlugin
::
instance
()
->
setSettings
(
m_widget
->
settings
());
}
src/plugins/git/settingspage.h
View file @
39f1ce05
...
...
@@ -77,7 +77,8 @@ public:
QString
trCategory
()
const
;
QWidget
*
createPage
(
QWidget
*
parent
);
void
finished
(
bool
accepted
);
void
apply
();
void
finish
()
{
}
private:
QPointer
<
SettingsPageWidget
>
m_widget
;
...
...
Prev
1
2
Next
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