From 05d2fcdc9265d1ee8b35899e300bf1ddf90c97de Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:25:37 -0600 Subject: Fix FTBFS --- doc/html/checklists-example.html | 283 --------------------------------- doc/html/chectdelists-example.html | 283 +++++++++++++++++++++++++++++++++ doc/html/qchecklistitem-members.html | 120 -------------- doc/html/qchecklistitem.html | 256 ----------------------------- doc/html/qchectdelistitem-members.html | 120 ++++++++++++++ doc/html/qchectdelistitem.html | 256 +++++++++++++++++++++++++++++ doc/man/man3/qchecklistitem.3qt | 229 -------------------------- doc/man/man3/qchectdelistitem.3qt | 229 ++++++++++++++++++++++++++ 8 files changed, 888 insertions(+), 888 deletions(-) delete mode 100644 doc/html/checklists-example.html create mode 100644 doc/html/chectdelists-example.html delete mode 100644 doc/html/qchecklistitem-members.html delete mode 100644 doc/html/qchecklistitem.html create mode 100644 doc/html/qchectdelistitem-members.html create mode 100644 doc/html/qchectdelistitem.html delete mode 100644 doc/man/man3/qchecklistitem.3qt create mode 100644 doc/man/man3/qchectdelistitem.3qt (limited to 'doc') diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html deleted file mode 100644 index a8f4fcf..0000000 --- a/doc/html/checklists-example.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - -Listviews with Checkable Items - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

Listviews with Checkable Items

- - -

-This example program shows how to use listviews with different types of -checkable items. -


-

Header file: -

/****************************************************************************
-** $Id: qt/checklists.h   3.3.8   edited Jan 11 14:37 $
-**
-** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
-**
-** This file is part of an example program for Qt.  This example
-** program may be used, distributed and modified without limitation.
-**
-*****************************************************************************/
-
-#ifndef CHECKLISTS_H
-#define CHECKLISTS_H
-
-#include <qwidget.h>
-
-class QListView;
-class QLabel;
-
-class CheckLists : public QWidget
-{
-    Q_OBJECT
-
-public:
-    CheckLists( QWidget *parent = 0, const char *name = 0 );
-
-protected:
-    QListView *lv1, *lv2;
-    QLabel *label;
-
-protected slots:
-    void copy1to2();
-    void copy2to3();
-
-};
-
-#endif
-
- -


-

Implementation: -

/****************************************************************************
-** $Id: qt/checklists.cpp   3.3.8   edited Jan 11 14:37 $
-**
-** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
-**
-** This file is part of an example program for Qt.  This example
-** program may be used, distributed and modified without limitation.
-**
-*****************************************************************************/
-
-#include "checklists.h"
-
-#include <qlistview.h>
-#include <qvbox.h>
-#include <qlabel.h>
-#include <qvaluelist.h>
-#include <qstring.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-
-/*
- * Constructor
- *
- * Create all child widgets of the CheckList Widget
- */
-
-CheckLists::CheckLists( QWidget *parent, const char *name )
-    : QWidget( parent, name )
-{
-    QHBoxLayout *lay = new QHBoxLayout( this );
-    lay->setMargin( 5 );
-
-    // create a widget which layouts its childs in a column
-    QVBoxLayout *vbox1 = new QVBoxLayout( lay );
-    vbox1->setMargin( 5 );
-
-    // First child: a Label
-    vbox1->addWidget( new QLabel( "Check some items!", this ) );
-
-    // Second child: the ListView
-    lv1 = new QListView( this );
-    vbox1->addWidget( lv1 );
-    lv1->addColumn( "Items" );
-    lv1->setRootIsDecorated( TRUE );
-
-    // create a list with 4 ListViewItems which will be parent items of other ListViewItems
-    QValueList<QListViewItem *> parentList;
-
-    parentList.append( new QCheckListItem( lv1, "Parent Item 1", QCheckListItem::CheckBoxController ) );
-    parentList.append( new QCheckListItem( lv1, "Parent Item 2", QCheckListItem::CheckBoxController ) );
-    parentList.append( new QCheckListItem( lv1, "Parent Item 3", QCheckListItem::CheckBoxController ) );
-    parentList.append( new QCheckListItem( lv1, "Parent Item 4", QCheckListItem::CheckBoxController ) );
-
-    QListViewItem *item = 0;
-    unsigned int num = 1;
-    // go through the list of parent items...
-    for ( QValueList<QListViewItem*>::Iterator it = parentList.begin(); it != parentList.end();
-          ( *it )->setOpen( TRUE ), ++it, num++ ) {
-        item = *it;
-        // ...and create 5 checkable child ListViewItems for each parent item
-        for ( unsigned int i = 1; i <= 5; i++ )
-            (void)new QCheckListItem( item, QString( "%1. Child of Parent %2" ).arg( i ).arg( num ), QCheckListItem::CheckBox );
-    }
-
-    // Create another widget for layouting
-    QVBoxLayout *tmp = new QVBoxLayout( lay );
-    tmp->setMargin( 5 );
-
-    // create a pushbutton
-    QPushButton *copy1 = new QPushButton( "  ->  ", this );
-    tmp->addWidget( copy1 );
-    copy1->setMaximumWidth( copy1->sizeHint().width() );
-    // connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2()
-    connect( copy1, SIGNAL( clicked() ), this, SLOT( copy1to2() ) );
-
-    // another widget for layouting
-    QVBoxLayout *vbox2 = new QVBoxLayout( lay );
-    vbox2->setMargin( 5 );
-
-    // and another label
-    vbox2->addWidget( new QLabel( "Check one item!", this ) );
-
-    // create the second listview
-    lv2 = new QListView( this );
-    vbox2->addWidget( lv2 );
-    lv2->addColumn( "Items" );
-    lv2->setRootIsDecorated( TRUE );
-
-    // another widget needed for layouting only
-    tmp = new QVBoxLayout( lay );
-    tmp->setMargin( 5 );
-
-    // create another pushbutton...
-    QPushButton *copy2 = new QPushButton( "  ->  ", this );
-    lay->addWidget( copy2 );
-    copy2->setMaximumWidth( copy2->sizeHint().width() );
-    // ...and connect its clicked() SIGNAL to the copy2to3() SLOT
-    connect( copy2, SIGNAL( clicked() ), this, SLOT( copy2to3() ) );
-
-    tmp = new QVBoxLayout( lay );
-    tmp->setMargin( 5 );
-
-    // and create a label which will be at the right of the window
-    label = new QLabel( "No Item yet...", this );
-    tmp->addWidget( label );
-}
-
-/*
- * SLOT copy1to2()
- *
- * Copies all checked ListViewItems from the first ListView to
- * the second one, and inserts them as Radio-ListViewItem.
- */
-
-void CheckLists::copy1to2()
-{
-    // create an iterator which operates on the first ListView
-    QListViewItemIterator it( lv1 );
-
-    lv2->clear();
-
-    // Insert first a controller Item into the second ListView. Always if Radio-ListViewItems
-    // are inserted into a Listview, the parent item of these MUST be a controller Item!
-    QCheckListItem *item = new QCheckListItem( lv2, "Controller", QCheckListItem::Controller );
-    item->setOpen( TRUE );
-
-    // iterate through the first ListView...
-    for ( ; it.current(); ++it )
-        // ...check state of childs, and...
-        if ( it.current()->parent() )
-            // ...if the item is checked...
-            if ( ( (QCheckListItem*)it.current() )->isOn() )
-                // ...insert a Radio-ListViewItem with the same text into the second ListView
-                (void)new QCheckListItem( item, it.current()->text( 0 ), QCheckListItem::RadioButton );
-
-    if ( item->firstChild() )
-        ( ( QCheckListItem* )item->firstChild() )->setOn( TRUE );
-}
-
-/*
- * SLOT copy2to3()
- *
- * Copies the checked item of the second ListView into the
- * Label at the right.
- */
-
-void CheckLists::copy2to3()
-{
-    // create an iterator which operates on the second ListView
-    QListViewItemIterator it( lv2 );
-
-    label->setText( "No Item checked" );
-
-    // iterate through the second ListView...
-    for ( ; it.current(); ++it )
-        // ...check state of childs, and...
-        if ( it.current()->parent() )
-            // ...if the item is checked...
-            if ( ( (QCheckListItem*)it.current() )->isOn() )
-                // ...set the text of the item to the label
-                label->setText( it.current()->text( 0 ) );
-}
-
-
- -


