fix vSync

This commit is contained in:
Le Tan 2020-08-31 21:17:50 +08:00
parent 1fb6e777a3
commit d3e1e560c4
4 changed files with 11 additions and 15 deletions

View File

@ -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;

View File

@ -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 \

View File

@ -214,4 +214,4 @@ void VSync::uploadFinish()
m_type = VSync::SyncType::None; m_type = VSync::SyncType::None;
m_target = VSync::SyncTarget::None; m_target = VSync::SyncTarget::None;
emit this->uploadSuccess(); emit this->uploadSuccess();
} }

View File

@ -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;
@ -3746,4 +3746,4 @@ void VMainWindow::onDownloadSuccess()
void VMainWindow::onUploadSuccess() void VMainWindow::onUploadSuccess()
{ {
} }