summaryrefslogtreecommitdiffstats
path: root/src/kvilib
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib')
-rw-r--r--src/kvilib/ext/kvi_regusersdb.h2
-rw-r--r--src/kvilib/net/kvi_netutils.cpp8
-rw-r--r--src/kvilib/tal/kvi_tal_filedialog_kde.h2
-rw-r--r--src/kvilib/tal/kvi_tal_filedialog_qt.h2
-rw-r--r--src/kvilib/tal/kvi_tal_listview.cpp52
-rw-r--r--src/kvilib/tal/kvi_tal_listview_qt3.h2
6 files changed, 34 insertions, 34 deletions
diff --git a/src/kvilib/ext/kvi_regusersdb.h b/src/kvilib/ext/kvi_regusersdb.h
index 6d587ba..8b04fe8 100644
--- a/src/kvilib/ext/kvi_regusersdb.h
+++ b/src/kvilib/ext/kvi_regusersdb.h
@@ -98,7 +98,7 @@ public:
const TQString & getProperty(const TQString &name); // returns 0 if the property is not there
bool getProperty(const TQString &name,TQString &value); // returns false if the property is not there
- bool getBoolProperty(const TQString &name,bool def=FALSE); // returns true if the property is there and is true
+ bool getBoolProperty(const TQString &name,bool def=false); // returns true if the property is there and is true
// the propertyDict may be 0!
KviPointerHashTable<TQString,TQString> * propertyDict(){ return m_pPropertyDict; };
// this is never zero (but may contain no masks)
diff --git a/src/kvilib/net/kvi_netutils.cpp b/src/kvilib/net/kvi_netutils.cpp
index bf5c00b..1ba4437 100644
--- a/src/kvilib/net/kvi_netutils.cpp
+++ b/src/kvilib/net/kvi_netutils.cpp
@@ -957,14 +957,14 @@ namespace KviNetUtils
#ifndef HAVE_INET_ATON
TQString szAddr = szStringIp.simplifyWhiteSpace();
TQ_UINT32 iAddr=0;
- TQStringList ipv4 = TQStringList::split(".", szAddr, FALSE);
+ TQStringList ipv4 = TQStringList::split(".", szAddr, false);
if (ipv4.count() == 4) {
int i = 0;
- bool ok = TRUE;
+ bool ok = true;
while(ok && i < 4) {
uint byteValue = ipv4[i].toUInt(&ok);
if ( (byteValue > 255) && ok )
- ok = FALSE;
+ ok = false;
if (ok)
iAddr = (iAddr << 8) + byteValue;
++i;
@@ -975,7 +975,7 @@ namespace KviNetUtils
return true;
}
}
- return FALSE;
+ return false;
#else //HAVE_INET_ATON
if(szStringIp.isEmpty())return false;
return (inet_aton(KviTQString::toUtf8(szStringIp).data(),address) != 0);
diff --git a/src/kvilib/tal/kvi_tal_filedialog_kde.h b/src/kvilib/tal/kvi_tal_filedialog_kde.h
index d896a5a..82d9d9a 100644
--- a/src/kvilib/tal/kvi_tal_filedialog_kde.h
+++ b/src/kvilib/tal/kvi_tal_filedialog_kde.h
@@ -31,7 +31,7 @@ class KVILIB_API KviTalFileDialog : public KFileDialog
TQ_OBJECT
public:
- KviTalFileDialog(const TQString &dirName,const TQString &filter = TQString(),TQWidget *parent = 0,const char *name = 0,bool modal = FALSE);
+ KviTalFileDialog(const TQString &dirName,const TQString &filter = TQString(),TQWidget *parent = 0,const char *name = 0,bool modal = false);
~KviTalFileDialog();
public:
enum FileMode { AnyFile, ExistingFile, ExistingFiles, Directory, DirectoryOnly };
diff --git a/src/kvilib/tal/kvi_tal_filedialog_qt.h b/src/kvilib/tal/kvi_tal_filedialog_qt.h
index c881e8a..651be3b 100644
--- a/src/kvilib/tal/kvi_tal_filedialog_qt.h
+++ b/src/kvilib/tal/kvi_tal_filedialog_qt.h
@@ -30,7 +30,7 @@ class KVILIB_API KviTalFileDialog : public TQFileDialog
TQ_OBJECT
public:
- KviTalFileDialog(const TQString &dirName,const TQString &filter = TQString(),TQWidget *parent = 0,const char *name = 0,bool modal = FALSE);
+ KviTalFileDialog(const TQString &dirName,const TQString &filter = TQString(),TQWidget *parent = 0,const char *name = 0,bool modal = false);
~KviTalFileDialog();
public:
enum FileMode { AnyFile, ExistingFile, ExistingFiles, Directory, DirectoryOnly };
diff --git a/src/kvilib/tal/kvi_tal_listview.cpp b/src/kvilib/tal/kvi_tal_listview.cpp
index ce54641..dd408ed 100644
--- a/src/kvilib/tal/kvi_tal_listview.cpp
+++ b/src/kvilib/tal/kvi_tal_listview.cpp
@@ -152,7 +152,7 @@
exclusive( 0 ),
currentState( KviTalCheckListItem::Off ),
statesDict( 0 ),
- tristate( FALSE ) {}
+ tristate( false ) {}
KviTalCheckListItem *exclusive;
KviTalCheckListItem::ToggleState currentState;
@@ -267,14 +267,14 @@
void KviTalCheckListItem::init()
{
d = new KviTalCheckListItemPrivate();
- on = FALSE; // ### remove on ver 4
+ on = false; // ### remove on ver 4
if ( myType == CheckBoxController || myType == CheckBox ) {
d->statesDict = new KviPointerHashTable<void *,ToggleState>(101);
- d->statesDict->setAutoDelete( TRUE );
+ d->statesDict->setAutoDelete( true );
}
- // CheckBoxControllers by default have tristate set to TRUE
+ // CheckBoxControllers by default have tristate set to true
if ( myType == CheckBoxController )
- setTristate( TRUE );
+ setTristate( true );
}
KviTalCheckListItem::~KviTalCheckListItem()
@@ -322,7 +322,7 @@
{
if ( myType == CheckBoxController && state() == NoChange )
updateStoredState( (void*) this );
- setState( s, TRUE, TRUE );
+ setState( s, true, true );
}
void KviTalCheckListItem::setState( ToggleState s, bool update, bool store)
@@ -348,7 +348,7 @@
( ((KviTalCheckListItem*)item)->type() == CheckBox ||
((KviTalCheckListItem*)item)->type() == CheckBoxController ) ) {
KviTalCheckListItem *checkItem = (KviTalCheckListItem*)item;
- checkItem->setState( s, FALSE, FALSE );
+ checkItem->setState( s, false, false );
childCount++;
}
item = item->nextSibling();
@@ -356,7 +356,7 @@
if ( update ) {
if ( childCount > 0 ) {
ToggleState oldState = internalState();
- updateController( FALSE, FALSE );
+ updateController( false, false );
if ( oldState != internalState() &&
parent() && parent()->rtti() == 1 &&
((KviTalCheckListItem*)parent())->type() == CheckBoxController )
@@ -399,9 +399,9 @@
ToggleState old = d->currentState;
d->currentState = s;
if (d->currentState == On)
- on = TRUE;
+ on = true;
else
- on = FALSE;
+ on = false;
#if defined(TQT_ACCESSIBILITY_SUPPORT)
if ( old != d->currentState && listView() )
@@ -432,7 +432,7 @@
void KviTalCheckListItem::turnOffChild()
{
if ( myType == RadioButtonController && d->exclusive )
- d->exclusive->setOn( FALSE );
+ d->exclusive->setOn( false );
}
void KviTalCheckListItem::activate()
@@ -445,10 +445,10 @@
TQPoint pos;
int boxsize = lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
if ( activatedPos( pos ) ) {
- bool parentControl = FALSE;
+ bool parentControl = false;
if ( parent() && parent()->rtti() == 1 &&
((KviTalCheckListItem*) parent())->type() == RadioButtonController )
- parentControl = TRUE;
+ parentControl = true;
int x = parentControl ? 0 : 3;
int align = lv->columnAlignment( 0 );
@@ -486,7 +486,7 @@
}
ignoreDoubleClick();
} else if ( myType == RadioButton ) {
- setOn( TRUE );
+ setOn( true );
ignoreDoubleClick();
}
}
@@ -494,9 +494,9 @@
void KviTalCheckListItem::setOn( bool b )
{
if ( b )
- setState( On , TRUE, TRUE );
+ setState( On , true, true );
else
- setState( Off , TRUE, TRUE );
+ setState( Off , true, true );
}
void KviTalCheckListItem::stateChange( bool )
@@ -531,12 +531,12 @@
}
if ( childCount > 0 ) {
if ( depth == 0 )
- updateController( TRUE );
+ updateController( true );
else
- updateController( FALSE );
+ updateController( false );
} else {
// if there are no children we retrieve the CheckBoxController state directly.
- setState( storedState( key ), TRUE, FALSE );
+ setState( storedState( key ), true, false );
}
}
break;
@@ -557,7 +557,7 @@
controller = (KviTalCheckListItem*)parent();
ToggleState theState = Off;
- bool first = TRUE;
+ bool first = true;
KviTalListViewItem *item = firstChild();
while( item && theState != NoChange ) {
if ( item->rtti() == 1 &&
@@ -566,7 +566,7 @@
KviTalCheckListItem *checkItem = (KviTalCheckListItem*)item;
if ( first ) {
theState = checkItem->internalState();
- first = FALSE;
+ first = false;
} else {
if ( checkItem->internalState() == NoChange ||
theState != checkItem->internalState() )
@@ -658,10 +658,10 @@
return;
}
- bool parentControl = FALSE;
+ bool parentControl = false;
if ( parent() && parent()->rtti() == 1 &&
((KviTalCheckListItem*) parent())->type() == RadioButtonController )
- parentControl = TRUE;
+ parentControl = true;
TQFontMetrics fm( lv->fontMetrics() );
int boxsize = lv->style().pixelMetric( myType == RadioButtonController ? TQStyle::PM_CheckListControllerSize :
@@ -730,7 +730,7 @@
void KviTalCheckListItem::paintFocus( TQPainter *p, const TQColorGroup & cg,const TQRect & r )
{
- bool intersect = TRUE;
+ bool intersect = true;
KviTalListView *lv = listView();
if ( lv && lv->header()->mapToActual( 0 ) != 0 ) {
int xdepth = lv->treeStepSize() * ( depth() + ( lv->rootIsDecorated() ? 1 : 0) ) + lv->itemMargin();
@@ -738,10 +738,10 @@
xdepth += p;
intersect = r.intersects( TQRect( p, r.y(), xdepth - p + 1, r.height() ) );
}
- bool parentControl = FALSE;
+ bool parentControl = false;
if ( parent() && parent()->rtti() == 1 &&
((KviTalCheckListItem*) parent())->type() == RadioButtonController )
- parentControl = TRUE;
+ parentControl = true;
if ( myType != RadioButtonController && intersect &&
(lv->rootIsDecorated() || myType == RadioButton ||
(myType == CheckBox && parentControl) ) ) {
diff --git a/src/kvilib/tal/kvi_tal_listview_qt3.h b/src/kvilib/tal/kvi_tal_listview_qt3.h
index f5f4a1f..2ef8967 100644
--- a/src/kvilib/tal/kvi_tal_listview_qt3.h
+++ b/src/kvilib/tal/kvi_tal_listview_qt3.h
@@ -175,7 +175,7 @@ private:
ToggleState storedState( void *key ) const;
void stateChange( ToggleState s );
void restoreState( void *key, int depth = 0 );
- void updateController( bool update = TRUE , bool store = FALSE );
+ void updateController( bool update = true , bool store = false );
void updateStoredState( void *key );
void setState( ToggleState s, bool update, bool store );
void setCurrentState( ToggleState s );