summaryrefslogtreecommitdiffstats
path: root/kcalc/kcalcdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcalc/kcalcdisplay.cpp')
-rw-r--r--kcalc/kcalcdisplay.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kcalc/kcalcdisplay.cpp b/kcalc/kcalcdisplay.cpp
index 8ad1350..ecb0827 100644
--- a/kcalc/kcalcdisplay.cpp
+++ b/kcalc/kcalcdisplay.cpp
@@ -48,13 +48,13 @@ KCalcDisplay::KCalcDisplay(TQWidget *parent, const char *name)
setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
setAlignment(AlignRight | AlignVCenter);
setFocus();
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, false);
- connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDisplaySelected()));
+ connect(this, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDisplaySelected()));
- connect(selection_timer, TQT_SIGNAL(timeout()),
- this, TQT_SLOT(slotSelectionTimedOut()));
+ connect(selection_timer, TQ_SIGNAL(timeout()),
+ this, TQ_SLOT(slotSelectionTimedOut()));
sendEvent(EventReset);
}
@@ -150,7 +150,7 @@ void KCalcDisplay::slotPaste(bool bClipboard)
void KCalcDisplay::slotDisplaySelected(void)
{
- if(_button == Qt::LeftButton) {
+ if(_button == TQt::LeftButton) {
if(_lit) {
slotCopy();
selection_timer->start(100);
@@ -182,11 +182,11 @@ void KCalcDisplay::invertColors()
void KCalcDisplay::mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton) {
+ if(e->button() == TQt::LeftButton) {
_lit = !_lit;
- _button = Qt::LeftButton;
+ _button = TQt::LeftButton;
} else {
- _button = Qt::MidButton;
+ _button = TQt::MidButton;
}
emit clicked();