[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/kexi-frameworks7-staniek] kexi: Kexi: return QStringList in migrate manager's supportedFil
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2015-06-30 20:24:22
Message-ID: E1ZA24s-0006Ps-UJ () scm ! kde ! org
[Download RAW message or body]
Git commit 8c0cc748613064bcdddc3ef07fcae1e3c0fbe4d8 by Jaroslaw Staniek.
Committed on 30/06/2015 at 20:16.
Pushed by staniek into branch 'kexi-frameworks7-staniek'.
Kexi: return QStringList in migrate manager's supportedFileMimeTypes()
M +1 -1 kexi/core/KexiMigrateManagerInterface.h
M +1 -1 kexi/migration/migratemanager.cpp
M +1 -1 kexi/migration/migratemanager.h
M +1 -1 kexi/widget/KexiFileWidget.cpp
http://commits.kde.org/calligra/8c0cc748613064bcdddc3ef07fcae1e3c0fbe4d8
diff --git a/kexi/core/KexiMigrateManagerInterface.h \
b/kexi/core/KexiMigrateManagerInterface.h index 16c871f..378290b 100644
--- a/kexi/core/KexiMigrateManagerInterface.h
+++ b/kexi/core/KexiMigrateManagerInterface.h
@@ -32,7 +32,7 @@ public:
virtual ~KexiMigrateManagerInterface() {}
//! Implement to return the list offile MIME types that are supported by \
migration drivers
- virtual QList<QString> supportedFileMimeTypes() = 0;
+ virtual QStringList supportedFileMimeTypes() = 0;
};
#endif
diff --git a/kexi/migration/migratemanager.cpp b/kexi/migration/migratemanager.cpp
index e8500b0..7af98fd 100644
--- a/kexi/migration/migratemanager.cpp
+++ b/kexi/migration/migratemanager.cpp
@@ -334,7 +334,7 @@ QString MigrateManager::possibleProblemsInfoMsg() const
return str;
}
-QList<QString> MigrateManager::supportedFileMimeTypes()
+QStringList MigrateManager::supportedFileMimeTypes()
{
clearResult();
if (!d_int->lookupDrivers()) {
diff --git a/kexi/migration/migratemanager.h b/kexi/migration/migratemanager.h
index 4804994..666b624 100644
--- a/kexi/migration/migratemanager.h
+++ b/kexi/migration/migratemanager.h
@@ -73,7 +73,7 @@ public:
//! @return the list of file MIME types that are supported by migration drivers.
//! Implements MigrateManagerInterface
- virtual QList<QString> supportedFileMimeTypes();
+ virtual QStringList supportedFileMimeTypes();
protected:
virtual void drv_clearServerResult();
diff --git a/kexi/widget/KexiFileWidget.cpp b/kexi/widget/KexiFileWidget.cpp
index bbbbec2..8fb3a0e 100644
--- a/kexi/widget/KexiFileWidget.cpp
+++ b/kexi/widget/KexiFileWidget.cpp
@@ -197,7 +197,7 @@ void KexiFileWidget::updateFilters()
}
if (normalOpeningMode) {
- const QList<QString> supportedFileMimeTypes = \
KexiMainWindowIface::global()->migrateManager()->supportedFileMimeTypes(); + \
const QStringList supportedFileMimeTypes = \
KexiMainWindowIface::global()->migrateManager()->supportedFileMimeTypes(); qDebug() \
<< supportedFileMimeTypes;
foreach (const QString& supportedFileMimeType, supportedFileMimeTypes) {
d->addFilterForType(&filter, &allfilters, supportedFileMimeType);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic