Kyum starts too wide, won't resize
Brought to you by:
steffen_ac
When kyum is brought up on a small (800x600) display the window is wider than the display, and frequently taller as well. The height can be resized in the usual way by dragging the top or bottom edge, but the all attempts to resize the width fail. The cursor changes to a double-headed arrow, but the edge will not drag.
This has been observed on several different laptops, running either Fedora Core 6 or Fedora 7, with both Gnome and KDE window managers.
I created the following patch to fix this problem:
Index: src/ActionsView.cpp
RCS file: /cvsroot/kyum/kyum/src/ActionsView.cpp,v
retrieving revision 1.6
diff -u -r1.6 ActionsView.cpp
--- src/ActionsView.cpp 31 Dec 2005 17:57:07 -0000 1.6
+++ src/ActionsView.cpp 6 Oct 2008 22:16:03 -0000
@@ -415,9 +415,8 @@
QFontMetrics fm(m_pSelectionInfo->font());
m_pSelectionInfo->setMinimumWidth(fm.width(strSampleInfo));
- pInfoPanelLayout->addSpacing(25);
+ pInfoPanelLayout->addSpacing(2);
pInfoPanelLayout->addWidget(m_pSelectionInfo);
- pInfoPanelLayout->addSpacing(25);
m_pListView = 0; // To avoid crash in updateSelectionInfo()
updateSelectionInfo();
@@ -440,10 +439,16 @@
/*
QSpacerItem * pHSpacer = new QSpacerItem(60, 0, QSizePolicy::Expanding, QSizePolicy::Maximum);
*/
- pHLayout->addWidget(m_pButtonSelectAll);
- pHLayout->addWidget(m_pButtonDeselectAll);
+ QVBoxLayout * pSelectLayout = new QVBoxLayout(pHLayout, 2);
+ QHBoxLayout * pSelectButtonLayout = new QHBoxLayout(pSelectLayout, 2);
+
+ pSelectButtonLayout->addWidget(m_pButtonSelectAll);
+ pSelectButtonLayout->addWidget(m_pButtonDeselectAll);
+ pSelectButtonLayout->addStretch();
+
+ pSelectLayout->addWidget(pSelInfoPanel);
+
// pHLayout->addItem(pHSpacer);
- pHLayout->addWidget(pSelInfoPanel);
pHLayout->addWidget(m_pLabelFindInList);
pHLayout->addWidget(m_pEditFindInList);
pHLayout->addWidget(m_pButtonFindPrevInList);