SVN commit 544172 by cgilles:
digikam from trunk : Comments & tags sidebar tab : fix stretch layout CCBUGS: 127905 CCMAIL: [hidden email] 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); _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |