Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4b6836187b)
r14.1.x r14.1.4
Michele Calgaro 9 months ago
parent 6f9718f560
commit 6d9f250db7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -30,13 +30,13 @@ public:
ActionItem( TQListView *lv, bool group )
: TQListViewItem( lv ),
a( group ? 0 : new QDesignerAction( 0 ) ),
g( group ? new QDesignerActionGroup( 0 ) : 0 ) { setDragEnabled( TRUE ); }
g( group ? new QDesignerActionGroup( 0 ) : 0 ) { setDragEnabled( true ); }
ActionItem( TQListView *lv, TQAction *ac );
ActionItem( TQListViewItem *i, TQAction *ac );
ActionItem( ActionItem *parent, bool group = FALSE )
ActionItem( ActionItem *parent, bool group = false )
: TQListViewItem( parent ),
a( group ? 0 : new QDesignerAction( parent->actionGroup() ) ),
g( group ? new QDesignerActionGroup( parent->actionGroup() ) : 0 ) { setDragEnabled( TRUE ); moveToEnd(); }
g( group ? new QDesignerActionGroup( parent->actionGroup() ) : 0 ) { setDragEnabled( true ); moveToEnd(); }
QDesignerAction *action() const { return a; }
QDesignerActionGroup *actionGroup() const { return g; }

@ -128,7 +128,7 @@ class CommandHistory : public TQObject
public:
CommandHistory( int s );
void addCommand( Command *cmd, bool tryCompress = FALSE );
void addCommand( Command *cmd, bool tryCompress = false );
void undo();
void redo();
@ -229,7 +229,7 @@ public:
const TQString &pn, const TQVariant &ov,
const TQVariant &nv, const TQString &ncut,
const TQString &ocut,
bool reset = FALSE );
bool reset = false );
void execute();
void unexecute();
@ -239,7 +239,7 @@ public:
bool checkProperty();
private:
void setProperty( const TQVariant &v, const TQString &currentItemText, bool select = TRUE );
void setProperty( const TQVariant &v, const TQString &currentItemText, bool select = true );
TQObject *widget;
PropertyEditor *editor;
@ -458,7 +458,7 @@ class AddWizardPageCommand : public Command
{
public:
AddWizardPageCommand( const TQString &n, FormWindow *fw,
TQWizard *w, const TQString &label, int index = -1, bool show = TRUE );
TQWizard *w, const TQString &label, int index = -1, bool show = true );
void execute();
void unexecute();
@ -477,7 +477,7 @@ class DeleteWizardPageCommand : public Command
{
public:
DeleteWizardPageCommand( const TQString &n, FormWindow *fw,
TQWizard *w, int index, bool show = TRUE );
TQWizard *w, int index, bool show = true );
void execute();
void unexecute();
@ -660,7 +660,7 @@ public:
TQString text;
TQPixmap pix;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const Item & ) const { return FALSE; }
bool operator==( const Item & ) const { return false; }
#endif
};
@ -686,7 +686,7 @@ public:
TQString text;
TQPixmap pix;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const Item & ) const { return FALSE; }
bool operator==( const Item & ) const { return false; }
#endif
};
@ -746,7 +746,7 @@ public:
TQString text;
TQPixmap pix;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const Row& ) const { return FALSE; }
bool operator==( const Row& ) const { return false; }
#endif
};
@ -756,7 +756,7 @@ public:
TQPixmap pix;
TQString field;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const Column& ) const { return FALSE; }
bool operator==( const Column& ) const { return false; }
#endif
};

@ -41,7 +41,7 @@ public:
FormWindow *formWindow() const;
TQString fileName() const;
TQString absFileName() const;
bool save( bool withMsgBox = TRUE );
bool save( bool withMsgBox = true );
bool saveAs();
bool close();
bool closeEvent();

