summaryrefslogtreecommitdiffstats
path: root/deco/baghiraclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'deco/baghiraclient.cpp')
-rw-r--r--deco/baghiraclient.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/deco/baghiraclient.cpp b/deco/baghiraclient.cpp
index fad0aed..95d0bfa 100644
--- a/deco/baghiraclient.cpp
+++ b/deco/baghiraclient.cpp
@@ -142,8 +142,8 @@ DeMaximizer::DeMaximizer() : TQWidget(0, "deMaximizer", TQt::WType_TopLevel | TQ
{
client_ = 0L;
setFixedSize(16,16);
- setMouseTracking(TRUE);
- setAutoMask(TRUE);
+ setMouseTracking(true);
+ setAutoMask(true);
move(TQApplication::desktop()->availableGeometry().right()-17,TQApplication::desktop()->availableGeometry().top()+2);
setBackgroundMode( NoBackground );
// setBackgroundMode (TQt::X11ParentRelative);
@@ -213,7 +213,7 @@ ResizeHandle::ResizeHandle(BaghiraClient * parent) : TQWidget(parent->widget(),
client = parent;
setCursor(TQCursor(TQt::SizeFDiagCursor));
setFixedSize(16,16);
- updateLook(FALSE);
+ updateLook(false);
WId root, daddy = 0;
WId *kids = 0L;
uint numKids = 0;
@@ -269,9 +269,9 @@ bool ResizeHandle::eventFilter(TQObject *obj, TQEvent *e)
else
move(client->width() - 2*BaghiraFactory::borderSize(client->currentStyle) - 16, client->height() - client->titleheight_ - BaghiraFactory::borderSize(client->currentStyle) - 16);
// shape();
- return FALSE;
+ return false;
}
- return FALSE;
+ return false;
}
void ResizeHandle::mousePressEvent ( TQMouseEvent * )
@@ -281,7 +281,7 @@ void ResizeHandle::mousePressEvent ( TQMouseEvent * )
void ResizeHandle::mouseReleaseEvent ( TQMouseEvent * )
{
client->performWindowOperation(KDecoration::NoOp);
- repaint(TRUE);
+ repaint(true);
}
void ResizeHandle::paintEvent ( TQPaintEvent * )
{
@@ -442,7 +442,7 @@ unsigned long BaghiraFactory::readConfig() {
TQt::AlignmentFlags oldalign = titlealign_;
TQString value = config.readEntry( "TitleAlignment", "AlignHCenter" );
- showTitle_ = TRUE;
+ showTitle_ = true;
if ( value == "AlignLeft" )
titlealign_ = TQt::AlignLeft;
else if ( value == "AlignHCenter" )
@@ -451,7 +451,7 @@ unsigned long BaghiraFactory::readConfig() {
titlealign_ = TQt::AlignRight;
else if ( value == "noTitle" )
{
- showTitle_ = FALSE;
+ showTitle_ = false;
titlealign_ = TQt::AlignAuto;
}
if ( oldalign != titlealign_ )
@@ -1867,7 +1867,7 @@ bool BaghiraClient::eventFilter( TQObject *obj, TQEvent *e )
}
}
if (grip)
- grip->updateLook(TRUE);
+ grip->updateLook(true);
doShape();
return true;
@@ -1886,7 +1886,7 @@ bool BaghiraClient::eventFilter( TQObject *obj, TQEvent *e )
performEasyClose = false;
return true;
}
- return FALSE;
+ return false;
}
case TQEvent::Paint: {
paintEvent( static_cast<TQPaintEvent *>( e ) );