From 4b9e514d7c18cdaa3e07347245b27d47825196c5 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:32:43 -0600 Subject: Fix prior commit --- 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 ----------------------------- 6 files changed, 659 insertions(+), 659 deletions(-) create mode 100644 doc/html/checklists-example.html delete mode 100644 doc/html/chectdelists-example.html create mode 100644 doc/html/qchecklistitem-members.html create mode 100644 doc/html/qchecklistitem.html delete mode 100644 doc/html/qchectdelistitem-members.html delete mode 100644 doc/html/qchectdelistitem.html (limited to 'doc/html') diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html new file mode 100644 index 0000000..a8f4fcf --- /dev/null +++ b/doc/html/checklists-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/chectdelists-example.html b/doc/html/chectdelists-example.html deleted file mode 100644 index a8f4fcf..0000000 --- a/doc/html/chectdelists-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/qchecklistitem-members.html b/doc/html/qchecklistitem-members.html new file mode 100644 index 0000000..b2c739a --- /dev/null +++ b/doc/html/qchecklistitem-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/qchecklistitem.html b/doc/html/qchecklistitem.html new file mode 100644 index 0000000..e00e24e --- /dev/null +++ b/doc/html/qchecklistitem.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/html/qchectdelistitem-members.html b/doc/html/qchectdelistitem-members.html deleted file mode 100644 index b2c739a..0000000 --- a/doc/html/qchectdelistitem-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/qchectdelistitem.html b/doc/html/qchectdelistitem.html deleted file mode 100644 index e00e24e..0000000 --- a/doc/html/qchectdelistitem.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
-
- -- cgit v1.2.3