mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
fix vSync
This commit is contained in:
parent
1fb6e777a3
commit
d3e1e560c4
14
src/main.cpp
14
src/main.cpp
@ -195,14 +195,10 @@ int main(int argc, char *argv[])
|
|||||||
vconfig.initialize();
|
vconfig.initialize();
|
||||||
g_config = &vconfig;
|
g_config = &vconfig;
|
||||||
|
|
||||||
bool checkSSL = true;
|
|
||||||
|
|
||||||
#if defined(QT_NO_DEBUG)
|
#if defined(QT_NO_DEBUG)
|
||||||
checkSSL = false;
|
|
||||||
for (int i = 1; i < argc; ++i) {
|
for (int i = 1; i < argc; ++i) {
|
||||||
if (!qstrcmp(argv[i], "-d")) {
|
if (!qstrcmp(argv[i], "-d")) {
|
||||||
g_debugLog = true;
|
g_debugLog = true;
|
||||||
checkSSL = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -224,12 +220,10 @@ int main(int argc, char *argv[])
|
|||||||
qDebug() << "files to open from arguments" << filePaths;
|
qDebug() << "files to open from arguments" << filePaths;
|
||||||
|
|
||||||
// Check the openSSL.
|
// Check the openSSL.
|
||||||
if (checkSSL) {
|
qInfo() << "openGL" << QOpenGLContext::openGLModuleType();
|
||||||
qInfo() << "openGL" << QOpenGLContext::openGLModuleType();
|
qInfo() << "openSSL"
|
||||||
qInfo() << "openSSL"
|
<< QSslSocket::sslLibraryBuildVersionString()
|
||||||
<< QSslSocket::sslLibraryBuildVersionString()
|
<< QSslSocket::sslLibraryVersionNumber();
|
||||||
<< QSslSocket::sslLibraryVersionNumber();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load missing translation for Qt (QTextEdit/QPlainTextEdit/QTextBrowser).
|
// Load missing translation for Qt (QTextEdit/QPlainTextEdit/QTextBrowser).
|
||||||
QTranslator qtTranslator1;
|
QTranslator qtTranslator1;
|
||||||
|
@ -165,7 +165,8 @@ SOURCES += main.cpp\
|
|||||||
widgets/vcombobox.cpp \
|
widgets/vcombobox.cpp \
|
||||||
vtablehelper.cpp \
|
vtablehelper.cpp \
|
||||||
vtable.cpp \
|
vtable.cpp \
|
||||||
dialog/vinserttabledialog.cpp
|
dialog/vinserttabledialog.cpp \
|
||||||
|
utils/vSync.cpp
|
||||||
|
|
||||||
HEADERS += vmainwindow.h \
|
HEADERS += vmainwindow.h \
|
||||||
vapplication.h \
|
vapplication.h \
|
||||||
@ -313,7 +314,8 @@ HEADERS += vmainwindow.h \
|
|||||||
widgets/vcombobox.h \
|
widgets/vcombobox.h \
|
||||||
vtablehelper.h \
|
vtablehelper.h \
|
||||||
vtable.h \
|
vtable.h \
|
||||||
dialog/vinserttabledialog.h
|
dialog/vinserttabledialog.h \
|
||||||
|
utils/vSync.h
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
vnote.qrc \
|
vnote.qrc \
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
#include "vlistue.h"
|
#include "vlistue.h"
|
||||||
#include "vtagexplorer.h"
|
#include "vtagexplorer.h"
|
||||||
#include "vmdeditor.h"
|
#include "vmdeditor.h"
|
||||||
#include "vSync.h"
|
#include "utils/vSync.h"
|
||||||
|
|
||||||
extern VConfigManager *g_config;
|
extern VConfigManager *g_config;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user