summaryrefslogtreecommitdiffstats
path: root/kword/KWStartupWidget.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 /kword/KWStartupWidget.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 'kword/KWStartupWidget.cpp')
-rw-r--r--kword/KWStartupWidget.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kword/KWStartupWidget.cpp b/kword/KWStartupWidget.cpp
index fe22f534..644eca2b 100644
--- a/kword/KWStartupWidget.cpp
+++ b/kword/KWStartupWidget.cpp
@@ -23,41 +23,41 @@
#include <KoPageLayoutColumns.h>
#include <kdebug.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
-KWStartupWidget::KWStartupWidget(QWidget *parent, KWDocument *doc, const KoColumns &columns)
- : KWStartupWidgetBase(parent) {
+KWStartupWidget::KWStartupWidget(TQWidget *tqparent, KWDocument *doc, const KoColumns &columns)
+ : KWStartupWidgetBase(tqparent) {
m_columns = columns;
m_layout = KoPageLayout::standardLayout();
m_doc = doc;
setFocusProxy(m_createButton);
- QVBoxLayout *lay = new QVBoxLayout(m_sizeTab, KDialog::marginHint());
+ TQVBoxLayout *lay = new TQVBoxLayout(m_sizeTab, KDialog::marginHint());
m_sizeWidget = new KoPageLayoutSize(m_sizeTab, m_layout, m_doc->unit(), m_columns , true, true);
lay->addWidget(m_sizeWidget);
- lay = new QVBoxLayout(m_columnsTab, KDialog::marginHint());
+ lay = new TQVBoxLayout(m_columnsTab, KDialog::marginHint());
m_columnsWidget = new KoPageLayoutColumns(m_columnsTab, m_columns, m_doc->unit(), m_layout);
lay->addWidget(m_columnsWidget);
- connect (m_columnsWidget, SIGNAL( propertyChange(KoColumns&)),
- this, SLOT (columnsUpdated( KoColumns&)));
+ connect (m_columnsWidget, TQT_SIGNAL( propertyChange(KoColumns&)),
+ this, TQT_SLOT (columnsUpdated( KoColumns&)));
- connect (m_sizeWidget, SIGNAL( propertyChange(KoPageLayout&)),
- this, SLOT (sizeUpdated( KoPageLayout&)));
+ connect (m_sizeWidget, TQT_SIGNAL( propertyChange(KoPageLayout&)),
+ this, TQT_SLOT (sizeUpdated( KoPageLayout&)));
- connect (m_createButton, SIGNAL( clicked() ), this, SLOT (buttonClicked()) );
+ connect (m_createButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT (buttonClicked()) );
- connect (m_WpStyleCheckbox, SIGNAL(toggled(bool)), m_sizeWidget, SLOT(setEnableBorders(bool)));
- connect (m_WpStyleCheckbox, SIGNAL(toggled(bool)), m_columnsWidget, SLOT(setEnableColumns(bool)));
+ connect (m_WpStyleCheckbox, TQT_SIGNAL(toggled(bool)), m_sizeWidget, TQT_SLOT(setEnableBorders(bool)));
+ connect (m_WpStyleCheckbox, TQT_SIGNAL(toggled(bool)), m_columnsWidget, TQT_SLOT(setEnableColumns(bool)));
}
-void KWStartupWidget::sizeUpdated(KoPageLayout &layout) {
- m_layout = layout;
- m_columnsWidget->setLayout(layout);
+void KWStartupWidget::sizeUpdated(KoPageLayout &tqlayout) {
+ m_layout = tqlayout;
+ m_columnsWidget->setLayout(tqlayout);
}
void KWStartupWidget::columnsUpdated(KoColumns &columns) {