Adds optional "title" attribute to SectionContent and show it in visible

areas e.g. context-menu.
Build as shared library by default.
This commit is contained in:
mfreiholz
2016-02-24 12:12:09 +01:00
parent 7e41d18a6d
commit 0e831ee55f
7 changed files with 50 additions and 20 deletions

View File

@@ -32,7 +32,9 @@ static ADS_NS::SectionContent::RefPtr createLongTextLabelSC(ADS_NS::ContainerWid
bl->addWidget(l);
const int index = ++CONTENT_COUNT;
return ADS_NS::SectionContent::newSectionContent(QString("uname-%1").arg(index), container, new IconTitleWidget(QIcon(), QString("Label %1").arg(index)), w);
ADS_NS::SectionContent::RefPtr sc = ADS_NS::SectionContent::newSectionContent(QString("uname-%1").arg(index), container, new IconTitleWidget(QIcon(), QString("Label %1").arg(index)), w);
sc->setTitle("Ein Label " + QString::number(index));
return sc;
}
static ADS_NS::SectionContent::RefPtr createCalendarSC(ADS_NS::ContainerWidget* container)