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
Tobias Hunger
qt-creator
Commits
cdf6b228
Commit
cdf6b228
authored
Mar 26, 2010
by
Thorbjørn Lindeijer
Browse files
Moved CMake settings page under Projects category
parent
2d21060b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
View file @
cdf6b228
...
...
@@ -240,7 +240,7 @@ QString CMakeSettingsPage::findCmakeExecutable() const
QString
CMakeSettingsPage
::
id
()
const
{
return
QLatin1String
(
"CMake"
);
return
QLatin1String
(
"
Z.
CMake"
);
}
QString
CMakeSettingsPage
::
displayName
()
const
...
...
@@ -250,17 +250,17 @@ QString CMakeSettingsPage::displayName() const
QString
CMakeSettingsPage
::
category
()
const
{
return
QLatin1String
(
"M.CMake"
);
return
QLatin1String
(
ProjectExplorer
::
Constants
::
PROJECTEXPLORER_SETTINGS_CATEGORY
);
}
QString
CMakeSettingsPage
::
displayCategory
()
const
{
return
tr
(
"CMake"
);
return
tr
(
ProjectExplorer
::
Constants
::
PROJECTEXPLORER_SETTINGS_TR_CATEGORY
);
}
QIcon
CMakeSettingsPage
::
categoryIcon
()
const
{
return
QIcon
(
);
// TODO: Add CMake icon or move this into Projects category
return
QIcon
(
QLatin1String
(
ProjectExplorer
::
Constants
::
PROJECTEXPLORER_SETTINGS_CATEGORY_ICON
));
}
QWidget
*
CMakeSettingsPage
::
createPage
(
QWidget
*
parent
)
...
...
src/plugins/projectexplorer/projectexplorerconstants.h
View file @
cdf6b228
...
...
@@ -187,6 +187,7 @@ const char * const RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource";
// settings page
const
char
*
const
PROJECTEXPLORER_SETTINGS_CATEGORY
=
"K.ProjectExplorer"
;
const
char
*
const
PROJECTEXPLORER_SETTINGS_TR_CATEGORY
=
QT_TRANSLATE_NOOP
(
"ProjectExplorer"
,
"Projects"
);
const
char
*
const
PROJECTEXPLORER_SETTINGS_CATEGORY_ICON
=
":/core/images/category_project.png"
;
const
char
*
const
PROJECTEXPLORER_SETTINGS_ID
=
"ProjectExplorer.ProjectExplorer"
;
...
...
src/plugins/projectexplorer/projectexplorersettingspage.cpp
View file @
cdf6b228
...
...
@@ -134,7 +134,7 @@ QString ProjectExplorerSettingsPage::category() const
QString
ProjectExplorerSettingsPage
::
displayCategory
()
const
{
return
tr
(
"Projects"
);
return
tr
(
Constants
::
PROJECTEXPLORER_SETTINGS_TR_CATEGORY
);
}
QIcon
ProjectExplorerSettingsPage
::
categoryIcon
()
const
...
...
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