Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
d51fe868
Commit
d51fe868
authored
Apr 05, 2012
by
Jekyll Wu
Browse files
QList<String> ==> QStringList
parent
1f2a1f5e
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/Application.cpp
View file @
d51fe868
...
...
@@ -324,7 +324,7 @@ bool Application::processHelpArgs(KCmdLineArgs* args)
void
Application
::
listAvailableProfiles
()
{
QList
<
QString
>
paths
=
ProfileManager
::
instance
()
->
availableProfilePaths
();
QString
List
paths
=
ProfileManager
::
instance
()
->
availableProfilePaths
();
foreach
(
const
QString
&
path
,
paths
)
{
QFileInfo
info
(
path
);
...
...
src/ColorSchemeManager.cpp
View file @
d51fe868
...
...
@@ -184,7 +184,7 @@ void ColorSchemeManager::loadAllColorSchemes()
int
success
=
0
;
int
failed
=
0
;
QList
<
QString
>
nativeColorSchemes
=
listColorSchemes
();
QString
List
nativeColorSchemes
=
listColorSchemes
();
foreach
(
const
QString
&
colorScheme
,
nativeColorSchemes
)
{
if
(
loadColorScheme
(
colorScheme
))
success
++
;
...
...
@@ -192,7 +192,7 @@ void ColorSchemeManager::loadAllColorSchemes()
failed
++
;
}
QList
<
QString
>
kde3ColorSchemes
=
listKDE3ColorSchemes
();
QString
List
kde3ColorSchemes
=
listKDE3ColorSchemes
();
foreach
(
const
QString
&
colorScheme
,
kde3ColorSchemes
)
{
if
(
loadKDE3ColorScheme
(
colorScheme
))
success
++
;
...
...
@@ -275,14 +275,14 @@ bool ColorSchemeManager::loadKDE3ColorScheme(const QString& filePath)
return
true
;
}
QList
<
QString
>
ColorSchemeManager
::
listColorSchemes
()
QString
List
ColorSchemeManager
::
listColorSchemes
()
{
return
KGlobal
::
dirs
()
->
findAllResources
(
"data"
,
"konsole/*.colorscheme"
,
KStandardDirs
::
NoDuplicates
);
}
QList
<
QString
>
ColorSchemeManager
::
listKDE3ColorSchemes
()
QString
List
ColorSchemeManager
::
listKDE3ColorSchemes
()
{
return
KGlobal
::
dirs
()
->
findAllResources
(
"data"
,
"konsole/*.schema"
,
...
...
src/ColorSchemeManager.h
View file @
d51fe868
...
...
@@ -23,9 +23,8 @@
#define COLORSCHEMEMANAGER_H
// Qt
#include
<QtCore/QList>
#include
<QtCore/QHash>
#include
<QtCore/QString>
#include
<QtCore/QString
List
>
// Konsole
#include
"ColorScheme.h"
...
...
@@ -100,10 +99,10 @@ private:
// loads a color scheme from a KDE 3 .schema file
bool
loadKDE3ColorScheme
(
const
QString
&
path
);
// returns a list of paths of color schemes in the KDE 4+ .colorscheme file format
QList
<
QString
>
listColorSchemes
();
QString
List
listColorSchemes
();
// returns a list of paths of color schemes in the .schema file format
// used in KDE 3
QList
<
QString
>
listKDE3ColorSchemes
();
QString
List
listKDE3ColorSchemes
();
// loads all of the color schemes
void
loadAllColorSchemes
();
// finds the path of a color scheme
...
...
src/EditProfileDialog.cpp
View file @
d51fe868
...
...
@@ -543,7 +543,7 @@ void EditProfileDialog::updateKeyBindingsList(bool selectCurrentTranslator)
QStandardItem
*
selectedItem
=
0
;
QList
<
QString
>
translatorNames
=
keyManager
->
allTranslators
();
QString
List
translatorNames
=
keyManager
->
allTranslators
();
foreach
(
const
QString
&
translatorName
,
translatorNames
)
{
const
KeyboardTranslator
*
translator
=
keyManager
->
findTranslator
(
translatorName
);
...
...
src/KeyboardTranslatorManager.cpp
View file @
d51fe868
...
...
@@ -186,7 +186,7 @@ const KeyboardTranslator* KeyboardTranslatorManager::defaultTranslator()
return
translator
;
}
QList
<
QString
>
KeyboardTranslatorManager
::
allTranslators
()
QString
List
KeyboardTranslatorManager
::
allTranslators
()
{
if
(
!
_haveLoadedAll
)
{
findTranslators
();
...
...
src/KeyboardTranslatorManager.h
View file @
d51fe868
...
...
@@ -24,7 +24,7 @@
// Qt
#include
<QtCore/QHash>
#include
<QtCore/QList>
#include
<QtCore/Q
String
List>
// Konsole
#include
"konsole_export.h"
...
...
@@ -84,7 +84,7 @@ public:
* The first time this is called, a search for available
* translators is started.
*/
QList
<
QString
>
allTranslators
();
QString
List
allTranslators
();
/** Returns the global KeyboardTranslatorManager instance. */
static
KeyboardTranslatorManager
*
instance
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment