summaryrefslogtreecommitdiffstats
path: root/kalzium/src/elementdataviewer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kalzium/src/elementdataviewer.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/elementdataviewer.cpp')
-rw-r--r--kalzium/src/elementdataviewer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kalzium/src/elementdataviewer.cpp b/kalzium/src/elementdataviewer.cpp
index 108889cc..d14eb343 100644
--- a/kalzium/src/elementdataviewer.cpp
+++ b/kalzium/src/elementdataviewer.cpp
@@ -30,18 +30,18 @@
#include <tqcheckbox.h>
#include <tqlabel.h>
-ElementDataViewer::ElementDataViewer( TQWidget *parent, const char* name )
+ElementDataViewer::ElementDataViewer( TQWidget *tqparent, const char* name )
: KDialogBase( KDialogBase::Plain,
i18n( "Plot Data") ,
Help | User1 | Close,
User1,
- parent, name )
+ tqparent, name )
{
d = KalziumDataObject::instance();
yData = new AxisData();
- TQHBoxLayout *layout = new TQHBoxLayout(plainPage(), 0, KDialog::spacingHint() );
+ TQHBoxLayout *tqlayout = new TQHBoxLayout(plainPage(), 0, KDialog::spacingHint() );
m_pPlotSetupWidget = new PlotSetupWidget( plainPage(), "plotsetup" );
m_pPlotSetupWidget->from->setMaxValue( d->numberOfElements() - 1 );
@@ -51,10 +51,10 @@ ElementDataViewer::ElementDataViewer( TQWidget *parent, const char* name )
m_pPlotWidget->setMinimumWidth( 200 );
m_pPlotWidget->resize( 400, m_pPlotWidget->height() );
- layout->addWidget( m_pPlotSetupWidget );
- layout->addWidget( m_pPlotWidget );
- layout->setStretchFactor( m_pPlotSetupWidget, 0 );
- layout->setStretchFactor( m_pPlotWidget, 1 );
+ tqlayout->addWidget( m_pPlotSetupWidget );
+ tqlayout->addWidget( m_pPlotWidget );
+ tqlayout->setStretchFactor( m_pPlotSetupWidget, 0 );
+ tqlayout->setStretchFactor( m_pPlotWidget, 1 );
// setup the list of names
EList::iterator it = d->ElementList.begin();
@@ -69,7 +69,7 @@ ElementDataViewer::ElementDataViewer( TQWidget *parent, const char* name )
setButtonText( User1, i18n("&Plot") );
m_actionCollection = new KActionCollection(this);
- KStdAction::quit(this, TQT_SLOT(slotClose()), m_actionCollection);
+ KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotClose()), m_actionCollection);
connect ( m_pPlotSetupWidget->KCB_y, TQT_SIGNAL( activated(int) ),
this, TQT_SLOT( drawPlot()) );
@@ -294,7 +294,7 @@ void ElementDataViewer::drawPlot()
/*
* reserve the memory for the KPlotObjects
*/
- //TODO QT4 replace TQMemArray with QVector
+ //TODO QT4 replace TQMemArray with TQVector
TQMemArray<KPlotObject*> dataPoint(num);
TQMemArray<KPlotObject*> dataPointLabel(num);