forked from qt-creator/qt-creator
WelcomeModeLabel: Make usable in Designer as a normal 'styled' label.
Remove HTML-formatting and replace by properties set in constructor. Use in forms.
This commit is contained in:
@@ -45,26 +45,24 @@ enum { leftContentsMargin = 2,
|
|||||||
namespace Utils {
|
namespace Utils {
|
||||||
|
|
||||||
WelcomeModeLabel::WelcomeModeLabel(QWidget *parent) :
|
WelcomeModeLabel::WelcomeModeLabel(QWidget *parent) :
|
||||||
QLabel(parent)
|
QLabel(parent), m_unused(0)
|
||||||
{
|
{
|
||||||
|
// Bold/enlarged font slightly gray. Force color on by stylesheet as it is used
|
||||||
|
// as a child of widgets that have stylesheets.
|
||||||
|
QFont f = font();
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
|
f.setWeight(QFont::DemiBold);
|
||||||
|
#endif
|
||||||
|
f.setPointSizeF(f.pointSizeF() * 1.2);
|
||||||
|
setFont(f);
|
||||||
|
setStyleSheet(QLatin1String("color : rgb(85, 85, 85);"));
|
||||||
|
setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
WelcomeModeLabel::~WelcomeModeLabel()
|
WelcomeModeLabel::~WelcomeModeLabel()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void WelcomeModeLabel::setStyledText(const QString &text)
|
|
||||||
{
|
|
||||||
QString rc = QLatin1String(
|
|
||||||
"<html><head><style type=\"text/css\">p, li { white-space: pre-wrap; }</style></head>"
|
|
||||||
"<body style=\" font-weight:500; font-style:normal;\">"
|
|
||||||
"<p style=\" margin-top:16px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">"
|
|
||||||
"<span style=\" font-size:large; color:#555555;\">");
|
|
||||||
rc += text;
|
|
||||||
rc += QLatin1String("</span></p></body></html>");
|
|
||||||
setText(rc);
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewsLabel for the WelcomeModeTreeWidget:
|
// NewsLabel for the WelcomeModeTreeWidget:
|
||||||
// Shows a news article as "Bold Title!\nElided Start of article...."
|
// Shows a news article as "Bold Title!\nElided Start of article...."
|
||||||
// Adapts the eliding when resizing.
|
// Adapts the eliding when resizing.
|
||||||
|
@@ -38,9 +38,9 @@
|
|||||||
namespace Utils {
|
namespace Utils {
|
||||||
|
|
||||||
struct WelcomeModeTreeWidgetPrivate;
|
struct WelcomeModeTreeWidgetPrivate;
|
||||||
struct WelcomeModeLabelPrivate;
|
|
||||||
class WelcomeModeItemWidget;
|
class WelcomeModeItemWidget;
|
||||||
|
|
||||||
|
// Label usable for headers of a Welcome page.
|
||||||
class QTCREATOR_UTILS_EXPORT WelcomeModeLabel : public QLabel
|
class QTCREATOR_UTILS_EXPORT WelcomeModeLabel : public QLabel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -48,10 +48,8 @@ public:
|
|||||||
explicit WelcomeModeLabel(QWidget *parent = 0);
|
explicit WelcomeModeLabel(QWidget *parent = 0);
|
||||||
virtual ~WelcomeModeLabel();
|
virtual ~WelcomeModeLabel();
|
||||||
|
|
||||||
void setStyledText(const QString &text);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
WelcomeModeLabelPrivate *m_d;
|
void *m_unused;
|
||||||
};
|
};
|
||||||
|
|
||||||
// WelcomeModeTreeWidget: Show an itemized list with arrows and emits a signal on click.
|
// WelcomeModeTreeWidget: Show an itemized list with arrows and emits a signal on click.
|
||||||
|
@@ -78,8 +78,6 @@ ProjectWelcomePageWidget::ProjectWelcomePageWidget(QWidget *parent) :
|
|||||||
ui(new Ui::ProjectWelcomePageWidget)
|
ui(new Ui::ProjectWelcomePageWidget)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->projTitleLabel->setStyledText(tr("Recent Projects"));
|
|
||||||
ui->recentSessionsTitleLabel->setStyledText(tr("Resume Session"));
|
|
||||||
updateWelcomePage(WelcomePageData());
|
updateWelcomePage(WelcomePageData());
|
||||||
|
|
||||||
connect(ui->sessTreeWidget, SIGNAL(activated(QString)), SLOT(slotSessionClicked(QString)));
|
connect(ui->sessTreeWidget, SIGNAL(activated(QString)), SLOT(slotSessionClicked(QString)));
|
||||||
|
@@ -2,14 +2,6 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>ProjectExplorer::Internal::ProjectWelcomePageWidget</class>
|
<class>ProjectExplorer::Internal::ProjectWelcomePageWidget</class>
|
||||||
<widget class="QWidget" name="ProjectExplorer::Internal::ProjectWelcomePageWidget">
|
<widget class="QWidget" name="ProjectExplorer::Internal::ProjectWelcomePageWidget">
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>639</width>
|
|
||||||
<height>322</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -28,9 +20,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="contentframe">
|
<widget class="QFrame" name="contentframe">
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
@@ -42,33 +31,23 @@
|
|||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="recentProjectsFrame">
|
<widget class="QFrame" name="recentProjectsFrame">
|
||||||
<property name="styleSheet">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<item row="3" column="0" colspan="3">
|
<item row="3" column="0" colspan="3">
|
||||||
<widget class="Utils::WelcomeModeTreeWidget" name="projTreeWidget">
|
<widget class="Utils::WelcomeModeTreeWidget" name="projTreeWidget"/>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="3">
|
<item row="1" column="0" colspan="3">
|
||||||
<widget class="Utils::WelcomeModeLabel" name="projTitleLabel">
|
<widget class="Utils::WelcomeModeLabel" name="projTitleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum">
|
<string>Recent Projects</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -89,9 +68,6 @@
|
|||||||
<height>130</height>
|
<height>130</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@@ -107,14 +83,16 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Resume Session</string>
|
||||||
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="3">
|
<item row="3" column="0" colspan="3">
|
||||||
<widget class="Utils::WelcomeModeTreeWidget" name="sessTreeWidget">
|
<widget class="Utils::WelcomeModeTreeWidget" name="sessTreeWidget"/>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -189,12 +167,12 @@
|
|||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Utils::WelcomeModeTreeWidget</class>
|
<class>Utils::WelcomeModeTreeWidget</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
<header>utils/welcomemodetreewidget.h</header>
|
<header location="global">utils/welcomemodetreewidget.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Utils::WelcomeModeLabel</class>
|
<class>Utils::WelcomeModeLabel</class>
|
||||||
<extends>QLabel</extends>
|
<extends>QLabel</extends>
|
||||||
<header>utils/welcomemodetreewidget.h</header>
|
<header location="global">utils/welcomemodetreewidget.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
|
@@ -64,10 +64,7 @@ GettingStartedWelcomePageWidget::GettingStartedWelcomePageWidget(QWidget *parent
|
|||||||
ui(new Ui::GettingStartedWelcomePageWidget)
|
ui(new Ui::GettingStartedWelcomePageWidget)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->tutorialsTitleLabel->setStyledText(tr("Tutorials"));
|
|
||||||
ui->demoTitleLabel->setStyledText(tr("Explore Qt Examples"));
|
|
||||||
ui->didYouKnowTextBrowser->viewport()->setAutoFillBackground(false);
|
ui->didYouKnowTextBrowser->viewport()->setAutoFillBackground(false);
|
||||||
ui->didYouKnowTitleLabel->setStyledText(tr("Did You Know?"));
|
|
||||||
|
|
||||||
connect(ui->tutorialTreeWidget, SIGNAL(activated(QString)), SLOT(slotOpenHelpPage(const QString&)));
|
connect(ui->tutorialTreeWidget, SIGNAL(activated(QString)), SLOT(slotOpenHelpPage(const QString&)));
|
||||||
|
|
||||||
|
@@ -57,20 +57,13 @@
|
|||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="Utils::WelcomeModeLabel" name="tutorialsTitleLabel">
|
<widget class="Utils::WelcomeModeLabel" name="tutorialsTitleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<string>Tutorials</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="Utils::WelcomeModeTreeWidget" name="tutorialTreeWidget">
|
<widget class="Utils::WelcomeModeTreeWidget" name="tutorialTreeWidget"/>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -101,8 +94,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="Utils::WelcomeModeLabel" name="demoTitleLabel">
|
<widget class="Utils::WelcomeModeLabel" name="demoTitleLabel">
|
||||||
<property name="alignment">
|
<property name="text">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
<string>Explore Qt Examples</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -155,19 +148,6 @@
|
|||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>12</number>
|
<number>12</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="Utils::WelcomeModeLabel" name="didYouKnowTitleLabel">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<layout class="QGridLayout" name="gridLayout_10">
|
<layout class="QGridLayout" name="gridLayout_10">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
@@ -273,6 +253,37 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="Utils::WelcomeModeLabel" name="didYouKnowTitleLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Did You Know?</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -330,12 +341,12 @@
|
|||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Utils::WelcomeModeTreeWidget</class>
|
<class>Utils::WelcomeModeTreeWidget</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
<header>utils/welcomemodetreewidget.h</header>
|
<header location="global">utils/welcomemodetreewidget.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Utils::WelcomeModeLabel</class>
|
<class>Utils::WelcomeModeLabel</class>
|
||||||
<extends>QLabel</extends>
|
<extends>QLabel</extends>
|
||||||
<header>utils/welcomemodetreewidget.h</header>
|
<header location="global">utils/welcomemodetreewidget.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
|
@@ -84,9 +84,6 @@ CommunityWelcomePageWidget::CommunityWelcomePageWidget(QWidget *parent) :
|
|||||||
ui(new Ui::CommunityWelcomePageWidget)
|
ui(new Ui::CommunityWelcomePageWidget)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->labsTitleLabel->setStyledText(tr("News From the Qt Labs"));
|
|
||||||
ui->supportSitesTitleLabel->setStyledText(tr("Qt Support Sites"));
|
|
||||||
ui->miscSitesTitleLabel->setStyledText(tr("Qt Links"));
|
|
||||||
|
|
||||||
connect(ui->newsTreeWidget, SIGNAL(activated(QString)), SLOT(slotUrlClicked(QString)));
|
connect(ui->newsTreeWidget, SIGNAL(activated(QString)), SLOT(slotUrlClicked(QString)));
|
||||||
connect(ui->miscSitesTreeWidget, SIGNAL(activated(QString)), SLOT(slotUrlClicked(QString)));
|
connect(ui->miscSitesTreeWidget, SIGNAL(activated(QString)), SLOT(slotUrlClicked(QString)));
|
||||||
|
@@ -54,20 +54,13 @@
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeLabel" name="labsTitleLabel">
|
<widget class="Utils::WelcomeModeLabel" name="labsTitleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<string>News From the Qt Labs</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeTreeWidget" name="newsTreeWidget">
|
<widget class="Utils::WelcomeModeTreeWidget" name="newsTreeWidget"/>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -83,37 +76,23 @@
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeLabel" name="supportSitesTitleLabel">
|
<widget class="Utils::WelcomeModeLabel" name="supportSitesTitleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<string>Qt Support Sites</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeTreeWidget" name="supportSitesTreeWidget">
|
<widget class="Utils::WelcomeModeTreeWidget" name="supportSitesTreeWidget"/>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeLabel" name="miscSitesTitleLabel">
|
<widget class="Utils::WelcomeModeLabel" name="miscSitesTitleLabel">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
<string>Qt Links</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="Utils::WelcomeModeTreeWidget" name="miscSitesTreeWidget">
|
<widget class="Utils::WelcomeModeTreeWidget" name="miscSitesTreeWidget"/>
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -127,12 +106,12 @@
|
|||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Utils::WelcomeModeTreeWidget</class>
|
<class>Utils::WelcomeModeTreeWidget</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
<header>utils/welcomemodetreewidget.h</header>
|
<header location="global">utils/welcomemodetreewidget.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>Utils::WelcomeModeLabel</class>
|
<class>Utils::WelcomeModeLabel</class>
|
||||||
<extends>QLabel</extends>
|
<extends>QLabel</extends>
|
||||||
<header>utils/welcomemodetreewidget.h</header>
|
<header location="global">utils/welcomemodetreewidget.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
@@ -244,6 +244,17 @@ QWidget *WelcomePageWidget_CW::createWidget(QWidget *parent)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WelcomeModeLabel_CW::WelcomeModeLabel_CW(QObject *parent) :
|
||||||
|
QObject(parent),
|
||||||
|
CustomWidget<Utils::WelcomeModeLabel>
|
||||||
|
(QLatin1String("<utils/welcomemodetreewidget.h>"),
|
||||||
|
false,
|
||||||
|
QLatin1String(groupC),
|
||||||
|
QIcon(),
|
||||||
|
QLatin1String("Welcome page header label"))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
DetailsWidget_CW::DetailsWidget_CW(QObject *parent) :
|
DetailsWidget_CW::DetailsWidget_CW(QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
CustomWidget<Utils::DetailsWidget>
|
CustomWidget<Utils::DetailsWidget>
|
||||||
@@ -370,6 +381,7 @@ WidgetCollection::WidgetCollection(QObject *parent) :
|
|||||||
m_plugins.push_back(new StyledSeparator_CW(this));
|
m_plugins.push_back(new StyledSeparator_CW(this));
|
||||||
m_plugins.push_back(new Wizard_CW(this));
|
m_plugins.push_back(new Wizard_CW(this));
|
||||||
m_plugins.push_back(new WelcomePageWidget_CW(this));
|
m_plugins.push_back(new WelcomePageWidget_CW(this));
|
||||||
|
m_plugins.push_back(new WelcomeModeLabel_CW(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<QDesignerCustomWidgetInterface*> WidgetCollection::customWidgets() const
|
QList<QDesignerCustomWidgetInterface*> WidgetCollection::customWidgets() const
|
||||||
|
@@ -235,6 +235,17 @@ public:
|
|||||||
virtual QWidget *createWidget(QWidget *parent);
|
virtual QWidget *createWidget(QWidget *parent);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class WelcomeModeLabel_CW :
|
||||||
|
public QObject,
|
||||||
|
public CustomWidget<Utils::WelcomeModeLabel>
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QDesignerCustomWidgetInterface)
|
||||||
|
public:
|
||||||
|
explicit WelcomeModeLabel_CW(QObject *parent = 0);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// Details Widget: plugin + simple, hacky container extension that
|
// Details Widget: plugin + simple, hacky container extension that
|
||||||
// accepts only one page.
|
// accepts only one page.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user