Summary: | wish: make comment field resizable | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Jens <jens-bugs.kde.org> |
Component: | Usability-Ergonomy | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | wishlist | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | 0.9.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.0 | |
Sentry Crash Report: | |||
Attachments: | screenshot with proposal sketched in |
Description
Jens
2006-05-23 22:11:53 UTC
Created attachment 16247 [details]
screenshot with proposal sketched in
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); This solution is OK for me. Thanks for the quick fix ;) |