mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-01-03 09:39:43 +01:00
change year to 2019
This commit is contained in:
parent
f9afa5e0aa
commit
394139a147
10 changed files with 13 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2015-2018 Syping
|
* Copyright (C) 2015-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -21,10 +21,6 @@
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
#include "windows.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||||
|
@ -37,13 +33,7 @@ int main(int argc, char *argv[])
|
||||||
#if QT_VERSION >= 0x050400
|
#if QT_VERSION >= 0x050400
|
||||||
if (QSysInfo::windowsVersion() >= 0x0080)
|
if (QSysInfo::windowsVersion() >= 0x0080)
|
||||||
{
|
{
|
||||||
NONCLIENTMETRICS ncm;
|
a.setFont(QApplication::font("QMenu"));
|
||||||
ncm.cbSize = sizeof(ncm);
|
|
||||||
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, ncm.cbSize, &ncm, 0);
|
|
||||||
LOGFONTW uiFont = ncm.lfMessageFont;
|
|
||||||
QString uiFontStr(QString::fromStdWString(std::wstring(uiFont.lfFaceName)));
|
|
||||||
QFont appFont(uiFontStr, 9);
|
|
||||||
a.setFont(appFont);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -147,7 +147,7 @@ int LuaEngineGui::showFileDialog(lua_State *L_p)
|
||||||
QString dialogTitle = "LuaEngine";
|
QString dialogTitle = "LuaEngine";
|
||||||
QString fileFormats = "All files (*)";
|
QString fileFormats = "All files (*)";
|
||||||
QFileDialog::FileMode fileMode = QFileDialog::ExistingFile;
|
QFileDialog::FileMode fileMode = QFileDialog::ExistingFile;
|
||||||
QFileDialog::Options fileOptions = QFileDialog::DontUseNativeDialog;
|
QFileDialog::Options fileOptions;
|
||||||
QFileDialog::AcceptMode fileAcceptMode = QFileDialog::AcceptOpen;
|
QFileDialog::AcceptMode fileAcceptMode = QFileDialog::AcceptOpen;
|
||||||
if (getArgumentCount(L_p) >= 1) {
|
if (getArgumentCount(L_p) >= 1) {
|
||||||
switch (getVariant(L_p, 1).toInt()) {
|
switch (getVariant(L_p, 1).toInt()) {
|
||||||
|
@ -157,7 +157,7 @@ int LuaEngineGui::showFileDialog(lua_State *L_p)
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
fileMode = QFileDialog::Directory;
|
fileMode = QFileDialog::Directory;
|
||||||
fileOptions = QFileDialog::ShowDirsOnly | QFileDialog::DontUseNativeDialog;
|
fileOptions = QFileDialog::ShowDirsOnly;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (getArgumentCount(L_p) >= 2) {
|
if (getArgumentCount(L_p) >= 2) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* luaEngine Lua Engine for Qt
|
* luaEngine Lua Engine for Qt
|
||||||
* Copyright (C) 2018 Syping
|
* Copyright (C) 2018-2019 Syping
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#/*****************************************************************************
|
#/*****************************************************************************
|
||||||
#* luaEngine Lua Engine for Qt
|
#* luaEngine Lua Engine for Qt
|
||||||
#* Copyright (C) 2018 Syping
|
#* Copyright (C) 2018-2019 Syping
|
||||||
#*
|
#*
|
||||||
#* Licensed under the Apache License, Version 2.0 (the "License");
|
#* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
#* you may not use this file except in compliance with the License.
|
#* you may not use this file except in compliance with the License.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#/*****************************************************************************
|
#/*****************************************************************************
|
||||||
#* luaEngine Lua Engine for Qt
|
#* luaEngine Lua Engine for Qt
|
||||||
#* Copyright (C) 2018 Syping
|
#* Copyright (C) 2018-2019 Syping
|
||||||
#*
|
#*
|
||||||
#* Licensed under the Apache License, Version 2.0 (the "License");
|
#* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
#* you may not use this file except in compliance with the License.
|
#* you may not use this file except in compliance with the License.
|
||||||
|
|
Loading…
Reference in a new issue