[Digikam-devel] [Bug 127905] wish: make comment field resizable
Gilles Caulier
caulier.gilles at free.fr
Tue May 23 21:42:33 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=127905
------- Additional Comments From caulier.gilles free fr 2006-05-23 22:42 -------
SVN commit 544172 by cgilles:
digikam from trunk : Comments & tags sidebar tab : fix stretch layout
CCBUGS: 127905
CCMAIL: digikam-devel kde org
M +7 -6 imagedescedittab.cpp
--- trunk/extragear/graphics/digikam/libs/imageproperties/imagedescedittab.cpp #544171:544172
@ -152,7 +152,7 @
QVBoxLayout *vLayout = new QVBoxLayout(this);
d->navigateBar = new NavigateBarWidget(this, navBar);
QWidget *settingsArea = new QWidget(this);
- QGridLayout *settingsLayout = new QGridLayout(settingsArea, 4, 2, KDialog::marginHint(), KDialog::spacingHint());
+ QGridLayout *settingsLayout = new QGridLayout(settingsArea, 3, 1, KDialog::marginHint(), KDialog::spacingHint());
// Comments view ---------------------------------------------------
@ -160,20 +160,17 @
d->commentsEdit = new KTextEdit(commentsBox);
d->commentsEdit->setTextFormat(QTextEdit::PlainText);
d->commentsEdit->setCheckSpellingEnabled(true);
- settingsLayout->addMultiCellWidget(commentsBox, 1, 1, 0, 2);
// Date and Time view ---------------------------------------------------
QHGroupBox* dateTimeBox = new QHGroupBox(i18n("Date && Time"), settingsArea);
d->dateTimeEdit = new KDateTimeEdit( dateTimeBox, "datepicker");
- settingsLayout->addMultiCellWidget(dateTimeBox, 2, 2, 0, 2);
// Rating view --------------------------------------------------
QHGroupBox* ratingBox = new QHGroupBox(i18n("Rating"), settingsArea);
ratingBox->layout()->setAlignment(Qt::AlignCenter);
d->ratingWidget = new RatingWidget(ratingBox);
- settingsLayout->addMultiCellWidget(ratingBox, 3, 3, 0, 2);
// Tags view ---------------------------------------------------
@ -199,8 +196,6 @
d->recentTagsBtn = new QPushButton(i18n("Recent Tags"), tagsBox);
tagsBoxLayout->addWidget(d->recentTagsBtn);
- settingsLayout->addMultiCellWidget(tagsBox, 4, 4, 0, 2);
-
d->tagsView->addColumn(i18n( "Tags" ));
d->tagsView->header()->hide();
d->tagsView->setSelectionMode(QListView::Single);
@ -208,6 +203,12 @
// --------------------------------------------------
+ settingsLayout->addMultiCellWidget(commentsBox, 0, 0, 0, 1);
+ settingsLayout->addMultiCellWidget(dateTimeBox, 1, 1, 0, 1);
+ settingsLayout->addMultiCellWidget(ratingBox, 2, 2, 0, 1);
+ settingsLayout->addMultiCellWidget(tagsBox, 3, 3, 0, 1);
+ settingsLayout->setRowStretch(3, 10);
+
vLayout->addWidget(d->navigateBar);
vLayout->addWidget(settingsArea);
More information about the Digikam-devel
mailing list