Bug 127905 - wish: make comment field resizable
Summary: wish: make comment field resizable
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Ergonomy (show other bugs)
Version: 0.9.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 22:11 UTC by Jens
Modified: 2022-01-07 05:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments
screenshot with proposal sketched in (50.94 KB, image/png)
2006-05-23 22:12 UTC, Jens
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ;)