aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme
diff options
context:
space:
mode:
authorGravatar Elvio Basello2011-01-06 03:52:09 +0000
committerGravatar Elvio Basello2011-01-06 03:52:09 +0000
commit2dd83d7b75fa4728b307b211550a60dc17be2dd0 (patch)
tree69208f071500c450009b2985fc3b784c0dd77cae /src/modules/theme
parentfixed notifier selection (diff)
downloadKVIrc-2dd83d7b75fa4728b307b211550a60dc17be2dd0.tar.gz
KVIrc-2dd83d7b75fa4728b307b211550a60dc17be2dd0.tar.bz2
KVIrc-2dd83d7b75fa4728b307b211550a60dc17be2dd0.zip
renamed a global pointer;
more work on KDE notifier; git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5303 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme')
-rw-r--r--src/modules/theme/ThemeFunctions.cpp8
-rw-r--r--src/modules/theme/managementdialog.cpp10
2 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/theme/ThemeFunctions.cpp b/src/modules/theme/ThemeFunctions.cpp
index 681ac076c..89844cc7d 100644
--- a/src/modules/theme/ThemeFunctions.cpp
+++ b/src/modules/theme/ThemeFunctions.cpp
@@ -380,14 +380,14 @@ namespace ThemeFunctions
{
if(bMaximizeFrame)
{
- if(g_pFrame->isMaximized())
+ if(g_pMainWindow->isMaximized())
bMaximizeFrame = false;
}
if(bMaximizeFrame)
- g_pFrame->showMaximized();
+ g_pMainWindow->showMaximized();
- QPixmap pix = QPixmap::grabWidget(g_pFrame);
+ QPixmap pix = QPixmap::grabWidget(g_pMainWindow);
bool bResult = true;
if(pix.isNull())
@@ -398,7 +398,7 @@ namespace ThemeFunctions
}
if(bMaximizeFrame)
- g_pFrame->showNormal();
+ g_pMainWindow->showNormal();
return bResult;
}
}
diff --git a/src/modules/theme/managementdialog.cpp b/src/modules/theme/managementdialog.cpp
index a94b1ff04..3366ea871 100644
--- a/src/modules/theme/managementdialog.cpp
+++ b/src/modules/theme/managementdialog.cpp
@@ -235,9 +235,9 @@ void ThemeManagementDialog::display(bool bTopLevel)
m_pInstance->setParent(0);
}
} else {
- if(m_pInstance->parent() != g_pFrame->splitter())
+ if(m_pInstance->parent() != g_pMainWindow->splitter())
{
- m_pInstance->setParent(g_pFrame->splitter());
+ m_pInstance->setParent(g_pMainWindow->splitter());
}
}
} else {
@@ -245,7 +245,7 @@ void ThemeManagementDialog::display(bool bTopLevel)
{
m_pInstance = new ThemeManagementDialog(0);
} else {
- m_pInstance = new ThemeManagementDialog(g_pFrame->splitter());
+ m_pInstance = new ThemeManagementDialog(g_pMainWindow->splitter());
}
}
m_pInstance->show();
@@ -349,8 +349,8 @@ void ThemeManagementDialog::installFromFile()
void ThemeManagementDialog::getMoreThemes()
{
- if(!g_pFrame)return;
- g_pFrame->executeInternalCommand(KVI_INTERNALCOMMAND_OPENURL_KVIRC_THEMES);
+ if(!g_pMainWindow)return;
+ g_pMainWindow->executeInternalCommand(KVI_INTERNALCOMMAND_OPENURL_KVIRC_THEMES);
}
void ThemeManagementDialog::saveCurrentTheme()