diff options
Diffstat (limited to 'kspread/plugins/calculator')
-rw-r--r-- | kspread/plugins/calculator/configdlg.cpp | 8 | ||||
-rw-r--r-- | kspread/plugins/calculator/kcalc.cpp | 48 | ||||
-rw-r--r-- | kspread/plugins/calculator/kcalc.h | 2 |
3 files changed, 29 insertions, 29 deletions
diff --git a/kspread/plugins/calculator/configdlg.cpp b/kspread/plugins/calculator/configdlg.cpp index e02d914d..cec64193 100644 --- a/kspread/plugins/calculator/configdlg.cpp +++ b/kspread/plugins/calculator/configdlg.cpp @@ -29,7 +29,7 @@ #include <klocale.h> #include <kdialog.h> -#include <layout.h> +#include <tqlayout.h> // Undefine HAVE_LONG_DOUBLE for Beta 4 since RedHat 5.0 comes with a borken // glibc @@ -48,10 +48,10 @@ ConfigDlg::ConfigDlg(TQWidget *parent, const char *name, DefStruct *defstruct) lay1->setSpacing( KDialog::spacingHint() ); box = new TQGroupBox(0, Qt::Vertical, i18n("Defaults"), this, "box"); - box->layout()->setSpacing(KDialog::spacingHint()); - box->layout()->setMargin(KDialog::marginHint()); + box->tqlayout()->setSpacing(KDialog::spacingHint()); + box->tqlayout()->setMargin(KDialog::marginHint()); - TQGridLayout *grid1 = new TQGridLayout(box->layout(),8,2); + TQGridLayout *grid1 = new TQGridLayout(box->tqlayout(),8,2); label1 = new TQLabel(box); label1->setText(i18n("Foreground color:")); grid1->addWidget(label1,0,0); diff --git a/kspread/plugins/calculator/kcalc.cpp b/kspread/plugins/calculator/kcalc.cpp index b15f844c..4c80e7b4 100644 --- a/kspread/plugins/calculator/kcalc.cpp +++ b/kspread/plugins/calculator/kcalc.cpp @@ -26,7 +26,7 @@ #include "version.h" #include <klocale.h> #include <knotifyclient.h> -#include <layout.h> +#include <tqlayout.h> #include <tqobjectlist.h> #include <tqpushbutton.h> #include <kapplication.h> @@ -80,7 +80,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char // Create the display calc_display = new DLabel( this, "display" ); calc_display->setFrameStyle( TQFrame::WinPanel | TQFrame::Sunken ); - calc_display->setAlignment( AlignRight|AlignVCenter ); + calc_display->tqsetAlignment( AlignRight|AlignVCenter ); calc_display->setFocus(); calc_display->setFocusPolicy( TQ_StrongFocus ); @@ -89,18 +89,18 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char statusINVLabel = new TQLabel( this, "INV" ); Q_CHECK_PTR( statusINVLabel ); statusINVLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - statusINVLabel->setAlignment( AlignCenter ); + statusINVLabel->tqsetAlignment( AlignCenter ); statusINVLabel->setText("NORM"); statusHYPLabel = new TQLabel( this, "HYP" ); Q_CHECK_PTR( statusHYPLabel ); statusHYPLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - statusHYPLabel->setAlignment( AlignCenter ); + statusHYPLabel->tqsetAlignment( AlignCenter ); statusERRORLabel = new TQLabel( this, "ERROR" ); Q_CHECK_PTR( statusERRORLabel ); statusERRORLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - statusERRORLabel->setAlignment( AlignLeft|AlignVCenter ); + statusERRORLabel->tqsetAlignment( AlignLeft|AlignVCenter ); // create angle button group @@ -390,12 +390,12 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char mainLayout->addLayout(btnLayout); mainLayout->addLayout(statusLayout); - // button layout + // button tqlayout btnLayout->addWidget(mSmallPage,0,AlignTop); btnLayout->addSpacing(mInternalSpacing); btnLayout->addWidget(mLargePage,0,AlignTop); - // small button layout + // small button tqlayout smallBtnLayout->addWidget(pbhyp, 0, 0); smallBtnLayout->addWidget(pbinv, 0, 1); smallBtnLayout->addWidget(pbA, 0, 2); @@ -427,7 +427,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char smallBtnLayout->setRowStretch(4, 0); smallBtnLayout->setRowStretch(5, 0); - // large button layout + // large button tqlayout largeBtnLayout->addWidget(pbEE, 0, 0); largeBtnLayout->addWidget(pbMR, 0, 1); largeBtnLayout->addWidget(pbMplusminus, 0, 2); @@ -472,11 +472,11 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char topLayout->addWidget(calc_display, 10); - // radiobutton layout + // radiobutton tqlayout radioLayout->addWidget(base_group); radioLayout->addWidget(angle_group); - // status layout + // status tqlayout statusLayout->addWidget(statusINVLabel); statusLayout->addWidget(statusHYPLabel); statusLayout->addWidget(statusERRORLabel, 10); @@ -578,7 +578,7 @@ void TQtCalculator::updateGeometry() s.setWidth(mSmallPage->fontMetrics().width("MMM")); s.setHeight(mSmallPage->fontMetrics().lineSpacing()); - l = (TQObjectList*)mSmallPage->children(); // silence please + l = (TQObjectList*)mSmallPage->tqchildren(); // silence please for(uint i=0; i < l->count(); i++) { @@ -586,20 +586,20 @@ void TQtCalculator::updateGeometry() if( o->isWidgetType() ) { margin = TQApplication::style(). - pixelMetric(TQStyle::PM_ButtonMargin, ((TQWidget *)o))*2; + tqpixelMetric(TQStyle::PM_ButtonMargin, ((TQWidget *)o))*2; ((TQWidget*)o)->setMinimumSize(s.width()+margin, s.height()+margin); ((TQWidget*)o)->installEventFilter( this ); ((TQWidget*)o)->setAcceptDrops(true); } } - l = (TQObjectList*)mLargePage->children(); // silence please + l = (TQObjectList*)mLargePage->tqchildren(); // silence please - int h1 = pbF->minimumSize().height(); + int h1 = pbF->tqminimumSize().height(); int h2 = (int)((((float)h1 + 4.0) / 5.0)); s.setWidth(mLargePage->fontMetrics().width("MMM") + TQApplication::style(). - pixelMetric(TQStyle::PM_ButtonMargin, pbF)*2); + tqpixelMetric(TQStyle::PM_ButtonMargin, pbF)*2); s.setHeight(h1 + h2); for(uint i = 0; i < l->count(); i++) @@ -621,7 +621,7 @@ void TQtCalculator::updateGeometry() statusINVLabel->setMinimumWidth(s.width()); statusHYPLabel->setMinimumWidth(s.width()); - //setFixedSize(minimumSize()); + //setFixedSize(tqminimumSize()); } void TQtCalculator::exit() @@ -1465,9 +1465,9 @@ void TQtCalculator::configclicked(){ lay1->setSpacing( KDialog::spacingHint() ); TQGroupBox *box = new TQGroupBox(0,Qt::Vertical,about,"box"); - box->layout()->setSpacing(KDialog::spacingHint()); - box->layout()->setMargin(KDialog::marginHint()); - TQGridLayout *grid1 = new TQGridLayout(box->layout(),2,2); + box->tqlayout()->setSpacing(KDialog::spacingHint()); + box->tqlayout()->setMargin(KDialog::marginHint()); + TQGridLayout *grid1 = new TQGridLayout(box->tqlayout(),2,2); TQLabel *label = new TQLabel(box,"label"); TQLabel *label2 = new TQLabel(box,"label2"); @@ -1494,10 +1494,10 @@ void TQtCalculator::configclicked(){ "enabled. See the README for details."); #endif - label->setAlignment(AlignLeft|WordBreak|ExpandTabs); + label->tqsetAlignment(AlignLeft|WordBreak|ExpandTabs); label->setText(labelstring); - label2->setAlignment(AlignLeft|WordBreak|ExpandTabs); + label2->tqsetAlignment(AlignLeft|WordBreak|ExpandTabs); label2->setText(labelstring2); // HACK @@ -1540,7 +1540,7 @@ void TQtCalculator::configclicked(){ set_precision(); set_style(); updateGeometry(); - resize(minimumSize()); + resize(tqminimumSize()); } delete configdlg; } @@ -1628,7 +1628,7 @@ void TQtCalculator::display_selected(){ if(calc_display->isLit()){ - TQClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::tqclipboard(); cb->setText(calc_display->text()); selection_timer->start(100); @@ -1643,7 +1643,7 @@ void TQtCalculator::display_selected(){ } else{ - TQClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::tqclipboard(); CALCAMNT result; result = (CALCAMNT) cb->text().toDouble(); diff --git a/kspread/plugins/calculator/kcalc.h b/kspread/plugins/calculator/kcalc.h index a1205bc2..dfa67b63 100644 --- a/kspread/plugins/calculator/kcalc.h +++ b/kspread/plugins/calculator/kcalc.h @@ -35,7 +35,7 @@ using std::queue; #include <ctype.h> #include <tqlistbox.h> -#include <clipboard.h> +#include <tqclipboard.h> #include <tqptrlist.h> #include <tqaccel.h> #include <tqtabdialog.h> |