summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/forms/widgets/kexidbutils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/plugins/forms/widgets/kexidbutils.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbutils.cpp')
-rw-r--r--kexi/plugins/forms/widgets/kexidbutils.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbutils.cpp b/kexi/plugins/forms/widgets/kexidbutils.cpp
index 0c08d64c..ba9f2aec 100644
--- a/kexi/plugins/forms/widgets/kexidbutils.cpp
+++ b/kexi/plugins/forms/widgets/kexidbutils.cpp
@@ -30,15 +30,15 @@
#include <widget/utils/kexicontextmenuutils.h>
-QColor lighterGrayBackgroundColor(const QPalette& palette)
+TQColor lighterGrayBackgroundColor(const TQPalette& palette)
{
return KexiUtils::blendedColors(palette.active().background(), palette.active().base(), 1, 2);
}
//-------
-KexiDBWidgetContextMenuExtender::KexiDBWidgetContextMenuExtender( QObject* parent, KexiDataItemInterface* iface )
- : QObject(parent)
+KexiDBWidgetContextMenuExtender::KexiDBWidgetContextMenuExtender( TQObject* tqparent, KexiDataItemInterface* iface )
+ : TQObject(tqparent)
, m_iface(iface)
, m_contextMenuHasTitle(false)
{
@@ -48,7 +48,7 @@ KexiDBWidgetContextMenuExtender::~KexiDBWidgetContextMenuExtender()
{
}
-void KexiDBWidgetContextMenuExtender::createTitle(QPopupMenu *menu)
+void KexiDBWidgetContextMenuExtender::createTitle(TQPopupMenu *menu)
{
if (!menu)
return;
@@ -56,9 +56,9 @@ void KexiDBWidgetContextMenuExtender::createTitle(QPopupMenu *menu)
KPopupTitle *titleItem = new KPopupTitle();
const int id = m_contextMenu->insertItem(titleItem, -1, 0);
m_contextMenu->setItemEnabled(id, false);
- QString icon;
- if (dynamic_cast<QWidget*>(m_iface))
- icon = KexiFormPart::library()->iconName(dynamic_cast<QWidget*>(m_iface)->className());
+ TQString icon;
+ if (dynamic_cast<TQWidget*>(m_iface))
+ icon = KexiFormPart::library()->iconName(dynamic_cast<TQWidget*>(m_iface)->className());
m_contextMenuHasTitle = m_iface->columnInfo() ?
KexiContextMenuUtils::updateTitle(m_contextMenu,