mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
QT_NO_PROCESS conditional build fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
67502ff140
commit
993297c686
1 changed files with 5 additions and 0 deletions
|
@ -777,6 +777,7 @@ namespace qdesigner_internal
|
|||
|
||||
QDESIGNER_SHARED_EXPORT bool runUIC(const QString &fileName, QByteArray& ba, QString &errorMessage)
|
||||
{
|
||||
#ifndef QT_NO_PROCESS
|
||||
QStringList argv;
|
||||
QString binary = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator() + QLatin1String("uic" KATIE_TOOLS_SUFFIX);
|
||||
argv += fileName;
|
||||
|
@ -796,6 +797,10 @@ namespace qdesigner_internal
|
|||
}
|
||||
ba = uic.readAllStandardOutput();
|
||||
return true;
|
||||
#else
|
||||
errorMessage = QApplication::translate("Designer", "Katie build without process support.");
|
||||
return false;
|
||||
#endif // QT_NO_PROCESS
|
||||
}
|
||||
|
||||
QDESIGNER_SHARED_EXPORT QString qtify(const QString &name)
|
||||
|
|
Loading…
Add table
Reference in a new issue