Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+56
@@ -0,0 +1,56 @@
|
||||
// needed: libQt5Sql5-postgresql
|
||||
|
||||
/* TODO:
|
||||
*
|
||||
* hint for custom queries and their 'editibility'
|
||||
* autocompletion of tablenames (& columns?)
|
||||
* csv export for iuliana
|
||||
* to insert something, DataModel must use QVariant as data storage !
|
||||
*
|
||||
*/
|
||||
|
||||
#include "BrowserWnd.h"
|
||||
|
||||
#include <nglapplication/nglapplication.h>
|
||||
#include <QDebug>
|
||||
#include <QTimer>
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
QStringList params;
|
||||
params << QStringLiteral("--darkStyle");
|
||||
|
||||
int setDarkStyle = false;
|
||||
|
||||
for (int i = 0; i < argc; i++)
|
||||
{
|
||||
switch (params.indexOf(QString::fromUtf8(argv[i])))
|
||||
{
|
||||
case 0: // darkStyle
|
||||
{
|
||||
setDarkStyle = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (setDarkStyle)
|
||||
{
|
||||
qunsetenv("TDS_DEVEL"); // no dark style
|
||||
}
|
||||
else
|
||||
{
|
||||
qputenv("TDS_DEVEL", "1");
|
||||
}
|
||||
|
||||
|
||||
|
||||
NGLApplication a(argc, argv);
|
||||
a.createLogger("SQLBrowser", "log4cxx_sqlbrowser.props");
|
||||
|
||||
BrowserWnd browserWnd;
|
||||
QTimer::singleShot(0, &browserWnd, &BrowserWnd::startConnect);
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
Reference in new issue
Block a user