aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/ThemeManagementDialog.cpp
diff options
context:
space:
mode:
authorGravatar ctrlaltca2023-11-28 10:38:17 +0100
committerGravatar GitHub2023-11-28 10:38:17 +0100
commitf8b64fbc38eead48cbccff4f75d11d3224b400dd (patch)
tree26ade25e8d87abf036ea7f429f8f5121efa914e2 /src/modules/theme/ThemeManagementDialog.cpp
parentIrcview: Fix out of bound memory read when a line ends with a tab; fix #2377 (diff)
downloadKVIrc-f8b64fbc38eead48cbccff4f75d11d3224b400dd.tar.gz
KVIrc-f8b64fbc38eead48cbccff4f75d11d3224b400dd.tar.bz2
KVIrc-f8b64fbc38eead48cbccff4f75d11d3224b400dd.zip
Remove QWebEngine usage in core. Rewrite web package manager (#2570)
* Remove use of QWebEngine from help module * Rewrite the WebPackageManagementDialog to use an http/json API instead of a webpage; drop QWebEngine usage * Edited repository urls to https://kvirc.github.io/
Diffstat (limited to 'src/modules/theme/ThemeManagementDialog.cpp')
-rw-r--r--src/modules/theme/ThemeManagementDialog.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp
index fb6317000..644197c16 100644
--- a/src/modules/theme/ThemeManagementDialog.cpp
+++ b/src/modules/theme/ThemeManagementDialog.cpp
@@ -23,10 +23,7 @@
//=============================================================================
#include "kvi_settings.h"
-#if defined(COMPILE_WEBENGINE_SUPPORT)
#include "WebThemeInterfaceDialog.h"
-#endif
-
#include "ThemeManagementDialog.h"
#include "PackThemeDialog.h"
#include "SaveThemeDialog.h"
@@ -113,9 +110,8 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent)
: QWidget(parent)
{
m_pItemDelegate = nullptr;
-#ifdef COMPILE_WEBENGINE_SUPPORT
m_pWebThemeInterfaceDialog = nullptr;
-#endif
+
setObjectName("theme_options_widget");
setWindowTitle(__tr2qs_ctx("Manage Themes - KVIrc", "theme"));
setWindowIcon(*(g_pIconManager->getSmallIcon(KviIconManager::Theme)));
@@ -144,7 +140,6 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent)
m_pPackThemeButton = new QToolButton(pHBox);
m_pPackThemeButton->setIcon(*(g_pIconManager->getBigIcon(KVI_BIGICON_PACK)));
-
m_pPackThemeButton->setIconSize(QSize(32, 32));
m_pPackThemeButton->setToolTip(__tr2qs_ctx("Export selected themes to a distributable package", "theme"));
connect(m_pPackThemeButton, SIGNAL(clicked()), this, SLOT(packTheme()));
@@ -241,13 +236,11 @@ ThemeManagementDialog::~ThemeManagementDialog()
delete m_pItemDelegate;
g_rectManagementDialogGeometry = QRect(pos().x(), pos().y(), size().width(), size().height());
m_pInstance = nullptr;
-#ifdef COMPILE_WEBENGINE_SUPPORT
if(m_pWebThemeInterfaceDialog)
{
m_pWebThemeInterfaceDialog->deleteLater();
m_pWebThemeInterfaceDialog = nullptr;
}
-#endif //COMPILE_WEBENGINE_SUPPORT
}
void ThemeManagementDialog::closeClicked()
@@ -418,7 +411,6 @@ void ThemeManagementDialog::installFromFile()
void ThemeManagementDialog::getMoreThemes()
{
-#ifdef COMPILE_WEBENGINE_SUPPORT
if(m_pWebThemeInterfaceDialog)
{
m_pWebThemeInterfaceDialog->show();
@@ -429,18 +421,11 @@ void ThemeManagementDialog::getMoreThemes()
QObject::connect(m_pWebThemeInterfaceDialog, SIGNAL(destroyed()), this, SLOT(webThemeInterfaceDialogDestroyed()));
m_pWebThemeInterfaceDialog->show();
}
-#else
- if(!g_pMainWindow)
- return;
- g_pMainWindow->executeInternalCommand(KVI_INTERNALCOMMAND_OPENURL_KVIRC_THEMES);
-#endif
}
void ThemeManagementDialog::webThemeInterfaceDialogDestroyed()
{
-#ifdef COMPILE_WEBENGINE_SUPPORT
m_pWebThemeInterfaceDialog = nullptr;
-#endif
fillThemeBox();
}