-

Main: -

/****************************************************************************
-** $Id: qt/main.cpp   3.3.8   edited Jan 11 14:37 $
-**
-** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
-**
-** This file is part of an example program for Qt.  This example
-** program may be used, distributed and modified without limitation.
-**
-*****************************************************************************/
-
-#include "checklists.h"
-#include <qapplication.h>
-
-int main( int argc, char **argv )
-{
-    QApplication a( argc, argv );
-
-    CheckLists checklists;
-    checklists.resize( 650, 350 );
-    checklists.setCaption( "Qt Example - CheckLists" );
-    a.setMainWidget( &checklists );
-    checklists.show();
-
-    return a.exec();
-}
-
- -

See also Examples. - - -


- -
Copyright © 2007 -TrolltechTrademarks -
Qt 3.3.8
-
- diff --git a/doc/html/chectdelists-example.html b/doc/html/chectdelists-example.html new file mode 100644 index 0000000..a8f4fcf --- /dev/null +++ b/doc/html/chectdelists-example.html @@ -0,0 +1,283 @@ + + + + + +Listviews with Checkable Items + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

Listviews with Checkable Items

+ + +

+This example program shows how to use listviews with different types of +checkable items. +


+

Header file: +

/****************************************************************************
+** $Id: qt/checklists.h   3.3.8   edited Jan 11 14:37 $
+**
+** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
+**
+** This file is part of an example program for Qt.  This example
+** program may be used, distributed and modified without limitation.
+**
+*****************************************************************************/
+
+#ifndef CHECKLISTS_H
+#define CHECKLISTS_H
+
+#include <qwidget.h>
+
+class QListView;
+class QLabel;
+
+class CheckLists : public QWidget
+{
+    Q_OBJECT
+
+public:
+    CheckLists( QWidget *parent = 0, const char *name = 0 );
+
+protected:
+    QListView *lv1, *lv2;
+    QLabel *label;
+
+protected slots:
+    void copy1to2();
+    void copy2to3();
+
+};
+
+#endif
+
+ +


+

Implementation: +

/****************************************************************************
+** $Id: qt/checklists.cpp   3.3.8   edited Jan 11 14:37 $
+**
+** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
+**
+** This file is part of an example program for Qt.  This example
+** program may be used, distributed and modified without limitation.
+**
+*****************************************************************************/
+
+#include "checklists.h"
+
+#include <qlistview.h>
+#include <qvbox.h>
+#include <qlabel.h>
+#include <qvaluelist.h>
+#include <qstring.h>
+#include <qpushbutton.h>
+#include <qlayout.h>
+
+/*
+ * Constructor
+ *
+ * Create all child widgets of the CheckList Widget
+ */
+
+CheckLists::CheckLists( QWidget *parent, const char *name )
+    : QWidget( parent, name )
+{
+    QHBoxLayout *lay = new QHBoxLayout( this );
+    lay->setMargin( 5 );
+
+    // create a widget which layouts its childs in a column
+    QVBoxLayout *vbox1 = new QVBoxLayout( lay );
+    vbox1->setMargin( 5 );
+
+    // First child: a Label
+    vbox1->addWidget( new QLabel( "Check some items!", this ) );
+
+    // Second child: the ListView
+    lv1 = new QListView( this );
+    vbox1->addWidget( lv1 );
+    lv1->addColumn( "Items" );
+    lv1->setRootIsDecorated( TRUE );
+
+    // create a list with 4 ListViewItems which will be parent items of other ListViewItems
+    QValueList<QListViewItem *> parentList;
+
+    parentList.append( new QCheckListItem( lv1, "Parent Item 1", QCheckListItem::CheckBoxController ) );
+    parentList.append( new QCheckListItem( lv1, "Parent Item 2", QCheckListItem::CheckBoxController ) );
+    parentList.append( new QCheckListItem( lv1, "Parent Item 3", QCheckListItem::CheckBoxController ) );
+    parentList.append( new QCheckListItem( lv1, "Parent Item 4", QCheckListItem::CheckBoxController ) );
+
+    QListViewItem *item = 0;
+    unsigned int num = 1;
+    // go through the list of parent items...
+    for ( QValueList<QListViewItem*>::Iterator it = parentList.begin(); it != parentList.end();
+          ( *it )->setOpen( TRUE ), ++it, num++ ) {
+        item = *it;
+        // ...and create 5 checkable child ListViewItems for each parent item
+        for ( unsigned int i = 1; i <= 5; i++ )
+            (void)new QCheckListItem( item, QString( "%1. Child of Parent %2" ).arg( i ).arg( num ), QCheckListItem::CheckBox );
+    }
+
+    // Create another widget for layouting
+    QVBoxLayout *tmp = new QVBoxLayout( lay );
+    tmp->setMargin( 5 );
+
+    // create a pushbutton
+    QPushButton *copy1 = new QPushButton( "  ->  ", this );
+    tmp->addWidget( copy1 );
+    copy1->setMaximumWidth( copy1->sizeHint().width() );
+    // connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2()
+    connect( copy1, SIGNAL( clicked() ), this, SLOT( copy1to2() ) );
+
+    // another widget for layouting
+    QVBoxLayout *vbox2 = new QVBoxLayout( lay );
+    vbox2->setMargin( 5 );
+
+    // and another label
+    vbox2->addWidget( new QLabel( "Check one item!", this ) );
+
+    // create the second listview
+    lv2 = new QListView( this );
+    vbox2->addWidget( lv2 );
+    lv2->addColumn( "Items" );
+    lv2->setRootIsDecorated( TRUE );
+
+    // another widget needed for layouting only
+    tmp = new QVBoxLayout( lay );
+    tmp->setMargin( 5 );
+
+    // create another pushbutton...
+    QPushButton *copy2 = new QPushButton( "  ->  ", this );
+    lay->addWidget( copy2 );
+    copy2->setMaximumWidth( copy2->sizeHint().width() );
+    // ...and connect its clicked() SIGNAL to the copy2to3() SLOT
+    connect( copy2, SIGNAL( clicked() ), this, SLOT( copy2to3() ) );
+
+    tmp = new QVBoxLayout( lay );
+    tmp->setMargin( 5 );
+
+    // and create a label which will be at the right of the window
+    label = new QLabel( "No Item yet...", this );
+    tmp->addWidget( label );
+}
+
+/*
+ * SLOT copy1to2()
+ *
+ * Copies all checked ListViewItems from the first ListView to
+ * the second one, and inserts them as Radio-ListViewItem.
+ */
+
+void CheckLists::copy1to2()
+{
+    // create an iterator which operates on the first ListView
+    QListViewItemIterator it( lv1 );
+
+    lv2->clear();
+
+    // Insert first a controller Item into the second ListView. Always if Radio-ListViewItems
+    // are inserted into a Listview, the parent item of these MUST be a controller Item!
+    QCheckListItem *item = new QCheckListItem( lv2, "Controller", QCheckListItem::Controller );
+    item->setOpen( TRUE );
+
+    // iterate through the first ListView...
+    for ( ; it.current(); ++it )
+        // ...check state of childs, and...
+        if ( it.current()->parent() )
+            // ...if the item is checked...
+            if ( ( (QCheckListItem*)it.current() )->isOn() )
+                // ...insert a Radio-ListViewItem with the same text into the second ListView
+                (void)new QCheckListItem( item, it.current()->text( 0 ), QCheckListItem::RadioButton );
+
+    if ( item->firstChild() )
+        ( ( QCheckListItem* )item->firstChild() )->setOn( TRUE );
+}
+
+/*
+ * SLOT copy2to3()
+ *
+ * Copies the checked item of the second ListView into the
+ * Label at the right.
+ */
+
+void CheckLists::copy2to3()
+{
+    // create an iterator which operates on the second ListView
+    QListViewItemIterator it( lv2 );
+
+    label->setText( "No Item checked" );
+
+    // iterate through the second ListView...
+    for ( ; it.current(); ++it )
+        // ...check state of childs, and...
+        if ( it.current()->parent() )
+            // ...if the item is checked...
+            if ( ( (QCheckListItem*)it.current() )->isOn() )
+                // ...set the text of the item to the label
+                label->setText( it.current()->text( 0 ) );
+}
+
+
+ +


+

Main: +

/****************************************************************************
+** $Id: qt/main.cpp   3.3.8   edited Jan 11 14:37 $
+**
+** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
+**
+** This file is part of an example program for Qt.  This example
+** program may be used, distributed and modified without limitation.
+**
+*****************************************************************************/
+
+#include "checklists.h"
+#include <qapplication.h>
+
+int main( int argc, char **argv )
+{
+    QApplication a( argc, argv );
+
+    CheckLists checklists;
+    checklists.resize( 650, 350 );
+    checklists.setCaption( "Qt Example - CheckLists" );
+    a.setMainWidget( &checklists );
+    checklists.show();
+
+    return a.exec();
+}
+
+ +

See also Examples. + + +


+ +
Copyright © 2007 +TrolltechTrademarks +
Qt 3.3.8
+
+ diff --git a/doc/html/qchecklistitem-members.html b/doc/html/qchecklistitem-members.html deleted file mode 100644 index b2c739a..0000000 --- a/doc/html/qchecklistitem-members.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - -QCheckListItem Member List - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

Complete Member List for QCheckListItem

- -

This is the complete list of member functions for -QCheckListItem, including inherited members. - -

- -


- -
Copyright © 2007 -TrolltechTrademarks -
Qt 3.3.8
-
- diff --git a/doc/html/qchecklistitem.html b/doc/html/qchecklistitem.html deleted file mode 100644 index e00e24e..0000000 --- a/doc/html/qchecklistitem.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - -QCheckListItem Class - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

QCheckListItem Class Reference

- -

The QCheckListItem class provides checkable list view items. -More... -

#include <qlistview.h> -

Inherits QListViewItem. -

List of all member functions. -

Public Members

- -

Protected Members

- -

Detailed Description

- - -The QCheckListItem class provides checkable list view items. -

-

QCheckListItems are used in QListViews to provide -QListViewItems that are checkboxes, radio buttons or -controllers. -

Checkbox and controller check list items may be inserted at any -level in a list view. Radio button check list items must be -children of a controller check list item. -

The item can be checked or unchecked with setOn(). Its type can be -retrieved with type() and its text retrieved with text(). -

List View Items
-

See also QListViewItem, QListView, and Advanced Widgets. - -


Member Type Documentation

-

QCheckListItem::ToggleState

- -

This enum specifies a QCheckListItem's toggle state. -

-

QCheckListItem::Type

- -

This enum type specifies a QCheckListItem's type: -

-

Member Function Documentation

-

QCheckListItem::QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = RadioButtonController ) -

-Constructs a checkable item with parent parent, text text -and of type tt. Note that a RadioButton must be the child of a -RadioButtonController, otherwise it will not toggle. - -

QCheckListItem::QCheckListItem ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController ) -

-Constructs a checkable item with parent parent, which is after -after in the parent's list of children, and with text text -and of type tt. Note that a RadioButton must be the child of -a RadioButtonController, otherwise it will not toggle. - -

QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = RadioButtonController ) -

-Constructs a checkable item with parent parent, text text -and of type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a RadioButtonController. - -

QCheckListItem::QCheckListItem ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController ) -

-Constructs a checkable item with parent parent, which is after -after in the parent's list of children, with text text and -of type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a RadioButtonController. - -

QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, Type tt = RadioButtonController ) -

-Constructs a checkable item with parent parent, text text -and of type tt. Note that tt must not be RadioButton. -Radio buttons must be children of a RadioButtonController. - -

QCheckListItem::QCheckListItem ( QListView * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController ) -

-Constructs a checkable item with parent parent, which is after -after in the parent's list of children, with text text and -of type tt. Note that tt must not be RadioButton. -Radio buttons must be children of a RadioButtonController. - -

QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p ) -

-Constructs a RadioButtonController item with parent parent, -text text and pixmap p. - -

QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p ) -

-Constructs a RadioButtonController item with parent parent, -text text and pixmap p. - -

QCheckListItem::~QCheckListItem () -

-Destroys the item, and all its children to any depth, freeing up -all allocated resources. - -

void QCheckListItem::activate () [virtual protected] -

-Toggle check box or set radio button to on. - -

Reimplemented from QListViewItem. -

bool QCheckListItem::isOn () const -

- -

Returns TRUE if the item is toggled on; otherwise returns FALSE. - -

bool QCheckListItem::isTristate () const -

-Returns TRUE if the item is tristate; otherwise returns FALSE. -

See also setTristate(). - -

void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) [virtual] -

-Paints the item using the painter p and the color group cg. -The item is in column column, has width width and has -alignment align. (See Qt::AlignmentFlags for valid alignments.) - -

Reimplemented from QListViewItem. -

void QCheckListItem::paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r ) [virtual] -

-Draws the focus rectangle r using the color group cg on the -painter p. - -

Reimplemented from QListViewItem. -

int QCheckListItem::rtti () const [virtual] -

- -

Returns 1. -

Make your derived classes return their own values for rtti(), and -you can distinguish between list view items. You should use values -greater than 1000, to allow for extensions to this class. - -

Reimplemented from QListViewItem. -

void QCheckListItem::setOn ( bool b ) [virtual] -

-Sets the button on if b is TRUE, otherwise sets it off. -Maintains radio button exclusivity. - -

void QCheckListItem::setState ( ToggleState s ) -

-Sets the toggle state of the checklistitem to s. s can be -Off, NoChange or On. -

Tristate can only be enabled for CheckBox or CheckBoxController, -therefore the NoChange only applies to them. -

Setting the state to On or Off on a CheckBoxController -will recursivly set the states of its children to the same state. -

Setting the state to NoChange on a CheckBoxController will -make it recursivly recall the previous stored state of its -children. If there was no previous stored state the children are -all set to On. - -

void QCheckListItem::setTristate ( bool b ) -

-Sets tristate to b if the Type is either a CheckBoxController or -a CheckBox. -

CheckBoxControllers are tristate by default. -

See also state() and isTristate(). - -

ToggleState QCheckListItem::state () const -

-Returns the state of the item. -

See also QCheckListItem::ToggleState. - -

void QCheckListItem::stateChange ( bool ) [virtual protected] -

-This virtual function is called when the item changes its state. -NoChange (if tristate is enabled and the type is either CheckBox or CheckBoxController) reports the same as Off, so -use state() to determine if the state is actually Off or NoChange. - -

QString QCheckListItem::text () const -

- -

Returns the item's text. - -

void QCheckListItem::turnOffChild () [protected] -

-If this is a RadioButtonController that has RadioButton -children, turn off the child that is on. - -

Type QCheckListItem::type () const -

- -

Returns the type of this item. - - -


-This file is part of the Qt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


- -
Copyright © 2007 -TrolltechTrademarks -
Qt 3.3.8
-
- diff --git a/doc/html/qchectdelistitem-members.html b/doc/html/qchectdelistitem-members.html new file mode 100644 index 0000000..b2c739a --- /dev/null +++ b/doc/html/qchectdelistitem-members.html @@ -0,0 +1,120 @@ + + + + + +QCheckListItem Member List + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

Complete Member List for QCheckListItem

+ +

This is the complete list of member functions for +QCheckListItem, including inherited members. + +

+ +


+ +
Copyright © 2007 +TrolltechTrademarks +
Qt 3.3.8
+
+ diff --git a/doc/html/qchectdelistitem.html b/doc/html/qchectdelistitem.html new file mode 100644 index 0000000..e00e24e --- /dev/null +++ b/doc/html/qchectdelistitem.html @@ -0,0 +1,256 @@ + + + + + +QCheckListItem Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