@ -97,12 +97,12 @@ public:
virtual void breakLayout( TQWidget *w );
virtual void selectWidget( TQObject *w, bool select = TRUE );
virtual void selectWidget( TQObject *w, bool select = true );
virtual void selectAll();
virtual void updateSelection( TQWidget *w );
virtual void raiseSelection( TQWidget *w );
virtual void repaintSelection( TQWidget *w );
virtual void clearSelection( bool changePropertyDisplay = TRUE );
virtual void clearSelection( bool changePropertyDisplay = true );
virtual void selectWidgets();
bool isWidgetSelected( TQObject *w );
virtual void updateChildSelections( TQWidget *w );
@ -136,7 +136,7 @@ public:
virtual MainWindow *mainWindow() const { return mainwindow; }
bool checkCustomWidgets();
virtual void insertWidget( TQWidget *w, bool checkName = FALSE );
virtual void insertWidget( TQWidget *w, bool checkName = false );
virtual void removeWidget( TQWidget *w );
virtual void deleteWidgets();
virtual void editAdjustSize();
@ -169,7 +169,7 @@ public:
void setSavePixmapInline( bool b );
void setPixmapLoaderFunction( const TQString &func );
void setToolFixed() { toolFixed = TRUE; }
void setToolFixed() { toolFixed = true; }
void setActiveObject( TQObject *o );

@ -82,7 +82,7 @@ class HierarchyList:public TQListView
TQ_OBJECT
public:
HierarchyList(TQWidget * parent, FormWindow * fw, bool doConnects = TRUE);
HierarchyList(TQWidget * parent, FormWindow * fw, bool doConnects = true);
virtual void setup();
virtual void setCurrent(TQWidget * w);
@ -91,7 +91,7 @@ public:
void changeDatabaseOf(TQWidget * w, const TQString & info);
void setFormWindow(FormWindow * fw) {formWindow = fw;}
void drawContentsOffset(TQPainter * p, int ox, int oy, int cx, int cy, int cw, int ch)
{ setUpdatesEnabled(FALSE); triggerUpdate(); setUpdatesEnabled(TRUE);
{ setUpdatesEnabled(false); triggerUpdate(); setUpdatesEnabled(true);
TQListView::drawContentsOffset(p, ox, oy, cx, cy, cw, ch); }
void insertEntry(TQListViewItem * i, const TQPixmap & pix = TQPixmap(), const TQString & s =
TQString());

@ -37,7 +37,7 @@ class Layout : public TQObject
public:
Layout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = TRUE, bool splitter = FALSE );
Layout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = true, bool splitter = false );
virtual ~Layout() {}
virtual void doLayout() = 0;
@ -68,7 +68,7 @@ protected slots:
class HorizontalLayout : public Layout
{
public:
HorizontalLayout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = TRUE, bool splitter = FALSE );
HorizontalLayout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = true, bool splitter = false );
void doLayout();
@ -80,7 +80,7 @@ protected:
class VerticalLayout : public Layout
{
public:
VerticalLayout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = TRUE, bool splitter = FALSE );
VerticalLayout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = true, bool splitter = false );
void doLayout();
@ -94,7 +94,7 @@ class Grid;
class GridLayout : public Layout
{
public:
GridLayout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, const TQSize &res, bool doSetup = TRUE );
GridLayout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, const TQSize &res, bool doSetup = true );
~GridLayout();
void doLayout();

@ -72,7 +72,7 @@ private:
TQPixmap pixmap;
bool clickable, resizable;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const Column& ) const { return FALSE; }
bool operator==( const Column& ) const { return false; }
#endif
};

@ -97,7 +97,7 @@ public:
TQPopupMenu *setupNormalHierarchyMenu( TQWidget *parent );
TQPopupMenu *setupTabWidgetHierarchyMenu( TQWidget *parent, const char *addSlot, const char *removeSlot );
FormWindow *openFormWindow( const TQString &fn, bool validFileName = TRUE, FormFile *ff = 0 );
FormWindow *openFormWindow( const TQString &fn, bool validFileName = true, FormFile *ff = 0 );
void setGrid( const TQPoint &p );
void setShowGrid( bool b );

