#18 adds flags to disable close functionality

This commit is contained in:
mfreiholz
2016-08-04 13:36:55 +02:00
parent 9e27d0b224
commit 70e614b561
7 changed files with 54 additions and 19 deletions

View File

@@ -9,7 +9,8 @@
ADS_NAMESPACE_BEGIN
SectionContent::SectionContent() :
_uid(GetNextUid())
_uid(GetNextUid()),
_flags(AllFlags)
{
}
@@ -78,6 +79,11 @@ QWidget* SectionContent::contentWidget() const
return _contentWidget;
}
SectionContent::Flags SectionContent::flags() const
{
return _flags;
}
QString SectionContent::visibleTitle() const
{
if (_title.isEmpty())
@@ -95,6 +101,11 @@ void SectionContent::setTitle(const QString& title)
_title = title;
}
void SectionContent::setFlags(const Flags f)
{
_flags = f;
}
int SectionContent::GetNextUid()
{
static int NextUid = 0;