aboutsummaryrefslogtreecommitdiff
path: root/demos/widgetsgallery/checkboxpage.cpp
diff options
context:
space:
mode:
authorDUI-Team Symbio <dui-team@fi.symbio.com>2010-03-24 14:58:08 +0200
committerDUI-Team Symbio <dui-team@fi.symbio.com>2010-03-24 14:58:08 +0200
commit97945060b776b505d703348046d14590659f75f7 (patch)
treedc389822fa1985e39e6a2471baf63494d7c2bb2b /demos/widgetsgallery/checkboxpage.cpp
parentd64b05b1e0dbcc9f1152a0a2af0df444320e0c06 (diff)
Changes: Small modifications to checkbox and pushbutton widgetsgallery pages.
RevBy: TrustMe
Diffstat (limited to 'demos/widgetsgallery/checkboxpage.cpp')
-rw-r--r--demos/widgetsgallery/checkboxpage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/demos/widgetsgallery/checkboxpage.cpp b/demos/widgetsgallery/checkboxpage.cpp
index 32c5a5cb..b54fb462 100644
--- a/demos/widgetsgallery/checkboxpage.cpp
+++ b/demos/widgetsgallery/checkboxpage.cpp
@@ -57,7 +57,9 @@ void CheckboxPage::createContent()
checkbox->setViewType(DuiButton::checkboxType);
checkbox->setCheckable(true);
checkboxLabel = new DuiLabel();
-
+ checkboxLabel->setWordWrap(true);
+ checkboxLabel->setTextElide(true);
+
// Layout for checkbox and it's infolabel
QGraphicsLinearLayout *l = new QGraphicsLinearLayout(Qt::Horizontal);
l->addItem(checkbox);
@@ -65,7 +67,7 @@ void CheckboxPage::createContent()
l->setAlignment(checkbox, Qt::AlignCenter);
l->setAlignment(checkboxLabel, Qt::AlignCenter);
containerPolicy->addItem(l);
-
+ containerPolicy->addStretch();
retranslateUi();
}
@@ -84,7 +86,7 @@ void CheckboxPage::retranslateUi()
infoLabel->setText("<a></a>" + qtTrId("xx_checkbox_page_info_label"));
//% "I have read and understood the\ninstructions."
- checkboxLabel->setText(qtTrId("xx_checkbox_page_checkbox_label"));
+ checkboxLabel->setText("<a></a>" + qtTrId("xx_checkbox_page_checkbox_label"));
}