@ -126,7 +126,7 @@ public:
TQString name;
TQStringList args;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const EventDescription& ) const { return FALSE; }
bool operator==( const EventDescription& ) const { return false; }
#endif
};
@ -164,7 +164,7 @@ public:
static void removeSlot( TQObject *o, const TQString &slot );
static TQValueList<Slot> slotList( TQObject *o );
static bool isSlotUsed( TQObject *o, const TQCString &slot );
static bool hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom = FALSE );
static bool hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom = false );
static void changeSlot( TQObject *o, const TQCString &slot, const TQCString &newName );
static void changeSlotAttributes( TQObject *o, const TQCString &slot,
const TQString& specifier, const TQString &access,

@ -31,7 +31,7 @@ class PaletteEditorAdvanced : public PaletteEditorAdvancedBase
public:
PaletteEditorAdvanced( FormWindow *fw, TQWidget * parent=0, const char * name=0,
bool modal=FALSE, WFlags f=0 );
bool modal=false, WFlags f=0 );
~PaletteEditorAdvanced();
static TQPalette getPalette( bool *ok, const TQPalette &pal, BackgroundMode mode = PaletteBackground,

@ -31,7 +31,7 @@ class PaletteEditor : public PaletteEditorBase
public:
PaletteEditor( FormWindow *fw, TQWidget * parent=0, const char * name=0, bool modal=FALSE, WFlags f=0 );
PaletteEditor( FormWindow *fw, TQWidget * parent=0, const char * name=0, bool modal=false, WFlags f=0 );
~PaletteEditor();
static TQPalette getPalette( bool *ok, const TQPalette &pal, BackgroundMode mode = PaletteBackground,

@ -74,7 +74,7 @@ public:
TQString name() const;
virtual void notifyValueChange();
virtual void setChanged( bool b, bool updateDb = TRUE );
virtual void setChanged( bool b, bool updateDb = true );
bool isChanged() const;
virtual void placeEditor( TQWidget *w );
@ -132,7 +132,7 @@ class PropertyTextItem : public TQObject,
public:
PropertyTextItem( PropertyList *l, PropertyItem *after, PropertyItem *prop,
const TQString &propName, bool comment, bool multiLine, bool ascii = FALSE, bool a = FALSE );
const TQString &propName, bool comment, bool multiLine, bool ascii = false, bool a = false );
~PropertyTextItem();
virtual void createChildren();
@ -145,7 +145,7 @@ public:
virtual bool hasSubItems() const;
virtual void childValueChanged( PropertyItem *child );
virtual void setChanged( bool b, bool updateDb = TRUE );
virtual void setChanged( bool b, bool updateDb = true );
private slots:
void setValue();
@ -375,7 +375,7 @@ class PropertyPixmapItem : public TQObject,
public:
PropertyPixmapItem( PropertyList *l, PropertyItem *after, PropertyItem *prop,
const TQString &propName, bool isIconSet = FALSE );
const TQString &propName, bool isIconSet = false );
~PropertyPixmapItem();
virtual void showEditor();

@ -69,7 +69,7 @@ public:
bool load( FormFile *ff, TQIODevice* );
TQString copy();
bool save( const TQString& filename, bool formCodeOnly = FALSE);
bool save( const TQString& filename, bool formCodeOnly = false);
bool save( TQIODevice* );
void paste( const TQString &cb, TQWidget *parent );

@ -71,7 +71,7 @@ class WidgetSelection
public:
WidgetSelection( FormWindow *parent, TQPtrDict<WidgetSelection> *selDict );
void setWidget( TQWidget *w, bool updateDict = TRUE );
void setWidget( TQWidget *w, bool updateDict = true );
bool isUsed() const;
void updateGeometry();

@ -15,7 +15,7 @@ class TableEditor : public TableEditorBase
public:
TableEditor( TQWidget* parent = 0, TQWidget *editWidget = 0, FormWindow *fw = 0,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
const char* name = 0, bool modal = false, WFlags fl = 0 );
~TableEditor();
protected slots:

