summaryrefslogtreecommitdiffstats
path: root/twin-styles/kstep
diff options
context:
space:
mode:
Diffstat (limited to 'twin-styles/kstep')
-rw-r--r--twin-styles/kstep/nextclient.cpp12
-rw-r--r--twin-styles/kstep/nextclient.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/twin-styles/kstep/nextclient.cpp b/twin-styles/kstep/nextclient.cpp
index b9953459..5bd5b0fd 100644
--- a/twin-styles/kstep/nextclient.cpp
+++ b/twin-styles/kstep/nextclient.cpp
@@ -325,7 +325,7 @@ NextButton::NextButton(NextClient *parent, const char *name,
const unsigned char *bitmap, int bw, int bh,
const TQString& tip, const int realizeBtns)
: TQButton(parent->widget(), name),
- deco(NULL), client(parent), last_button(Qt::NoButton)
+ deco(NULL), client(parent), last_button(TQt::NoButton)
{
realizeButtons = realizeBtns;
@@ -377,7 +377,7 @@ void NextButton::mousePressEvent( TQMouseEvent* e )
{
last_button = e->button();
TQMouseEvent me( e->type(), e->pos(), e->globalPos(),
- (e->button()&realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state() );
+ (e->button()&realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state() );
TQButton::mousePressEvent( &me );
}
@@ -385,7 +385,7 @@ void NextButton::mouseReleaseEvent( TQMouseEvent* e )
{
last_button = e->button();
TQMouseEvent me( e->type(), e->pos(), e->globalPos(),
- (e->button()&realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state() );
+ (e->button()&realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state() );
TQButton::mouseReleaseEvent( &me );
}
@@ -479,7 +479,7 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
if (isMaximizable()) {
button[MAXIMIZE_IDX] =
new NextButton(this, "maximize", maximize_bits, 10, 10,
- i18n("Maximize"), Qt::LeftButton|Qt::MidButton|Qt::RightButton);
+ i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton);
titleLayout->addWidget( button[MAXIMIZE_IDX] );
connect( button[MAXIMIZE_IDX], TQT_SIGNAL(clicked()),
this, TQT_SLOT(maximizeButtonClicked()) );
@@ -509,7 +509,7 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec)
case 'M':
button[MENU_IDX] =
- new NextButton(this, "menu", NULL, 10, 10, i18n("Menu"), Qt::LeftButton|Qt::RightButton);
+ new NextButton(this, "menu", NULL, 10, 10, i18n("Menu"), TQt::LeftButton|TQt::RightButton);
titleLayout->addWidget( button[MENU_IDX] );
// NOTE DIFFERENCE: capture pressed(), not clicked()
connect( button[MENU_IDX], TQT_SIGNAL(pressed()),
@@ -742,7 +742,7 @@ void NextClient::paintEvent( TQPaintEvent* )
void NextClient::mouseDoubleClickEvent( TQMouseEvent * e )
{
- if (e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) )
+ if (e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) )
titlebarDblClickOperation();
}
diff --git a/twin-styles/kstep/nextclient.h b/twin-styles/kstep/nextclient.h
index e7660cc9..34f74b4d 100644
--- a/twin-styles/kstep/nextclient.h
+++ b/twin-styles/kstep/nextclient.h
@@ -21,7 +21,7 @@ class NextButton : public TQButton
public:
NextButton(NextClient *parent=0, const char *name=0,
const unsigned char *bitmap=NULL, int bw=0, int bh=0,
- const TQString& tip=NULL, const int realizeBtns = Qt::LeftButton);
+ const TQString& tip=NULL, const int realizeBtns = TQt::LeftButton);
void setBitmap(const unsigned char *bitmap, int bw, int bh);
void reset();
ButtonState lastButton() { return last_button; }