From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- .../plugins/viewplugins/substrate/dlg_substrate.cc | 12 +++--- .../plugins/viewplugins/substrate/dlg_substrate.h | 9 ++-- .../substrate/kis_repeating_substrate.h | 4 +- krita/plugins/viewplugins/substrate/substrate.cc | 16 ++++---- krita/plugins/viewplugins/substrate/substrate.h | 3 +- .../plugins/viewplugins/substrate/wdgsubstrate.ui | 48 +++++++++++----------- 6 files changed, 47 insertions(+), 45 deletions(-) (limited to 'krita/plugins/viewplugins/substrate') diff --git a/krita/plugins/viewplugins/substrate/dlg_substrate.cc b/krita/plugins/viewplugins/substrate/dlg_substrate.cc index d1bbe38f..51de887d 100644 --- a/krita/plugins/viewplugins/substrate/dlg_substrate.cc +++ b/krita/plugins/viewplugins/substrate/dlg_substrate.cc @@ -24,19 +24,19 @@ #include "wdgsubstrate.h" -DlgSubstrate::DlgSubstrate( QWidget * parent, +DlgSubstrate::DlgSubstrate( TQWidget * tqparent, const char * name) - : super (parent, name, true, i18n("Color Range"), Ok | Cancel, Ok) + : super (tqparent, name, true, i18n("Color Range"), Ok | Cancel, Ok) { - m_previewPix = QPixmap(); + m_previewPix = TQPixmap(); m_page = new WdgSubstrate(this, "substrate"); Q_CHECK_PTR(m_page); setCaption(i18n("Substrate")); setMainWidget(m_page); resize(m_page -> size()); - connect(this, SIGNAL(okClicked()), - this, SLOT(okClicked())); + connect(this, TQT_SIGNAL(okClicked()), + this, TQT_SLOT(okClicked())); } DlgSubstrate::~DlgSubstrate() @@ -44,7 +44,7 @@ DlgSubstrate::~DlgSubstrate() delete m_page; } -void DlgSubstrate::setPixmap(QPixmap pix) +void DlgSubstrate::setPixmap(TQPixmap pix) { m_previewPix = pix; m_previewPix.detach(); diff --git a/krita/plugins/viewplugins/substrate/dlg_substrate.h b/krita/plugins/viewplugins/substrate/dlg_substrate.h index 0a566b11..869eaafa 100644 --- a/krita/plugins/viewplugins/substrate/dlg_substrate.h +++ b/krita/plugins/viewplugins/substrate/dlg_substrate.h @@ -20,7 +20,7 @@ #ifndef DLG_SUBSTRATE #define DLG_SUBSTRATE -#include +#include #include @@ -36,17 +36,18 @@ class DlgSubstrate: public KDialogBase { typedef KDialogBase super; Q_OBJECT + TQ_OBJECT public: - DlgSubstrate(QWidget * parent = 0, + DlgSubstrate(TQWidget * tqparent = 0, const char* name = 0); ~DlgSubstrate(); /** * Set the initial preview pixmap */ - void setPixmap(QPixmap pix); + void setPixmap(TQPixmap pix); private slots: @@ -55,7 +56,7 @@ private slots: private: WdgSubstrate * m_page; - QPixmap m_previewPix; + TQPixmap m_previewPix; }; #endif // DLG_SUBSTRATE diff --git a/krita/plugins/viewplugins/substrate/kis_repeating_substrate.h b/krita/plugins/viewplugins/substrate/kis_repeating_substrate.h index 9dc512d1..1a229dc1 100644 --- a/krita/plugins/viewplugins/substrate/kis_repeating_substrate.h +++ b/krita/plugins/viewplugins/substrate/kis_repeating_substrate.h @@ -18,7 +18,7 @@ #ifndef KIS_SUBSTRATE_H #define KIS_SUBSTRATE_H -#include +#include #include class KisImage; @@ -55,7 +55,7 @@ public: * Copy the pixel values in the specified rect into an array of Substrate. * Make sure the array is big enough! */ - virtual void getPixels(KisSubstratePixel * /*substrate*/, const QRect & /*rc*/) = 0; + virtual void getPixels(KisSubstratePixel * /*substrate*/, const TQRect & /*rc*/) = 0; /** * Return a pointer to the substrate at the specified position. Note that diff --git a/krita/plugins/viewplugins/substrate/substrate.cc b/krita/plugins/viewplugins/substrate/substrate.cc index aac9ef94..996516e1 100644 --- a/krita/plugins/viewplugins/substrate/substrate.cc +++ b/krita/plugins/viewplugins/substrate/substrate.cc @@ -19,8 +19,8 @@ #include -#include -#include +#include +#include #include #include @@ -44,18 +44,18 @@ typedef KGenericFactory SubstrateFactory; K_EXPORT_COMPONENT_FACTORY( kritasubstrate, SubstrateFactory( "krita" ) ) -SubstratePlugin::SubstratePlugin(QObject *parent, const char *name, const QStringList &) - : KParts::Plugin(parent, name) +SubstratePlugin::SubstratePlugin(TQObject *tqparent, const char *name, const TQStringList &) + : KParts::Plugin(tqparent, name) { - if ( parent->inherits("KisView") ) + if ( tqparent->inherits("KisView") ) { setInstance(SubstrateFactory::instance()); setXMLFile(locate("data","kritaplugins/substrate.rc"), true); - (void) new KAction(i18n("&Substrate..."), 0, 0, this, SLOT(slotSubstrateActivated()), actionCollection(), "substrate"); + (void) new KAction(i18n("&Substrate..."), 0, 0, this, TQT_SLOT(slotSubstrateActivated()), actionCollection(), "substrate"); - m_view = (KisView*) parent; + m_view = (KisView*) tqparent; } } @@ -67,7 +67,7 @@ void SubstratePlugin::slotSubstrateActivated() { DlgSubstrate * dlgSubstrate = new DlgSubstrate(m_view, "Substrate"); Q_CHECK_PTR(dlgSubstrate); - if (dlgSubstrate -> exec() == QDialog::Accepted) { + if (dlgSubstrate -> exec() == TQDialog::Accepted) { // Retrieve changes made by dialog // Apply changes to layer (selection) } diff --git a/krita/plugins/viewplugins/substrate/substrate.h b/krita/plugins/viewplugins/substrate/substrate.h index ebb9e48e..2d00e234 100644 --- a/krita/plugins/viewplugins/substrate/substrate.h +++ b/krita/plugins/viewplugins/substrate/substrate.h @@ -28,8 +28,9 @@ class KisView; class SubstratePlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - SubstratePlugin(QObject *parent, const char *name, const QStringList &); + SubstratePlugin(TQObject *tqparent, const char *name, const TQStringList &); virtual ~SubstratePlugin(); private slots: diff --git a/krita/plugins/viewplugins/substrate/wdgsubstrate.ui b/krita/plugins/viewplugins/substrate/wdgsubstrate.ui index 846b43a7..be0713ed 100644 --- a/krita/plugins/viewplugins/substrate/wdgsubstrate.ui +++ b/krita/plugins/viewplugins/substrate/wdgsubstrate.ui @@ -1,6 +1,6 @@ WdgSubstrate - + Form1 @@ -16,7 +16,7 @@ unnamed - + grpCustom @@ -27,15 +27,15 @@ unnamed - + - layout3 + tqlayout3 unnamed - + Custom @@ -53,7 +53,7 @@ - + textLabel1 @@ -61,7 +61,7 @@ Save custom substrate as: - + lblPredefined @@ -72,7 +72,7 @@ cmbPredefinedCanvases - + lblColor @@ -83,22 +83,22 @@ bnBackground - + lineEdit1 - + - layout2 + tqlayout2 unnamed - + slAbsorbency @@ -106,7 +106,7 @@ Horizontal - + slFiber @@ -114,7 +114,7 @@ Horizontal - + textLabel9 @@ -122,7 +122,7 @@ Grainy - + lblSmoothness @@ -133,7 +133,7 @@ slSlippery - + lblAbsorbency @@ -144,7 +144,7 @@ slAbsorbency - + slSlippery @@ -152,7 +152,7 @@ Horizontal - + lblHeight @@ -163,7 +163,7 @@ slHeight - + lblFiber @@ -174,7 +174,7 @@ slFiber - + lblRough @@ -182,7 +182,7 @@ Rough - + slHeight @@ -190,7 +190,7 @@ Horizontal - + textLabel11 @@ -198,7 +198,7 @@ Absorbent - + textLabel10 @@ -214,7 +214,7 @@ - + kcolorbutton.h -- cgit v1.2.1