Bug 127905

Summary: wish: make comment field resizable
Product: [Applications] digikam Reporter: Jens <jens-bugs.kde.org>
Component: Usability-ErgonomyAssignee: 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
Version:           0.9.0-svn (using KDE 3.5.2 Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.8-default

Hello, 

I would like to be able to change the size (height) of the comment field in the right side bar under "Comments & Tags". I have a lot of tags which I use constantly but use almost no "free text" comments.

What I mean is that the "Comments & Tags" is horizontally divided with the same mechanism as the digikam main window is divided vertically (where you can change the width of the three areas with the mouse).

Thanks!

Jens
Comment 1 Jens 2006-05-23 22:12:27 UTC
Created attachment 16247 [details]
screenshot with proposal sketched in
Comment 2 caulier.gilles 2006-05-23 22:42:32 UTC
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);    
 
Comment 3 Jens 2006-05-24 00:27:58 UTC
This solution is OK for me. Thanks for the quick fix ;)