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();
|
||||
g_config = &vconfig;
|
||||
|
||||
bool checkSSL = true;
|
||||
|
||||
#if defined(QT_NO_DEBUG)
|
||||
checkSSL = false;
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (!qstrcmp(argv[i], "-d")) {
|
||||
g_debugLog = true;
|
||||
checkSSL = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -224,12 +220,10 @@ int main(int argc, char *argv[])
|
||||
qDebug() << "files to open from arguments" << filePaths;
|
||||
|
||||
// Check the openSSL.
|
||||
if (checkSSL) {
|
||||
qInfo() << "openGL" << QOpenGLContext::openGLModuleType();
|
||||
qInfo() << "openSSL"
|
||||
<< QSslSocket::sslLibraryBuildVersionString()
|
||||
<< QSslSocket::sslLibraryVersionNumber();
|
||||
}
|
||||
qInfo() << "openGL" << QOpenGLContext::openGLModuleType();
|
||||
qInfo() << "openSSL"
|
||||
<< QSslSocket::sslLibraryBuildVersionString()
|
||||
<< QSslSocket::sslLibraryVersionNumber();
|
||||
|
||||
// Load missing translation for Qt (QTextEdit/QPlainTextEdit/QTextBrowser).
|
||||
QTranslator qtTranslator1;
|
||||
|
@ -165,7 +165,8 @@ SOURCES += main.cpp\
|
||||
widgets/vcombobox.cpp \
|
||||
vtablehelper.cpp \
|
||||
vtable.cpp \
|
||||
dialog/vinserttabledialog.cpp
|
||||
dialog/vinserttabledialog.cpp \
|
||||
utils/vSync.cpp
|
||||
|
||||
HEADERS += vmainwindow.h \
|
||||
vapplication.h \
|
||||
@ -313,7 +314,8 @@ HEADERS += vmainwindow.h \
|
||||
widgets/vcombobox.h \
|
||||
vtablehelper.h \
|
||||
vtable.h \
|
||||
dialog/vinserttabledialog.h
|
||||
dialog/vinserttabledialog.h \
|
||||
utils/vSync.h
|
||||
|
||||
RESOURCES += \
|
||||
vnote.qrc \
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include "vlistue.h"
|
||||
#include "vtagexplorer.h"
|
||||
#include "vmdeditor.h"
|
||||
#include "vSync.h"
|
||||
#include "utils/vSync.h"
|
||||
|
||||
extern VConfigManager *g_config;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user