mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
bring back the warning about Qt 4.7 imports
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
22190bf0d9
commit
b2e94aec38
1 changed files with 9 additions and 0 deletions
|
@ -744,6 +744,15 @@ int QDeclarativePrivate::qmlregister(RegistrationType type, void *data)
|
|||
*/
|
||||
bool QDeclarativeMetaType::isModule(const QByteArray &module, int versionMajor, int versionMinor)
|
||||
{
|
||||
// "import Qt 4.7" should have died off
|
||||
if (strcmp(module.constData(), "Qt") == 0 && versionMajor == 4 && versionMinor == 7) {
|
||||
static bool qt47Registered = false;
|
||||
if (!qt47Registered) {
|
||||
qWarning() << Q_FUNC_INFO << "Qt 4.7 import detected; please note that Qt 4.7 is directly reusable as QtQuick 1.x with no code changes.";
|
||||
qt47Registered = true;
|
||||
}
|
||||
}
|
||||
|
||||
QDeclarativeMetaTypeData *data = metaTypeData();
|
||||
QDeclarativeMetaTypeData::ModuleInfoHash::Iterator it = data->modules.find(module);
|
||||
return it != data->modules.end()
|
||||
|
|
Loading…
Add table
Reference in a new issue