128 lines
3.4 KiB
Diff
128 lines
3.4 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 67b61fa..3552f08 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
#set(CMAKE_AUTOUIC ON)
|
|
|
|
-find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network)
|
|
+find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
|
|
find_package(BISON)
|
|
find_package(FLEX)
|
|
|
|
@@ -123,7 +123,7 @@ add_executable(tikzit
|
|
${QT_RESOURCES})
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
- Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network
|
|
+ Qt5::Core Qt5::Gui Qt5::Widgets
|
|
${Poppler_LIBRARIES})
|
|
|
|
install (TARGETS tikzit DESTINATION bin)
|
|
diff --git a/src/gui/mainmenu.ui b/src/gui/mainmenu.ui
|
|
index 11778db..567bb69 100644
|
|
--- a/src/gui/mainmenu.ui
|
|
+++ b/src/gui/mainmenu.ui
|
|
@@ -357,6 +357,9 @@
|
|
</property>
|
|
</action>
|
|
<action name="actionCheck_for_updates_automatically">
|
|
+ <property name="enabled">
|
|
+ <bool>false</bool>
|
|
+ </property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
@@ -365,6 +368,9 @@
|
|
</property>
|
|
</action>
|
|
<action name="actionCheck_now">
|
|
+ <property name="enabled">
|
|
+ <bool>false</bool>
|
|
+ </property>
|
|
<property name="text">
|
|
<string>Check now</string>
|
|
</property>
|
|
diff --git a/src/tikzit.cpp b/src/tikzit.cpp
|
|
index a286630..27e4557 100644
|
|
--- a/src/tikzit.cpp
|
|
+++ b/src/tikzit.cpp
|
|
@@ -30,7 +30,6 @@
|
|
#include <QMessageBox>
|
|
#include <QRegularExpression>
|
|
#include <QVersionNumber>
|
|
-#include <QNetworkAccessManager>
|
|
#include <QColorDialog>
|
|
|
|
// application-level instance of Tikzit
|
|
@@ -70,6 +69,7 @@ void Tikzit::init()
|
|
QString styleFile = settings.value("previous-tikzstyles-file").toString();
|
|
if (!styleFile.isEmpty()) loadStyles(styleFile);
|
|
|
|
+ /*
|
|
QVariant check = settings.value("check-for-updates");
|
|
if (check.isNull()) {
|
|
int resp = QMessageBox::question(nullptr,
|
|
@@ -87,6 +87,8 @@ void Tikzit::init()
|
|
if (check.toBool()) {
|
|
checkForUpdates(false);
|
|
}
|
|
+ */
|
|
+ setCheckForUpdates(false); //disable gui toolbar menu checkbox
|
|
|
|
_preview = new PreviewWindow();
|
|
_latex = nullptr;
|
|
@@ -352,6 +354,8 @@ void Tikzit::setCheckForUpdates(bool check)
|
|
|
|
void Tikzit::checkForUpdates(bool manual)
|
|
{
|
|
+ return;
|
|
+ /*
|
|
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
|
|
|
|
if (manual) {
|
|
@@ -363,8 +367,10 @@ void Tikzit::checkForUpdates(bool manual)
|
|
}
|
|
|
|
manager->get(QNetworkRequest(QUrl("https://tikzit.github.io/latest-version.txt")));
|
|
+ */
|
|
}
|
|
|
|
+/*
|
|
void Tikzit::updateAuto(QNetworkReply *reply)
|
|
{
|
|
updateReply(reply, false);
|
|
@@ -422,6 +428,7 @@ void Tikzit::updateReply(QNetworkReply *reply, bool manual)
|
|
}
|
|
}
|
|
}
|
|
+*/
|
|
|
|
void Tikzit::makePreview()
|
|
{
|
|
diff --git a/src/tikzit.h b/src/tikzit.h
|
|
index 5debdf3..bff96d7 100644
|
|
--- a/src/tikzit.h
|
|
+++ b/src/tikzit.h
|
|
@@ -71,7 +71,6 @@
|
|
#include <QMainWindow>
|
|
#include <QFont>
|
|
#include <QColor>
|
|
-#include <QNetworkReply>
|
|
|
|
// Number of pixels between (0,0) and (1,0) at 100% zoom level. This should be
|
|
// divisible by 8 to avoid rounding errors with e.g. grid-snapping.
|
|
@@ -142,9 +141,11 @@ public slots:
|
|
void clearRecentFiles();
|
|
void setCheckForUpdates(bool check);
|
|
void checkForUpdates(bool manual);
|
|
+ /*
|
|
void updateAuto(QNetworkReply *reply);
|
|
void updateManual(QNetworkReply *reply);
|
|
void updateReply(QNetworkReply *reply, bool manual);
|
|
+ */
|
|
void makePreview();
|
|
void cleanupLatex();
|
|
|