Medical Imaging Interaction Toolkit  2024.06.99-fe296c79
Medical Imaging Interaction Toolkit
berry::Separator Class Reference

#include <berrySeparator.h>

Inheritance diagram for berry::Separator:
Collaboration diagram for berry::Separator:

Public Member Functions

 Separator ()
 
 Separator (const QString &groupName)
 
void Fill (QMenu *menu, QAction *before) override
 
void Fill (QToolBar *toolbar, QAction *before) override
 
bool IsSeparator () const override
 

Detailed Description

A separator is a special kind of contribution item which acts as a visual separator and, optionally, acts as a group marker. Unlike group markers, separators do have a visual representation for menus and toolbars.

This class may be instantiated; it is not intended to be subclassed outside the framework.

Definition at line 31 of file berrySeparator.h.

Constructor & Destructor Documentation

◆ Separator() [1/2]

berry::Separator::Separator ( )

Creates a separator which does not start a new group.

◆ Separator() [2/2]

berry::Separator::Separator ( const QString &  groupName)

Creates a new separator which also defines a new group having the given group name. The group name must not be null or the empty string. The group name is also used as the item id.

Parameters
groupNamethe group name of the separator

Member Function Documentation

◆ Fill() [1/2]

void berry::Separator::Fill ( QMenu *  menu,
QAction *  before 
)
override

◆ Fill() [2/2]

void berry::Separator::Fill ( QToolBar *  toolbar,
QAction *  before 
)
override

◆ IsSeparator()

bool berry::Separator::IsSeparator ( ) const
override

The Separator implementation of this IContributionItem method returns true


The documentation for this class was generated from the following file: