Into

Modules

Documentation

classPiiTableModelControlWidget

#include <PiiTableModelControlWidget.h>

A widget with Add, Delete, Move up, and Move down buttons for controlling a PiiTableModel.

Inherits QWidget

Description

Properties

QBoxLayout::Direction

Layout direction.

bool

Show/hide move buttons.

Constructors and destructor

Create a new PiiTableModelControlWidget with the given parent widget.

Destroy the widget.

Public member functions

void
( )

Connect the control widget to the given model.

QBoxLayout::Direction
bool
void
(
  • QBoxLayout::Direction direction
)
void
(
  • bool moveButtonsVisible
)

Property details

  • QBoxLayout::Direction direction

    [read, write]

    Layout direction.

    By default, control buttons are laid out vertically, from top to bottom.

  • bool moveButtonsVisible

    [read, write]

    Show/hide move buttons.

    The buttons are show by default. If you do not want the user to be able to move items in a PiiTableModel, set this flag to false.

Function details

  • PiiTableModelControlWidget

    ( )

    Create a new PiiTableModelControlWidget with the given parent widget.

  • ~PiiTableModelControlWidget

    ()

    Destroy the widget.

  • void connect

    ( )

    Connect the control widget to the given model.

    The Delete and Move buttons of a connected widget will be automatically enabled and disabled. Pushing the buttons will modify the model.

  • QBoxLayout::Direction direction

    ()
  • bool moveButtonsVisible

    ()
  • void setDirection

    (
    • QBoxLayout::Direction direction
    )
  • void setMoveButtonsVisible

    (
    • bool moveButtonsVisible
    )
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.