You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
570 B
37 lines
570 B
13 years ago
|
#include "UBDockPaletteWidget.h"
|
||
|
|
||
|
UBDockPaletteWidget::UBDockPaletteWidget(const char *name, QWidget *parent):QWidget(parent)
|
||
|
, mpWidget(NULL)
|
||
|
{
|
||
|
setObjectName(name);
|
||
|
|
||
|
}
|
||
|
|
||
|
UBDockPaletteWidget::~UBDockPaletteWidget()
|
||
|
{
|
||
|
if(NULL != mpWidget)
|
||
|
{
|
||
|
delete mpWidget;
|
||
|
mpWidget = NULL;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
QWidget* UBDockPaletteWidget::widget()
|
||
|
{
|
||
|
return mpWidget;
|
||
|
}
|
||
|
|
||
|
QIcon UBDockPaletteWidget::icon()
|
||
|
{
|
||
|
return mIcon;
|
||
|
}
|
||
|
|
||
|
QIcon UBDockPaletteWidget::collapsedIcon()
|
||
|
{
|
||
|
return mCollapsedIcon;
|
||
|
}
|
||
|
QString UBDockPaletteWidget::name()
|
||
|
{
|
||
|
return mName;
|
||
|
}
|