QCheckListItem Class Reference

+ +

The QCheckListItem class provides checkable list view items. +More... +

#include <qlistview.h> +

Inherits QListViewItem. +

List of all member functions. +

Public Members

+ +

Protected Members

+ +

Detailed Description

+ + +The QCheckListItem class provides checkable list view items. +

+

QCheckListItems are used in QListViews to provide +QListViewItems that are checkboxes, radio buttons or +controllers. +

Checkbox and controller check list items may be inserted at any +level in a list view. Radio button check list items must be +children of a controller check list item. +

The item can be checked or unchecked with setOn(). Its type can be +retrieved with type() and its text retrieved with text(). +

List View Items
+

See also QListViewItem, QListView, and Advanced Widgets. + +


Member Type Documentation

+

QCheckListItem::ToggleState

+ +

This enum specifies a QCheckListItem's toggle state. +

+

QCheckListItem::Type

+ +

This enum type specifies a QCheckListItem's type: +

+

Member Function Documentation

+

QCheckListItem::QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = RadioButtonController ) +

+Constructs a checkable item with parent parent, text text +and of type tt. Note that a RadioButton must be the child of a +RadioButtonController, otherwise it will not toggle. + +

QCheckListItem::QCheckListItem ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController ) +

+Constructs a checkable item with parent parent, which is after +after in the parent's list of children, and with text text +and of type tt. Note that a RadioButton must be the child of +a RadioButtonController, otherwise it will not toggle. + +

QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = RadioButtonController ) +

+Constructs a checkable item with parent parent, text text +and of type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a RadioButtonController. + +

QCheckListItem::QCheckListItem ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController ) +

+Constructs a checkable item with parent parent, which is after +after in the parent's list of children, with text text and +of type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a RadioButtonController. + +

QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, Type tt = RadioButtonController ) +

+Constructs a checkable item with parent parent, text text +and of type tt. Note that tt must not be RadioButton. +Radio buttons must be children of a RadioButtonController. + +

QCheckListItem::QCheckListItem ( QListView * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController ) +

+Constructs a checkable item with parent parent, which is after +after in the parent's list of children, with text text and +of type tt. Note that tt must not be RadioButton. +Radio buttons must be children of a RadioButtonController. + +

QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p ) +

+Constructs a RadioButtonController item with parent parent, +text text and pixmap p. + +

QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p ) +

+Constructs a RadioButtonController item with parent parent, +text text and pixmap p. + +

QCheckListItem::~QCheckListItem () +

+Destroys the item, and all its children to any depth, freeing up +all allocated resources. + +

void QCheckListItem::activate () [virtual protected] +

+Toggle check box or set radio button to on. + +

Reimplemented from QListViewItem. +

bool QCheckListItem::isOn () const +

+ +

Returns TRUE if the item is toggled on; otherwise returns FALSE. + +

bool QCheckListItem::isTristate () const +

+Returns TRUE if the item is tristate; otherwise returns FALSE. +

See also setTristate(). + +

void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) [virtual] +

+Paints the item using the painter p and the color group cg. +The item is in column column, has width width and has +alignment align. (See Qt::AlignmentFlags for valid alignments.) + +

Reimplemented from QListViewItem. +

void QCheckListItem::paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r ) [virtual] +

+Draws the focus rectangle r using the color group cg on the +painter p. + +

Reimplemented from QListViewItem. +

int QCheckListItem::rtti () const [virtual] +

+ +

Returns 1. +

Make your derived classes return their own values for rtti(), and +you can distinguish between list view items. You should use values +greater than 1000, to allow for extensions to this class. + +

Reimplemented from QListViewItem. +

void QCheckListItem::setOn ( bool b ) [virtual] +

+Sets the button on if b is TRUE, otherwise sets it off. +Maintains radio button exclusivity. + +

void QCheckListItem::setState ( ToggleState s ) +

+Sets the toggle state of the checklistitem to s. s can be +Off, NoChange or On. +

Tristate can only be enabled for CheckBox or CheckBoxController, +therefore the NoChange only applies to them. +

Setting the state to On or Off on a CheckBoxController +will recursivly set the states of its children to the same state. +

Setting the state to NoChange on a CheckBoxController will +make it recursivly recall the previous stored state of its +children. If there was no previous stored state the children are +all set to On. + +

void QCheckListItem::setTristate ( bool b ) +

+Sets tristate to b if the Type is either a CheckBoxController or +a CheckBox. +

CheckBoxControllers are tristate by default. +

See also state() and isTristate(). + +

ToggleState QCheckListItem::state () const +

+Returns the state of the item. +

See also QCheckListItem::ToggleState. + +

void QCheckListItem::stateChange ( bool ) [virtual protected] +

+This virtual function is called when the item changes its state. +NoChange (if tristate is enabled and the type is either CheckBox or CheckBoxController) reports the same as Off, so +use state() to determine if the state is actually Off or NoChange. + +

QString QCheckListItem::text () const +

+ +

Returns the item's text. + +

void QCheckListItem::turnOffChild () [protected] +

+If this is a RadioButtonController that has RadioButton +children, turn off the child that is on. + +

Type QCheckListItem::type () const +

+ +

Returns the type of this item. + + +