@ -1476,10 +1476,10 @@ void WidgetFactory::initChangedProperties( TQObject *o )
if ( o->inherits( "TQPushButton" ) || o->inherits("TQRadioButton") || o->inherits( "TQCheckBox" ) || o->inherits( "TQToolButton" ) )
MetaDataBase::setPropertyChanged( o, "text", true );
else if (::tqt_cast<TQToolButton*>(o) && ::tqt_cast<TQToolBox*>(widgetOfContainer((TQWidget*)o->parent()))) {
MetaDataBase::setPropertyChanged( o, "usesTextLabel", TRUE );
MetaDataBase::setPropertyChanged( o, "textLabel", TRUE );
MetaDataBase::setPropertyChanged( o, "autoRaise", TRUE );
MetaDataBase::setPropertyChanged( o, "textPosition", TRUE );
MetaDataBase::setPropertyChanged( o, "usesTextLabel", true );
MetaDataBase::setPropertyChanged( o, "textLabel", true );
MetaDataBase::setPropertyChanged( o, "autoRaise", true );
MetaDataBase::setPropertyChanged( o, "textPosition", true );
} else if ( o->inherits( "TQGroupBox" ) )
MetaDataBase::setPropertyChanged( o, "title", true );
else if ( o->isA( "TQFrame" ) ) {

@ -70,7 +70,7 @@ public:
NoLayout
};
static TQWidget *create( int id, TQWidget *parent, const char *name = 0, bool init = TRUE,
static TQWidget *create( int id, TQWidget *parent, const char *name = 0, bool init = true,
const TQRect *rect = 0, Orientation orient = TQt::Horizontal );
static TQLayout *createLayout( TQWidget *widget, TQLayout* layout, LayoutType type );
static void deleteLayout( TQWidget *widget );
@ -360,7 +360,7 @@ class QDesignerDialog : public TQDialog
public:
QDesignerDialog( FormWindow *fw, TQWidget *parent, const char *name )
: TQDialog( parent, name, FALSE, WResizeNoErase ), formwindow( fw ) {}
: TQDialog( parent, name, false, WResizeNoErase ), formwindow( fw ) {}
protected:
void paintEvent( TQPaintEvent *e );
@ -476,7 +476,7 @@ class EditorDialog : public Dialog
public:
EditorDialog( FormWindow *fw, TQWidget *parent, const char *name )
: Dialog( parent, name, FALSE, WResizeNoErase ), formwindow( fw ) { }
: Dialog( parent, name, false, WResizeNoErase ), formwindow( fw ) { }
protected:
void paintEvent( TQPaintEvent *e );

@ -189,7 +189,7 @@ TQString @className::currentState() const
bool @className::isKommanderWidget() const
{
return TRUE;
return true;
}
QStringList @className::associatedText() const

@ -42,7 +42,7 @@ class KommanderPlugin;
struct KommanderWidgetInfo
{
KommanderWidgetInfo() {}
KommanderWidgetInfo( const TQString &g, const TQString &t, TQIconSet *i, const TQString &w = TQString(), bool c = FALSE )
KommanderWidgetInfo( const TQString &g, const TQString &t, TQIconSet *i, const TQString &w = TQString(), bool c = false )
: group( g ), toolTip( t ), iconSet(i), whatsThis( w ), isContainer( c )
{
}
@ -62,7 +62,7 @@ public:
static TQWidget *create( const TQString &uiFile, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 );
static TQWidget *create( TQIODevice *dev, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 );
static int loadPlugins( bool force = FALSE );
static int loadPlugins( bool force = false );
static void addPlugin( KommanderPlugin *plugin );
static void loadImages( const TQString &dir );
@ -110,7 +110,7 @@ private:
TQPixmap pix;
TQString field;
#if defined(TQ_FULL_TEMPLATE_INSTANTIATION)
bool operator==( const Field& ) const { return FALSE; }
bool operator==( const Field& ) const { return false; }
#endif
};

@ -123,7 +123,7 @@ TQString ProgressBar::handleDCOP(int function, const TQStringList& args)
color.setNamedColor(args[0]);
TQPalette p = this->palette();
p.setColor(TQPalette::Active, TQColorGroup::Highlight, color);
this->setPalette( p, TRUE );
this->setPalette( p, true );
break;
}
case PB_setHightlightTextColor:
@ -132,7 +132,7 @@ TQString ProgressBar::handleDCOP(int function, const TQStringList& args)
color.setNamedColor(args[0]);
TQPalette p = this->palette();
p.setColor(TQPalette::Active, TQColorGroup::HighlightedText, color);
this->setPalette( p, TRUE );
this->setPalette( p, true );
break;
}
default:

@ -188,10 +188,10 @@ void Table::contextMenuEvent( TQContextMenuEvent * e )
void Table::columnClicked(int col)
{
emit columnHeaderClicked(col);
static bool ascending = TRUE;
static bool ascending = true;
if (!sorting()) return;
ascending=!ascending;
sortColumn( col, ascending, TRUE);
sortColumn( col, ascending, true);
}
TQString Table::handleDCOP(int function, const TQStringList& args)

@ -68,7 +68,7 @@ public:
/** Checks the debugger, if it is not ready then
* display a error in a message box
*
* @returns TRUE if debugger is ready, otherwise FALSE
* @returns true if debugger is ready, otherwise false
*/
bool checkDebugger();
void lookupSystemID(TQString systemID);

