mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
30 lines
735 B
C++
30 lines
735 B
C++
#include <QCoreApplication>
|
|
#include <QSqlDatabase>
|
|
#include <QLibraryInfo>
|
|
#include <QDebug>
|
|
#include <QStringList>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
QCoreApplication app(argc, argv);
|
|
|
|
qDebug() << "App path:" << app.applicationDirPath();
|
|
qDebug() << "Plugin path:" << QLibraryInfo::location(QLibraryInfo::PluginsPath);
|
|
|
|
bool foundSqlite = false;
|
|
|
|
qDebug() << "Supported Database Drivers:";
|
|
foreach(const QString &sqlDriver, QSqlDatabase::drivers())
|
|
{
|
|
qDebug() << " " << sqlDriver;
|
|
if(sqlDriver == "QSQLITE")
|
|
foundSqlite = true;
|
|
}
|
|
|
|
if(foundSqlite)
|
|
qDebug() << "Found sqlite support from plugin.";
|
|
else
|
|
qDebug() << "Could not find sqlite support from plugin.";
|
|
return foundSqlite ? 0 : 1;
|
|
}
|