summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bab/styleconfdialog.cpp2
-rw-r--r--config/tdestyle_baghira_config.cpp2
-rw-r--r--deco/baghiraclient.cpp20
-rw-r--r--deco/baghiraclient.h2
-rw-r--r--kickermenu-3.3/menuapplet.cpp4
-rw-r--r--kickermenu/menuapplet.cpp18
-rw-r--r--sidebar/baghirasidebar.cpp4
-rw-r--r--sidebar/dndlistbox.cpp18
-rw-r--r--sidebar/linkview.cpp18
-rw-r--r--sidebar/listboxlink.h4
-rw-r--r--starter/menu.cpp4
-rw-r--r--starter/starter.cpp14
-rw-r--r--style/baghira.cpp12
-rw-r--r--style/baghira.h4
-rw-r--r--style/optionHandler.cpp4
-rw-r--r--style/polish.cpp6
16 files changed, 68 insertions, 68 deletions
diff --git a/bab/styleconfdialog.cpp b/bab/styleconfdialog.cpp
index 83edb74..59bdf8e 100644
--- a/bab/styleconfdialog.cpp
+++ b/bab/styleconfdialog.cpp
@@ -57,7 +57,7 @@ bool StyleConfigDialog::isDecoDirty() const
void StyleConfigDialog::setDecoDirty()
{
- m_decoDirty = TRUE;
+ m_decoDirty = true;
}
#include <styleconfdialog.moc>
diff --git a/config/tdestyle_baghira_config.cpp b/config/tdestyle_baghira_config.cpp
index 6ba0864..89d459c 100644
--- a/config/tdestyle_baghira_config.cpp
+++ b/config/tdestyle_baghira_config.cpp
@@ -976,7 +976,7 @@ extern "C"
AppSetter::AppSetter(TQWidget *parent, const char *name) : TQWidget(parent, name, TQt::WType_Dialog | TQt::WShowModal )
{
- isEdit = FALSE;
+ isEdit = false;
TQLabel *label1 = new TQLabel(i18n("<qt><b>Application Name</b></qt>"), this);
command = new TQLineEdit(this);
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 ) );
diff --git a/deco/baghiraclient.h b/deco/baghiraclient.h
index f9ca4b9..8758506 100644
--- a/deco/baghiraclient.h
+++ b/deco/baghiraclient.h
@@ -116,7 +116,7 @@ protected:
virtual void mousePressEvent ( TQMouseEvent * );
virtual void mouseReleaseEvent ( TQMouseEvent * );
virtual void paintEvent ( TQPaintEvent * );
- void updateLook(bool rp = FALSE);
+ void updateLook(bool rp = false);
private:
bool eventFilter(TQObject *obj, TQEvent *e);
void shape();
diff --git a/kickermenu-3.3/menuapplet.cpp b/kickermenu-3.3/menuapplet.cpp
index a89acb0..a9322bb 100644
--- a/kickermenu-3.3/menuapplet.cpp
+++ b/kickermenu-3.3/menuapplet.cpp
@@ -132,7 +132,7 @@ void Applet::initPopup()
void Applet::windowRemoved(WId w_P)
// another helping slot
{
- windowTitleDict.setAutoDelete(TRUE);
+ windowTitleDict.setAutoDelete(true);
windowTitleDict.remove(w_P);
}
@@ -590,7 +590,7 @@ void MenuEmbed::sendSyntheticConfigureNotifyEvent()
c.border_width = 0;
c.above = None;
c.override_redirect = 0;
- XSendEvent( tqt_xdisplay(), c.event, TRUE, StructureNotifyMask, (XEvent*)&c );
+ XSendEvent( tqt_xdisplay(), c.event, true, StructureNotifyMask, (XEvent*)&c );
}
}
diff --git a/kickermenu/menuapplet.cpp b/kickermenu/menuapplet.cpp
index b325e19..0470acb 100644
--- a/kickermenu/menuapplet.cpp
+++ b/kickermenu/menuapplet.cpp
@@ -208,7 +208,7 @@ bool Applet::eventFilter(TQObject *o, TQEvent *ev)
{
// windowIndicator->activateItemAt ( -1 );
windowList->close();
- return FALSE;
+ return false;
}
else
// #endif
@@ -221,22 +221,22 @@ bool Applet::eventFilter(TQObject *o, TQEvent *ev)
{
if (w->backgroundOrigin() != TQWidget::WidgetOrigin)
{
- w->blockSignals(TRUE); // to avoid loops
+ w->blockSignals(true); // to avoid loops
w->setBackgroundOrigin(TQWidget::WidgetOrigin);
- w->blockSignals(FALSE);
+ w->blockSignals(false);
}
}
// #if 0
else if (w->backgroundOrigin() != TQWidget::ParentOrigin)
{
- w->blockSignals(TRUE);
+ w->blockSignals(true);
w->setBackgroundOrigin(TQWidget::ParentOrigin);
- w->blockSignals(FALSE);
+ w->blockSignals(false);
}
- return FALSE;
+ return false;
}
#endif
- return FALSE;
+ return false;
}
void Applet::windowAdded( WId w_P )
@@ -269,7 +269,7 @@ void Applet::windowAdded( WId w_P )
goto titlejump; // mainly for scummvm apps - jumps to netwm caption parsing
XFree( classHint.res_name );
XFree( classHint.res_class );
- int i = title.findRev( name, -1, FALSE );
+ int i = title.findRev( name, -1, false );
if (i > -1)
{
int j = title.find(' ',i);
@@ -671,7 +671,7 @@ void MenuEmbed::sendSyntheticConfigureNotifyEvent()
c.border_width = 0;
c.above = None;
c.override_redirect = 0;
- XSendEvent( tqt_xdisplay(), c.event, TRUE, StructureNotifyMask, (XEvent*)&c );
+ XSendEvent( tqt_xdisplay(), c.event, true, StructureNotifyMask, (XEvent*)&c );
}
}
diff --git a/sidebar/baghirasidebar.cpp b/sidebar/baghirasidebar.cpp
index b3801d4..f9c52b8 100644
--- a/sidebar/baghirasidebar.cpp
+++ b/sidebar/baghirasidebar.cpp
@@ -33,14 +33,14 @@ void baghiraSidebar::handleURL(const KURL &url)
if ( scrollView->Hardware()->isSelected(item) &&
KURL(((ListBoxLink*)(scrollView->Hardware()->item(item)))->URL()).url() != url.url() )
{
- scrollView->Hardware()->setSelected(item, FALSE);
+ scrollView->Hardware()->setSelected(item, false);
return;
}
item = scrollView->Locations()->TDEListBox::currentItem();
if (scrollView->Locations()->isSelected(item) &&
KURL(((ListBoxLink*)(scrollView->Locations()->item(item)))->URL()).url() != url.url() )
{
- scrollView->Locations()->setSelected(item, FALSE);
+ scrollView->Locations()->setSelected(item, false);
return;
}
}
diff --git a/sidebar/dndlistbox.cpp b/sidebar/dndlistbox.cpp
index 83a471b..a2d0b92 100644
--- a/sidebar/dndlistbox.cpp
+++ b/sidebar/dndlistbox.cpp
@@ -56,14 +56,14 @@ void ResizingLinkBox::insertItem( const TQListBoxItem *lbi, int index )
{
TDEListBox::insertItem( lbi, index );
if (height() <= numRows()*itemHeight())
- emit itemNumberChanged(TRUE);
+ emit itemNumberChanged(true);
}
void ResizingLinkBox::insertItem( const TQListBoxItem *lbi, const TQListBoxItem *after )
{
TDEListBox::insertItem( lbi, after );
if (height() <= numRows()*itemHeight())
- emit itemNumberChanged(TRUE);
+ emit itemNumberChanged(true);
}
@@ -77,7 +77,7 @@ void ResizingLinkBox::removeItem( int index )
blockSignals ( true );
TDEListBox::removeItem(index);
blockSignals ( false );
- emit itemNumberChanged(FALSE);
+ emit itemNumberChanged(false);
}
void ResizingLinkBox::setIconSize(int size)
@@ -143,13 +143,13 @@ MediaListBox::MediaListBox( TQWidget * parent, const char * name, WFlags f ) : R
popupMenu->insertItem(i18n("Device List"), devicePopup, 1, 0);
popupMenu->insertSeparator( 0 );
- insertItem(new ListBoxDevice("system", size_, i18n("My Computer"), "system:/", "", "", TRUE, FALSE, FALSE));
- insertItem(new ListBoxDevice("network", size_, i18n("Network"), "remote:/", "", "", TRUE, FALSE, FALSE));
- insertItem(new ListBoxDevice("hdd-mounted", size_, i18n("Startvolume"), TQDir::rootDirPath(), "", "", TRUE, FALSE, FALSE));
+ insertItem(new ListBoxDevice("system", size_, i18n("My Computer"), "system:/", "", "", true, false, false));
+ insertItem(new ListBoxDevice("network", size_, i18n("Network"), "remote:/", "", "", true, false, false));
+ insertItem(new ListBoxDevice("hdd-mounted", size_, i18n("Startvolume"), TQDir::rootDirPath(), "", "", true, false, false));
client = TDEApplication::dcopClient();
- client->connectDCOPSignal("kded", "mediamanager", "mediumAdded(TQString)", "BaghiraSidebarIface", "mediumAdded(TQString)", FALSE);
- client->connectDCOPSignal("kded", "mediamanager", "mediumRemoved(TQString)", "BaghiraSidebarIface", "mediumRemoved(const TQString)", FALSE);
- client->connectDCOPSignal("kded", "mediamanager", "mediumChanged(TQString)", "BaghiraSidebarIface", "mediumChanged(TQString)", FALSE);
+ client->connectDCOPSignal("kded", "mediamanager", "mediumAdded(TQString)", "BaghiraSidebarIface", "mediumAdded(TQString)", false);
+ client->connectDCOPSignal("kded", "mediamanager", "mediumRemoved(TQString)", "BaghiraSidebarIface", "mediumRemoved(const TQString)", false);
+ client->connectDCOPSignal("kded", "mediamanager", "mediumChanged(TQString)", "BaghiraSidebarIface", "mediumChanged(TQString)", false);
/* Get the media info - huhhh ;) */
TQByteArray data, replyData;
TQCString replyType;
diff --git a/sidebar/linkview.cpp b/sidebar/linkview.cpp
index b012b20..a73e6a2 100644
--- a/sidebar/linkview.cpp
+++ b/sidebar/linkview.cpp
@@ -29,14 +29,14 @@ LinkView::LinkView(TQWidget * parent, const char * name, WFlags f):
setFrameShape( TQFrame::StyledPanel );
setFrameShadow( TQFrame::Sunken );
setBackgroundMode(TQt::PaletteBase);
- _blocked = FALSE;
+ _blocked = false;
splitter = new TQSplitter( TQt::Vertical, viewport() );
addChild(splitter);
splitter->setMargin(5);
splitter->setBackgroundMode(TQt::PaletteBase);
splitter->setSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Minimum);
splitter->setFrameShape( TQFrame::NoFrame );
- splitter->setChildrenCollapsible(TRUE);
+ splitter->setChildrenCollapsible(true);
splitter->setHandleWidth( 3 );
splitter->setOpaqueResize();
hardware = new MediaListBox(splitter, "hardware");
@@ -84,21 +84,21 @@ bool LinkView::eventFilter(TQObject *o, TQEvent *e)
if (o != hardware)
return TQScrollView::eventFilter(o, e);
if (_blocked || e->type() != TQEvent::Resize)
- return FALSE; // not a resize - non of our business
+ return false; // not a resize - non of our business
TQResizeEvent *rev = (TQResizeEvent*)e;
if (rev->size().height() == rev->oldSize().height())
- return FALSE; // height didn't change
+ return false; // height didn't change
int tmpH = rev->size().height() + locations->numRows()*locations->itemHeight()+20;
if (tmpH < viewport()->height())
tmpH = viewport()->height();
if (tmpH != splitter->height())
{
- _blocked = TRUE;
+ _blocked = true;
splitter->resize ( splitter->width(), tmpH );
- _blocked = FALSE;
+ _blocked = false;
}
- return FALSE;
+ return false;
}
void LinkView::adjustSplitter2Locations()
@@ -132,12 +132,12 @@ void LinkView::viewportResizeEvent( TQResizeEvent *rev )
void LinkView::unselectLocations()
{
- if (locations) locations->setSelected( locations->selectedItem(), FALSE );
+ if (locations) locations->setSelected( locations->selectedItem(), false );
}
void LinkView::unselectHardware()
{
- if (hardware) hardware->setSelected( hardware->selectedItem(), FALSE );
+ if (hardware) hardware->setSelected( hardware->selectedItem(), false );
}
void LinkView::loadLinks()
diff --git a/sidebar/listboxlink.h b/sidebar/listboxlink.h
index ba04c8d..75c1b62 100644
--- a/sidebar/listboxlink.h
+++ b/sidebar/listboxlink.h
@@ -38,8 +38,8 @@ class ListBoxDevice : public ListBoxLink
{
friend class MediaListBox;
public:
- ListBoxDevice(const TQString & icon, uint size, const TQString & title, const TQString & url, const TQString & name, const TQString & mountPoint, bool mounted, bool ejectable = FALSE, bool removable = FALSE, int id = 0);
- ListBoxDevice(const TQPixmap & pixmap, const TQString & title, const TQString & url, const TQString & name, const TQString & mountPoint, bool mounted, bool ejectable = FALSE, bool removable = FALSE, int id = 0);
+ ListBoxDevice(const TQString & icon, uint size, const TQString & title, const TQString & url, const TQString & name, const TQString & mountPoint, bool mounted, bool ejectable = false, bool removable = false, int id = 0);
+ ListBoxDevice(const TQPixmap & pixmap, const TQString & title, const TQString & url, const TQString & name, const TQString & mountPoint, bool mounted, bool ejectable = false, bool removable = false, int id = 0);
~ListBoxDevice(){};
TQString & name(){return name_;}
bool mounted(){return mounted_;}
diff --git a/starter/menu.cpp b/starter/menu.cpp
index a7d00b6..ef1b12e 100644
--- a/starter/menu.cpp
+++ b/starter/menu.cpp
@@ -885,10 +885,10 @@ void Panel::dragEnterEvent ( TQDragEnterEvent *dee )
return;
}
}
- dee->accept(TRUE);
+ dee->accept(true);
}
else if (TQUriDrag::canDecode(dee) || TQTextDrag::canDecode(dee))
- dee->accept(TRUE);
+ dee->accept(true);
}
void Panel::dropEvent ( TQDropEvent *de )
diff --git a/starter/starter.cpp b/starter/starter.cpp
index a725645..29bdd65 100644
--- a/starter/starter.cpp
+++ b/starter/starter.cpp
@@ -432,20 +432,20 @@ bool starter::eventFilter( TQObject*, TQEvent *e )
{
mainView->setPixmap(hoverPixmap);
mainView->repaint();
- return TRUE;
+ return true;
}
case TQEvent::Leave:
{
mainView->setPixmap(startMenu->isShown() ? downPixmap : pixmap);
mainView->repaint();
- return TRUE;
+ return true;
}
case TQEvent::MouseButtonPress:
{
if (((TQMouseEvent*)e)->button() == TQt::RightButton)
{
configPopup->popup(((TQMouseEvent*)e)->globalPos());
- return TRUE;
+ return true;
}
if (((TQMouseEvent*)e)->button() == TQt::LeftButton)
{
@@ -453,21 +453,21 @@ bool starter::eventFilter( TQObject*, TQEvent *e )
mainView->repaint();
popupMenu();
}
- return TRUE;
+ return true;
}
case TQEvent::MouseButtonRelease:
{
if (((TQMouseEvent*)e)->button() != TQt::LeftButton)
- return FALSE;
+ return false;
if (mainView->hasMouse())
mainView->setPixmap(hoverPixmap);
else
mainView->setPixmap(startMenu->isShown() ? downPixmap : pixmap);
mainView->repaint();
- return TRUE;
+ return true;
}
default:
- return FALSE;
+ return false;
}
}
diff --git a/style/baghira.cpp b/style/baghira.cpp
index e53c761..093203a 100644
--- a/style/baghira.cpp
+++ b/style/baghira.cpp
@@ -1701,7 +1701,7 @@ void LiquidStyle::drawControl( ControlElement element,
pr.addCoords( 0, 1, 0, -fh-3 );
tr.addCoords( 0, pr.bottom(), 0, -3 );
pr.moveBy(shiftX, shiftY);
- drawItem( p, pr, AlignCenter, cg, TRUE, &pm, TQString::null );
+ drawItem( p, pr, AlignCenter, cg, true, &pm, TQString::null );
alignment |= AlignCenter;
}
else
@@ -1710,7 +1710,7 @@ void LiquidStyle::drawControl( ControlElement element,
tr.addCoords( pr.right(), 0, 0, 0 );
pr.moveBy(shiftX, shiftY);
- drawItem( p, pr, AlignCenter, cg, TRUE, &pm, TQString::null );
+ drawItem( p, pr, AlignCenter, cg, true, &pm, TQString::null );
alignment |= AlignLeft | AlignVCenter;
}
@@ -1722,7 +1722,7 @@ void LiquidStyle::drawControl( ControlElement element,
else
{
rect.moveBy(shiftX, shiftY);
- drawItem( p, rect, AlignCenter, cg, TRUE, &pm, TQString::null );
+ drawItem( p, rect, AlignCenter, cg, true, &pm, TQString::null );
}
}
}
@@ -2585,8 +2585,8 @@ void LiquidStyle::drawComplexControl( ComplexControl control,
if ( !verticalLine ) {
// make 128*1 and 1*128 bitmaps that can be used for
// drawing the right sort of lines.
- verticalLine = new TQBitmap( 1, 128, TRUE );
- horizontalLine = new TQBitmap( 128, 1, TRUE );
+ verticalLine = new TQBitmap( 1, 128, true );
+ horizontalLine = new TQBitmap( 128, 1, true );
TQPointArray a( 64 );
TQPainter p;
p.begin( verticalLine );
@@ -2796,7 +2796,7 @@ void LiquidStyle::drawComplexControl( ComplexControl control,
}
TQRect ir;
- bool down = FALSE;
+ bool down = false;
TQPixmap pm;
if ( controls & SC_TitleBarCloseButton )
diff --git a/style/baghira.h b/style/baghira.h
index 460c448..8e46b67 100644
--- a/style/baghira.h
+++ b/style/baghira.h
@@ -466,7 +466,7 @@ class EventKiller : public TQObject
public:
bool eventFilter( TQObject *, TQEvent *)
{
- return TRUE;
+ return true;
}
};
@@ -483,7 +483,7 @@ class ButtonFadeInfo
public:
ButtonFadeInfo()
{
- timerId=0; index=0; fadeIn=TRUE;
+ timerId=0; index=0; fadeIn=true;
}
public:
int timerId;
diff --git a/style/optionHandler.cpp b/style/optionHandler.cpp
index 589786a..faa639a 100644
--- a/style/optionHandler.cpp
+++ b/style/optionHandler.cpp
@@ -100,9 +100,9 @@ void OptionHandler::reloadSettings() {
if (inactiveButtonColor < 0 || inactiveButtonColor > 3)
inactiveButtonColor = config.readNumEntry( "Design_InactiveButtonStyle", Background);
if (style_ == Brushed)
- bgStipple = TRUE;
+ bgStipple = true;
else if (i3 == 0)
- bgStipple = FALSE;
+ bgStipple = false;
else
bgStipple = config.readBoolEntry( "Design_StippleBackground", true );
// inactive Button
diff --git a/style/polish.cpp b/style/polish.cpp
index 5998db6..f7a3eb4 100644
--- a/style/polish.cpp
+++ b/style/polish.cpp
@@ -218,9 +218,9 @@ void LiquidStyle::applicationUnPolish( const TQStyleControlElementData &ceData,
pal.setBrush( TQColorGroup::Background, pal.active().background() );
if ( pal.brush( TQPalette::Active, TQColorGroup::Button ).pixmap() )
pal.setBrush( TQColorGroup::Button, pal.active().button() );
-// app->blockSignals( TRUE );
+// app->blockSignals( true );
app->setPalette( pal );
-// app->blockSignals( FALSE );
+// app->blockSignals( false );
}
inExitPolish = false;
@@ -826,7 +826,7 @@ void LiquidStyle::unPolish( const TQStyleControlElementData &ceData, ControlElem
if (bfi_){
if (bfi_->timerId != 0)
w->killTimer(bfi_->timerId);
- bfi.setAutoDelete(TRUE);
+ bfi.setAutoDelete(true);
bfi.remove(w->winId());
}
}