From 87a016680e3677da3993f333561e79eb0cead7d5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 29 Jun 2011 16:05:55 +0000 Subject: TQt4 port ktechlab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/itemeditor.cpp | 54 +++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/gui/itemeditor.cpp') diff --git a/src/gui/itemeditor.cpp b/src/gui/itemeditor.cpp index bdfe539..3e8a30e 100644 --- a/src/gui/itemeditor.cpp +++ b/src/gui/itemeditor.cpp @@ -17,63 +17,63 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include ItemEditor * ItemEditor::m_pSelf = 0l; -ItemEditor * ItemEditor::self( KateMDI::ToolView * parent ) +ItemEditor * ItemEditor::self( KateMDI::ToolView * tqparent ) { if (!m_pSelf) { - assert(parent); - m_pSelf = new ItemEditor(parent); + assert(tqparent); + m_pSelf = new ItemEditor(tqparent); } return m_pSelf; } -ItemEditor::ItemEditor( KateMDI::ToolView * parent ) - : QWidget( (QWidget*)parent, "Item Editor" ) +ItemEditor::ItemEditor( KateMDI::ToolView * tqparent ) + : TQWidget( (TQWidget*)tqparent, "Item Editor" ) { - QWhatsThis::add( this, i18n("This allows editing of advanced properties of the selected item(s). Right click on the picture of the item to set the orientation.") ); + TQWhatsThis::add( this, i18n("This allows editing of advanced properties of the selected item(s). Right click on the picture of the item to set the orientation.") ); - QVBoxLayout *vlayout = new QVBoxLayout( this, 0, 6 ); + TQVBoxLayout *vtqlayout = new TQVBoxLayout( this, 0, 6 ); - m_nameLbl = new QLabel( this, "" ); - vlayout->addWidget(m_nameLbl); - vlayout->addSpacing(8); + m_nameLbl = new TQLabel( this, "" ); + vtqlayout->addWidget(m_nameLbl); + vtqlayout->addSpacing(8); propList = new PropertiesListView(this); - vlayout->addWidget(propList); - QWhatsThis::add(propList,i18n("Shows properties associated with the currently selected item(s).

Select a property to change its value. If multiple items are selected with different values then the property will appear greyed out, use ""Merge Properties"" to make them the same.

Select ""Defaults to set all properties to their default values""")); + vtqlayout->addWidget(propList); + TQWhatsThis::add(propList,i18n("Shows properties associated with the currently selected item(s).

Select a property to change its value. If multiple items are selected with different values then the property will appear greyed out, use ""Merge Properties"" to make them the same.

Select ""Defaults to set all properties to their default values""")); - QHBoxLayout *h1Layout = new QHBoxLayout( vlayout, 4 ); - QSpacerItem *spacer1 = new QSpacerItem( 1, 1 ); + TQHBoxLayout *h1Layout = new TQHBoxLayout( vtqlayout, 4 ); + TQSpacerItem *spacer1 = new TQSpacerItem( 1, 1 ); h1Layout->addItem(spacer1); - m_defaultsBtn = new QPushButton( i18n("Defaults"), this); + m_defaultsBtn = new TQPushButton( i18n("Defaults"), this); m_defaultsBtn->setEnabled(false); - connect(m_defaultsBtn,SIGNAL(clicked()),propList,SLOT(slotSetDefaults())); + connect(m_defaultsBtn,TQT_SIGNAL(clicked()),propList,TQT_SLOT(slotSetDefaults())); h1Layout->addWidget(m_defaultsBtn); - m_mergeBtn = new QPushButton( i18n("Merge properties"), this ); + m_mergeBtn = new TQPushButton( i18n("Merge properties"), this ); m_mergeBtn->setEnabled(false); - connect(m_mergeBtn,SIGNAL(clicked()),this,SLOT(mergeProperties())); + connect(m_mergeBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(mergeProperties())); h1Layout->addWidget(m_mergeBtn); - // Orientation widget stuff - QHBoxLayout *h2Layout = new QHBoxLayout( vlayout, 6 ); - QSpacerItem *spacer2 = new QSpacerItem( 1, 1 ); + // Qt::Orientation widget stuff + TQHBoxLayout *h2Layout = new TQHBoxLayout( vtqlayout, 6 ); + TQSpacerItem *spacer2 = new TQSpacerItem( 1, 1 ); h2Layout->addItem(spacer2); m_orientationWidget = new OrientationWidget(this); h2Layout->addWidget(m_orientationWidget); - QWhatsThis::add(m_orientationWidget,i18n("Change the orientation of the selected item by selecting the appropriate button")); - QSpacerItem *spacer3 = new QSpacerItem( 1, 1 ); + TQWhatsThis::add(m_orientationWidget,i18n("Change the orientation of the selected item by selecting the appropriate button")); + TQSpacerItem *spacer3 = new TQSpacerItem( 1, 1 ); h2Layout->addItem(spacer3); slotClear(); -- cgit v1.2.1