@ -69,9 +69,9 @@ public:
void clear(void) { TQGList::clear(); }
void sort(void) { TQGList::sort(); }
int find( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d); }
int findNext( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d,FALSE); }
int findNext( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d,false); }
int findRef( const XsldbgEventData *d ) { return TQGList::findRef((TQPtrCollection::Item)d); }
int findNextRef( const XsldbgEventData *d ){ return TQGList::findRef((TQPtrCollection::Item)d,FALSE);}
int findNextRef( const XsldbgEventData *d ){ return TQGList::findRef((TQPtrCollection::Item)d,false);}
uint contains( const XsldbgEventData *d ) const { return TQGList::contains((TQPtrCollection::Item)d); }
uint containsRef( const XsldbgEventData *d ) const
{ return TQGList::containsRef((TQPtrCollection::Item)d); }

@ -34,7 +34,7 @@ class XsldbgInspector : public TQDialog
public:
XsldbgInspector( XsldbgDebugger *debugger, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
XsldbgInspector( XsldbgDebugger *debugger, TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~XsldbgInspector();
TQTabWidget* tabWidget;

@ -33,7 +33,7 @@
XsldbgMsgDialogImpl::XsldbgMsgDialogImpl(TQWidget *parent,
TQMessageBox::Icon icon,
const TQString &title, const TQString &msg)
: XsldbgMsgDialog(parent, "XsldbgMsgDialogImpl" , TRUE )
: XsldbgMsgDialog(parent, "XsldbgMsgDialogImpl" , true )
{
setCaption(title);
@ -62,17 +62,17 @@ XsldbgOutputView::XsldbgOutputView(TQWidget * parent)
setText(i18n("\t\txsldbg output capture ready\n\n"));
dlg = 0L;
show();
setReadOnly(TRUE);
setReadOnly(true);
}
void XsldbgOutputView::slotProcShowMessage(TQString msg)
{
bool processed = FALSE;
bool processed = false;
// Is this a result of an evaluate command
if ((msg[0] == TQChar('=')) && (msg[1] == TQChar(' '))){
int endPosition = msg.find(TQChar('\n'));
if (endPosition >= 0){
processed = TRUE;
processed = true;
showDialog(TQMessageBox::Information, i18n("Result of evaluation"),
msg.mid(endPosition + 1));
}
@ -92,10 +92,10 @@ void XsldbgOutputView::slotProcShowMessage(TQString msg)
(msg.find("Load of data deferred") == -1) )
showDialog(TQMessageBox::Warning, i18n("Request Failed "),
msg);
processed = TRUE;
processed = true;
}
if (processed == FALSE){
if (isVisible() == FALSE)
if (processed == false){
if (isVisible() == false)
show();
append(msg);
}

@ -69,7 +69,7 @@ class KafkaDOMTreeDialog : public TQDialog
TQ_OBJECT
public:
KafkaDOMTreeDialog(TQWidget *parent = 0, TDEHTMLPart *part = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
KafkaDOMTreeDialog(TQWidget *parent = 0, TDEHTMLPart *part = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
~KafkaDOMTreeDialog();
DOMTreeView *domview;
TQGridLayout *DialogLayout;

@ -52,7 +52,7 @@ public:
* without having made any changes.
*/
htmlDocumentProperties( TQWidget* parent = 0, bool forceInsertionOfBasicNodes = false,
const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
const char* name = 0, bool modal = false, WFlags fl = 0 );
~htmlDocumentProperties();
protected slots:

@ -58,7 +58,7 @@ public:
virtual void readConfig();
/** Write the rc file */
virtual void writeConfig();
/* Returns TRUE if the plugin specified by a_name is available for us*/
/* Returns true if the plugin specified by a_name is available for us*/
bool pluginAvailable(const TQString &);
/** Gets the plugins */
TQDict<QuantaPlugin> plugins() {return m_plugins;};

@ -88,7 +88,7 @@ class QuantaToolBar: public TDEToolBar
public:
QuantaToolBar (TQWidget *parent, const char *name=0, bool honor_style=FALSE, bool readConfig=TRUE);
QuantaToolBar (TQWidget *parent, const char *name=0, bool honor_style=false, bool readConfig=true);
virtual ~QuantaToolBar() {};
private slots:

Loading…
Cancel
Save