Commit d51fe868 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

QList<String> ==> QStringList

parent 1f2a1f5e
......@@ -324,7 +324,7 @@ bool Application::processHelpArgs(KCmdLineArgs* args)
void Application::listAvailableProfiles()
{
QList<QString> paths = ProfileManager::instance()->availableProfilePaths();
QStringList paths = ProfileManager::instance()->availableProfilePaths();
foreach ( const QString& path, paths) {
QFileInfo info(path);
......
......@@ -184,7 +184,7 @@ void ColorSchemeManager::loadAllColorSchemes()
int success = 0;
int failed = 0;
QList<QString> nativeColorSchemes = listColorSchemes();
QStringList nativeColorSchemes = listColorSchemes();
foreach ( const QString& colorScheme, nativeColorSchemes) {
if (loadColorScheme(colorScheme))
success++;
......@@ -192,7 +192,7 @@ void ColorSchemeManager::loadAllColorSchemes()
failed++;
}
QList<QString> kde3ColorSchemes = listKDE3ColorSchemes();
QStringList 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()
QStringList ColorSchemeManager::listColorSchemes()
{
return KGlobal::dirs()->findAllResources("data",
"konsole/*.colorscheme",
KStandardDirs::NoDuplicates);
}
QList<QString> ColorSchemeManager::listKDE3ColorSchemes()
QStringList ColorSchemeManager::listKDE3ColorSchemes()
{
return KGlobal::dirs()->findAllResources("data",
"konsole/*.schema",
......
......@@ -23,9 +23,8 @@
#define COLORSCHEMEMANAGER_H
// Qt
#include <QtCore/QList>
#include <QtCore/QHash>
#include <QtCore/QString>
#include <QtCore/QStringList>
// 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();
QStringList listColorSchemes();
// returns a list of paths of color schemes in the .schema file format
// used in KDE 3
QList<QString> listKDE3ColorSchemes();
QStringList listKDE3ColorSchemes();
// loads all of the color schemes
void loadAllColorSchemes();
// finds the path of a color scheme
......
......@@ -543,7 +543,7 @@ void EditProfileDialog::updateKeyBindingsList(bool selectCurrentTranslator)
QStandardItem* selectedItem = 0;
QList<QString> translatorNames = keyManager->allTranslators();
QStringList translatorNames = keyManager->allTranslators();
foreach (const QString& translatorName, translatorNames) {
const KeyboardTranslator* translator = keyManager->findTranslator(translatorName);
......
......@@ -186,7 +186,7 @@ const KeyboardTranslator* KeyboardTranslatorManager::defaultTranslator()
return translator;
}
QList<QString> KeyboardTranslatorManager::allTranslators()
QStringList KeyboardTranslatorManager::allTranslators()
{
if (!_haveLoadedAll) {
findTranslators();
......
......@@ -24,7 +24,7 @@
// Qt
#include <QtCore/QHash>
#include <QtCore/QList>
#include <QtCore/QStringList>
// 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();
QStringList allTranslators();
/** Returns the global KeyboardTranslatorManager instance. */
static KeyboardTranslatorManager* instance();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment