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();
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;

View File

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

View File

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

View File

@ -52,7 +52,7 @@
#include "vlistue.h"
#include "vtagexplorer.h"
#include "vmdeditor.h"
#include "vSync.h"
#include "utils/vSync.h"
extern VConfigManager *g_config;
@ -3746,4 +3746,4 @@ void VMainWindow::onDownloadSuccess()
void VMainWindow::onUploadSuccess()
{
}
}