aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/ThemeManagementDialog.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-03-17 14:55:29 +0000
committerGravatar Szymon Tomasz Stefanek2011-03-17 14:55:29 +0000
commit51d1524d760f0b9946d2e41b66250faa96a23da4 (patch)
treec5eac07090d9cc431cd1da1e542c6d3a4e327c9c /src/modules/theme/ThemeManagementDialog.cpp
parentChange spaces to tabs, reindent, simplify (diff)
downloadKVIrc-51d1524d760f0b9946d2e41b66250faa96a23da4.tar.gz
KVIrc-51d1524d760f0b9946d2e41b66250faa96a23da4.tar.bz2
KVIrc-51d1524d760f0b9946d2e41b66250faa96a23da4.zip
Start generalizing the web package management interface
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5618 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/ThemeManagementDialog.cpp')
-rw-r--r--src/modules/theme/ThemeManagementDialog.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp
index 045609a84..e79cfc02a 100644
--- a/src/modules/theme/ThemeManagementDialog.cpp
+++ b/src/modules/theme/ThemeManagementDialog.cpp
@@ -230,13 +230,13 @@ ThemeManagementDialog::~ThemeManagementDialog()
if (m_pItemDelegate) delete m_pItemDelegate;
g_rectManagementDialogGeometry = QRect(pos().x(),pos().y(),size().width(),size().height());
m_pInstance = 0;
- #if defined(COMPILE_WEBKIT_SUPPORT) && (QT_VERSION >= 0x040600)
+#ifdef COMPILE_WEBKIT_SUPPORT
if(m_pWebThemeInterfaceDialog)
{
delete m_pWebThemeInterfaceDialog;
m_pWebThemeInterfaceDialog = 0;
}
- #endif
+#endif //COMPILE_WEBKIT_SUPPORT
}
void ThemeManagementDialog::closeClicked()
@@ -371,17 +371,19 @@ void ThemeManagementDialog::installFromFile()
void ThemeManagementDialog::getMoreThemes()
{
- #if defined(COMPILE_WEBKIT_SUPPORT) && (QT_VERSION >= 0x040600)
- if (m_pWebThemeInterfaceDialog) m_pWebThemeInterfaceDialog->show();
- else{
- m_pWebThemeInterfaceDialog = new WebThemeInterfaceDialog();
- m_pWebThemeInterfaceDialog->show();
+#ifdef COMPILE_WEBKIT_SUPPORT
+ if(m_pWebThemeInterfaceDialog)
+ {
+ m_pWebThemeInterfaceDialog->show();
+ } else {
+ m_pWebThemeInterfaceDialog = new WebThemeInterfaceDialog();
+ m_pWebThemeInterfaceDialog->show();
}
- return;
- #else
- if(!g_pMainWindow)return;
+#else
+ if(!g_pMainWindow)
+ return;
g_pMainWindow->executeInternalCommand(KVI_INTERNALCOMMAND_OPENURL_KVIRC_THEMES);
- #endif
+#endif
}