Browse Source

Drop support for 32-bit Windows

PR #19865.
master
Chocobo1 1 year ago committed by GitHub
parent
commit
7c0e3baf5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/CMakeLists.txt
  2. 2
      src/gui/advancedsettings.cpp
  3. 11
      src/gui/mainwindow.cpp

4
src/app/CMakeLists.txt

@ -140,10 +140,6 @@ if (STACKTRACE)
/DEBUG /DEBUG
/PDBALTPATH:$<TARGET_PDB_FILE_NAME:qbt_app> /PDBALTPATH:$<TARGET_PDB_FILE_NAME:qbt_app>
) )
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
target_compile_options(qbt_app PRIVATE /Oy-)
endif()
else() else()
target_link_options(qbt_app PUBLIC LINKER:--export-dynamic) target_link_options(qbt_app PUBLIC LINKER:--export-dynamic)

2
src/gui/advancedsettings.cpp

@ -480,7 +480,7 @@ void AdvancedSettings::loadAdvancedSettings()
m_comboBoxOSMemoryPriority.addItem(tr("Low"), QVariant::fromValue(MemoryPriority::Low)); m_comboBoxOSMemoryPriority.addItem(tr("Low"), QVariant::fromValue(MemoryPriority::Low));
m_comboBoxOSMemoryPriority.addItem(tr("Very low"), QVariant::fromValue(MemoryPriority::VeryLow)); m_comboBoxOSMemoryPriority.addItem(tr("Very low"), QVariant::fromValue(MemoryPriority::VeryLow));
m_comboBoxOSMemoryPriority.setCurrentIndex(m_comboBoxOSMemoryPriority.findData(QVariant::fromValue(app()->processMemoryPriority()))); m_comboBoxOSMemoryPriority.setCurrentIndex(m_comboBoxOSMemoryPriority.findData(QVariant::fromValue(app()->processMemoryPriority())));
addRow(OS_MEMORY_PRIORITY, (tr("Process memory priority (Windows >= 8 only)") addRow(OS_MEMORY_PRIORITY, (tr("Process memory priority")
+ u' ' + makeLink(u"https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-memory_priority_information", u"(?)")) + u' ' + makeLink(u"https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-memory_priority_information", u"(?)"))
, &m_comboBoxOSMemoryPriority); , &m_comboBoxOSMemoryPriority);
#endif #endif

11
src/gui/mainwindow.cpp

@ -34,11 +34,6 @@
#include <algorithm> #include <algorithm>
#include <chrono> #include <chrono>
#if defined(Q_OS_WIN)
#include <windows.h>
#include <versionhelpers.h> // must follow after windows.h
#endif
#include <QAction> #include <QAction>
#include <QActionGroup> #include <QActionGroup>
#include <QClipboard> #include <QClipboard>
@ -1913,13 +1908,7 @@ void MainWindow::installPython()
{ {
setCursor(QCursor(Qt::WaitCursor)); setCursor(QCursor(Qt::WaitCursor));
// Download python // Download python
#ifdef QBT_APP_64BIT
const auto installerURL = u"https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe"_s; const auto installerURL = u"https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe"_s;
#else
const auto installerURL = ::IsWindows8OrGreater()
? u"https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe"_s
: u"https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe"_s;
#endif
Net::DownloadManager::instance()->download( Net::DownloadManager::instance()->download(
Net::DownloadRequest(installerURL).saveToFile(true) Net::DownloadRequest(installerURL).saveToFile(true)
, Preferences::instance()->useProxyForGeneralPurposes() , Preferences::instance()->useProxyForGeneralPurposes()

Loading…
Cancel
Save