+This file is part of the Qt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
Qt 3.3.8
+
+ diff --git a/doc/man/man3/qchecklistitem.3qt b/doc/man/man3/qchecklistitem.3qt deleted file mode 100644 index af09734..0000000 --- a/doc/man/man3/qchecklistitem.3qt +++ /dev/null @@ -1,229 +0,0 @@ -'\" t -.TH QCheckListItem 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QCheckListItem \- Checkable list view items -.SH SYNOPSIS -\fC#include \fR -.PP -Inherits QListViewItem. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "enum \fBType\fR { RadioButton, CheckBox, Controller, RadioButtonController = Controller, CheckBoxController }" -.br -.ti -1c -.BI "enum \fBToggleState\fR { Off, NoChange, On }" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QCheckListItem * parent, const QString & text, Type tt = RadioButtonController )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QListViewItem * parent, const QString & text, Type tt = RadioButtonController )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QListView * parent, const QString & text, Type tt = RadioButtonController )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QListView * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QListViewItem * parent, const QString & text, const QPixmap & p )" -.br -.ti -1c -.BI "\fBQCheckListItem\fR ( QListView * parent, const QString & text, const QPixmap & p )" -.br -.ti -1c -.BI "\fB~QCheckListItem\fR ()" -.br -.ti -1c -.BI "virtual void \fBpaintCell\fR ( QPainter * p, const QColorGroup & cg, int column, int width, int align )" -.br -.ti -1c -.BI "virtual void \fBpaintFocus\fR ( QPainter * p, const QColorGroup & cg, const QRect & r )" -.br -.ti -1c -.BI "virtual void \fBsetOn\fR ( bool b )" -.br -.ti -1c -.BI "bool \fBisOn\fR () const" -.br -.ti -1c -.BI "Type \fBtype\fR () const" -.br -.ti -1c -.BI "QString \fBtext\fR () const" -.br -.ti -1c -.BI "void \fBsetTristate\fR ( bool b )" -.br -.ti -1c -.BI "bool \fBisTristate\fR () const" -.br -.ti -1c -.BI "ToggleState \fBstate\fR () const" -.br -.ti -1c -.BI "void \fBsetState\fR ( ToggleState s )" -.br -.ti -1c -.BI "virtual int \fBrtti\fR () const" -.br -.in -1c -.SS "Protected Members" -.in +1c -.ti -1c -.BI "virtual void \fBactivate\fR ()" -.br -.ti -1c -.BI "void \fBturnOffChild\fR ()" -.br -.ti -1c -.BI "virtual void \fBstateChange\fR ( bool )" -.br -.in -1c -.SH DESCRIPTION -The QCheckListItem class provides checkable list view items. -.PP -QCheckListItems are used in QListViews to provide QListViewItems that are checkboxes, radio buttons or controllers. -.PP -Checkbox and controller check list items may be inserted at any level in a list view. Radio button check list items must be children of a controller check list item. -.PP -The item can be checked or unchecked with setOn(). Its type can be retrieved with type() and its text retrieved with text(). -.PP -
-.ce 1 -.B "[Image Omitted]" -.PP -
-.PP -See also QListViewItem, QListView, and Advanced Widgets. -.SS "Member Type Documentation" -.SH "QCheckListItem::ToggleState" -This enum specifies a QCheckListItem's toggle state. -.TP -\fCQCheckListItem::Off\fR -.TP -\fCQCheckListItem::NoChange\fR -.TP -\fCQCheckListItem::On\fR -.SH "QCheckListItem::Type" -This enum type specifies a QCheckListItem's type: -.TP -\fCQCheckListItem::RadioButton\fR -.TP -\fCQCheckListItem::CheckBox\fR -.TP -\fCQCheckListItem::Controller\fR - \fIobsolete\fR (use RadioButtonController instead) -.TP -\fCQCheckListItem::RadioButtonController\fR -.TP -\fCQCheckListItem::CheckBoxController\fR -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QCheckListItem::QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = RadioButtonController )" -Constructs a checkable item with parent \fIparent\fR, text \fItext\fR and of type \fItt\fR. Note that a RadioButton must be the child of a RadioButtonController, otherwise it will not toggle. -.SH "QCheckListItem::QCheckListItem ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" -Constructs a checkable item with parent \fIparent\fR, which is after \fIafter\fR in the parent's list of children, and with text \fItext\fR and of type \fItt\fR. Note that a RadioButton must be the child of a RadioButtonController, otherwise it will not toggle. -.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = RadioButtonController )" -Constructs a checkable item with parent \fIparent\fR, text \fItext\fR and of type \fItt\fR. Note that this item must \fInot\fR be a RadioButton. Radio buttons must be children of a RadioButtonController. -.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" -Constructs a checkable item with parent \fIparent\fR, which is after \fIafter\fR in the parent's list of children, with text \fItext\fR and of type \fItt\fR. Note that this item must \fInot\fR be a RadioButton. Radio buttons must be children of a RadioButtonController. -.SH "QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, Type tt = RadioButtonController )" -Constructs a checkable item with parent \fIparent\fR, text \fItext\fR and of type \fItt\fR. Note that \fItt\fR must \fInot\fR be RadioButton. Radio buttons must be children of a RadioButtonController. -.SH "QCheckListItem::QCheckListItem ( QListView * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" -Constructs a checkable item with parent \fIparent\fR, which is after \fIafter\fR in the parent's list of children, with text \fItext\fR and of type \fItt\fR. Note that \fItt\fR must \fInot\fR be RadioButton. Radio buttons must be children of a RadioButtonController. -.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p )" -Constructs a RadioButtonController item with parent \fIparent\fR, text \fItext\fR and pixmap \fIp\fR. -.SH "QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p )" -Constructs a RadioButtonController item with parent \fIparent\fR, text \fItext\fR and pixmap \fIp\fR. -.SH "QCheckListItem::~QCheckListItem ()" -Destroys the item, and all its children to any depth, freeing up all allocated resources. -.SH "void QCheckListItem::activate ()\fC [virtual protected]\fR" -Toggle check box or set radio button to on. -.PP -Reimplemented from QListViewItem. -.SH "bool QCheckListItem::isOn () const" -Returns TRUE if the item is toggled on; otherwise returns FALSE. -.SH "bool QCheckListItem::isTristate () const" -Returns TRUE if the item is tristate; otherwise returns FALSE. -.PP -See also setTristate(). -.SH "void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align )\fC [virtual]\fR" -Paints the item using the painter \fIp\fR and the color group \fIcg\fR. The item is in column \fIcolumn\fR, has width \fIwidth\fR and has alignment \fIalign\fR. (See Qt::AlignmentFlags for valid alignments.) -.PP -Reimplemented from QListViewItem. -.SH "void QCheckListItem::paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r )\fC [virtual]\fR" -Draws the focus rectangle \fIr\fR using the color group \fIcg\fR on the painter \fIp\fR. -.PP -Reimplemented from QListViewItem. -.SH "int QCheckListItem::rtti () const\fC [virtual]\fR" -Returns 1. -.PP -Make your derived classes return their own values for rtti(), and you can distinguish between list view items. You should use values greater than 1000, to allow for extensions to this class. -.PP -Reimplemented from QListViewItem. -.SH "void QCheckListItem::setOn ( bool b )\fC [virtual]\fR" -Sets the button on if \fIb\fR is TRUE, otherwise sets it off. Maintains radio button exclusivity. -.SH "void QCheckListItem::setState ( ToggleState s )" -Sets the toggle state of the checklistitem to \fIs\fR. \fIs\fR can be Off, NoChange or On. -.PP -Tristate can only be enabled for CheckBox or CheckBoxController, therefore the NoChange only applies to them. -.PP -Setting the state to On or Off on a CheckBoxController will recursivly set the states of its children to the same state. -.PP -Setting the state to NoChange on a CheckBoxController will make it recursivly recall the previous stored state of its children. If there was no previous stored state the children are all set to On. -.SH "void QCheckListItem::setTristate ( bool b )" -Sets tristate to \fIb\fR if the Type is either a CheckBoxController or a CheckBox. -.PP -\fCCheckBoxControllers\fR are tristate by default. -.PP -See also state() and isTristate(). -.SH "ToggleState QCheckListItem::state () const" -Returns the state of the item. -.PP -See also QCheckListItem::ToggleState. -.SH "void QCheckListItem::stateChange ( bool )\fC [virtual protected]\fR" -This virtual function is called when the item changes its state. NoChange (if tristate is enabled and the type is either CheckBox or CheckBoxController) reports the same as Off, so use state() to determine if the state is actually Off or NoChange. -.SH "QString QCheckListItem::text () const" -Returns the item's text. -.SH "void QCheckListItem::turnOffChild ()\fC [protected]\fR" -If this is a RadioButtonController that has RadioButton children, turn off the child that is on. -.SH "Type QCheckListItem::type () const" -Returns the type of this item. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qchecklistitem.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive Qt documentation is provided in HTML format; it is -located at $QTDIR/doc/html and can be read using Qt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (qchecklistitem.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/qchectdelistitem.3qt b/doc/man/man3/qchectdelistitem.3qt new file mode 100644 index 0000000..af09734 --- /dev/null +++ b/doc/man/man3/qchectdelistitem.3qt @@ -0,0 +1,229 @@ +'\" t +.TH QCheckListItem 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the +.\" license file included in the distribution for a complete license +.\" statement. +.\" +.ad l +.nh +.SH NAME +QCheckListItem \- Checkable list view items +.SH SYNOPSIS +\fC#include \fR +.PP +Inherits QListViewItem. +.PP +.SS "Public Members" +.in +1c +.ti -1c +.BI "enum \fBType\fR { RadioButton, CheckBox, Controller, RadioButtonController = Controller, CheckBoxController }" +.br +.ti -1c +.BI "enum \fBToggleState\fR { Off, NoChange, On }" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QCheckListItem * parent, const QString & text, Type tt = RadioButtonController )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QListViewItem * parent, const QString & text, Type tt = RadioButtonController )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QListView * parent, const QString & text, Type tt = RadioButtonController )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QListView * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QListViewItem * parent, const QString & text, const QPixmap & p )" +.br +.ti -1c +.BI "\fBQCheckListItem\fR ( QListView * parent, const QString & text, const QPixmap & p )" +.br +.ti -1c +.BI "\fB~QCheckListItem\fR ()" +.br +.ti -1c +.BI "virtual void \fBpaintCell\fR ( QPainter * p, const QColorGroup & cg, int column, int width, int align )" +.br +.ti -1c +.BI "virtual void \fBpaintFocus\fR ( QPainter * p, const QColorGroup & cg, const QRect & r )" +.br +.ti -1c +.BI "virtual void \fBsetOn\fR ( bool b )" +.br +.ti -1c +.BI "bool \fBisOn\fR () const" +.br +.ti -1c +.BI "Type \fBtype\fR () const" +.br +.ti -1c +.BI "QString \fBtext\fR () const" +.br +.ti -1c +.BI "void \fBsetTristate\fR ( bool b )" +.br +.ti -1c +.BI "bool \fBisTristate\fR () const" +.br +.ti -1c +.BI "ToggleState \fBstate\fR () const" +.br +.ti -1c +.BI "void \fBsetState\fR ( ToggleState s )" +.br +.ti -1c +.BI "virtual int \fBrtti\fR () const" +.br +.in -1c +.SS "Protected Members" +.in +1c +.ti -1c +.BI "virtual void \fBactivate\fR ()" +.br +.ti -1c +.BI "void \fBturnOffChild\fR ()" +.br +.ti -1c +.BI "virtual void \fBstateChange\fR ( bool )" +.br +.in -1c +.SH DESCRIPTION +The QCheckListItem class provides checkable list view items. +.PP +QCheckListItems are used in QListViews to provide QListViewItems that are checkboxes, radio buttons or controllers. +.PP +Checkbox and controller check list items may be inserted at any level in a list view. Radio button check list items must be children of a controller check list item. +.PP +The item can be checked or unchecked with setOn(). Its type can be retrieved with type() and its text retrieved with text(). +.PP +
+.ce 1 +.B "[Image Omitted]" +.PP +
+.PP +See also QListViewItem, QListView, and Advanced Widgets. +.SS "Member Type Documentation" +.SH "QCheckListItem::ToggleState" +This enum specifies a QCheckListItem's toggle state. +.TP +\fCQCheckListItem::Off\fR +.TP +\fCQCheckListItem::NoChange\fR +.TP +\fCQCheckListItem::On\fR +.SH "QCheckListItem::Type" +This enum type specifies a QCheckListItem's type: +.TP +\fCQCheckListItem::RadioButton\fR +.TP +\fCQCheckListItem::CheckBox\fR +.TP +\fCQCheckListItem::Controller\fR - \fIobsolete\fR (use RadioButtonController instead) +.TP +\fCQCheckListItem::RadioButtonController\fR +.TP +\fCQCheckListItem::CheckBoxController\fR +.SH MEMBER FUNCTION DOCUMENTATION +.SH "QCheckListItem::QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = RadioButtonController )" +Constructs a checkable item with parent \fIparent\fR, text \fItext\fR and of type \fItt\fR. Note that a RadioButton must be the child of a RadioButtonController, otherwise it will not toggle. +.SH "QCheckListItem::QCheckListItem ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" +Constructs a checkable item with parent \fIparent\fR, which is after \fIafter\fR in the parent's list of children, and with text \fItext\fR and of type \fItt\fR. Note that a RadioButton must be the child of a RadioButtonController, otherwise it will not toggle. +.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = RadioButtonController )" +Constructs a checkable item with parent \fIparent\fR, text \fItext\fR and of type \fItt\fR. Note that this item must \fInot\fR be a RadioButton. Radio buttons must be children of a RadioButtonController. +.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" +Constructs a checkable item with parent \fIparent\fR, which is after \fIafter\fR in the parent's list of children, with text \fItext\fR and of type \fItt\fR. Note that this item must \fInot\fR be a RadioButton. Radio buttons must be children of a RadioButtonController. +.SH "QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, Type tt = RadioButtonController )" +Constructs a checkable item with parent \fIparent\fR, text \fItext\fR and of type \fItt\fR. Note that \fItt\fR must \fInot\fR be RadioButton. Radio buttons must be children of a RadioButtonController. +.SH "QCheckListItem::QCheckListItem ( QListView * parent, QListViewItem * after, const QString & text, Type tt = RadioButtonController )" +Constructs a checkable item with parent \fIparent\fR, which is after \fIafter\fR in the parent's list of children, with text \fItext\fR and of type \fItt\fR. Note that \fItt\fR must \fInot\fR be RadioButton. Radio buttons must be children of a RadioButtonController. +.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p )" +Constructs a RadioButtonController item with parent \fIparent\fR, text \fItext\fR and pixmap \fIp\fR. +.SH "QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p )" +Constructs a RadioButtonController item with parent \fIparent\fR, text \fItext\fR and pixmap \fIp\fR. +.SH "QCheckListItem::~QCheckListItem ()" +Destroys the item, and all its children to any depth, freeing up all allocated resources. +.SH "void QCheckListItem::activate ()\fC [virtual protected]\fR" +Toggle check box or set radio button to on. +.PP +Reimplemented from QListViewItem. +.SH "bool QCheckListItem::isOn () const" +Returns TRUE if the item is toggled on; otherwise returns FALSE. +.SH "bool QCheckListItem::isTristate () const" +Returns TRUE if the item is tristate; otherwise returns FALSE. +.PP +See also setTristate(). +.SH "void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align )\fC [virtual]\fR" +Paints the item using the painter \fIp\fR and the color group \fIcg\fR. The item is in column \fIcolumn\fR, has width \fIwidth\fR and has alignment \fIalign\fR. (See Qt::AlignmentFlags for valid alignments.) +.PP +Reimplemented from QListViewItem. +.SH "void QCheckListItem::paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r )\fC [virtual]\fR" +Draws the focus rectangle \fIr\fR using the color group \fIcg\fR on the painter \fIp\fR. +.PP +Reimplemented from QListViewItem. +.SH "int QCheckListItem::rtti () const\fC [virtual]\fR" +Returns 1. +.PP +Make your derived classes return their own values for rtti(), and you can distinguish between list view items. You should use values greater than 1000, to allow for extensions to this class. +.PP +Reimplemented from QListViewItem. +.SH "void QCheckListItem::setOn ( bool b )\fC [virtual]\fR" +Sets the button on if \fIb\fR is TRUE, otherwise sets it off. Maintains radio button exclusivity. +.SH "void QCheckListItem::setState ( ToggleState s )" +Sets the toggle state of the checklistitem to \fIs\fR. \fIs\fR can be Off, NoChange or On. +.PP +Tristate can only be enabled for CheckBox or CheckBoxController, therefore the NoChange only applies to them. +.PP +Setting the state to On or Off on a CheckBoxController will recursivly set the states of its children to the same state. +.PP +Setting the state to NoChange on a CheckBoxController will make it recursivly recall the previous stored state of its children. If there was no previous stored state the children are all set to On. +.SH "void QCheckListItem::setTristate ( bool b )" +Sets tristate to \fIb\fR if the Type is either a CheckBoxController or a CheckBox. +.PP +\fCCheckBoxControllers\fR are tristate by default. +.PP +See also state() and isTristate(). +.SH "ToggleState QCheckListItem::state () const" +Returns the state of the item. +.PP +See also QCheckListItem::ToggleState. +.SH "void QCheckListItem::stateChange ( bool )\fC [virtual protected]\fR" +This virtual function is called when the item changes its state. NoChange (if tristate is enabled and the type is either CheckBox or CheckBoxController) reports the same as Off, so use state() to determine if the state is actually Off or NoChange. +.SH "QString QCheckListItem::text () const" +Returns the item's text. +.SH "void QCheckListItem::turnOffChild ()\fC [protected]\fR" +If this is a RadioButtonController that has RadioButton children, turn off the child that is on. +.SH "Type QCheckListItem::type () const" +Returns the type of this item. + +.SH "SEE ALSO" +.BR http://doc.trolltech.com/qchecklistitem.html +.BR http://www.trolltech.com/faq/tech.html +.SH COPYRIGHT +Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the +license file included in the distribution for a complete license +statement. +.SH AUTHOR +Generated automatically from the source code. +.SH BUGS +If you find a bug in Qt, please report it as described in +.BR http://doc.trolltech.com/bughowto.html . +Good bug reports help us to help you. Thank you. +.P +The definitive Qt documentation is provided in HTML format; it is +located at $QTDIR/doc/html and can be read using Qt Assistant or with +a web browser. This man page is provided as a convenience for those +users who prefer man pages, although this format is not officially +supported by Trolltech. +.P +If you find errors in this manual page, please report them to +.BR qt-bugs@trolltech.com . +Please include the name of the manual page (qchecklistitem.3qt) and the Qt +version (3.3.8). -- cgit v1.2.1