[Konversation-devel] [Bug 128432] Nicklist window needlessly shows horizontal scrollbar
Eike Hein
sho at eikehein.com
Tue Aug 29 19:09:53 CEST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=128432
sho eikehein com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From sho eikehein com 2006-08-29 19:09 -------
SVN commit 578579 by hein:
Don't show unnecessary horizontal scrollbars.
BUG:128432
M +4 -3 channel.cpp
M +1 -1 commit.h
M +1 -0 viewtree.cpp
--- trunk/extragear/network/konversation/src/channel.cpp #578578:578579
@ -192,6 +192,7 @
nickListButtons->setSpacing(spacing());
nicknameListView=new NickListView(nickListButtons, this);
+ nicknameListView->setHScrollBarMode(QScrollView::AlwaysOff);
nicknameListView->setSelectionModeExt(KListView::Extended);
nicknameListView->setAllColumnsShowFocus(true);
nicknameListView->setSorting(1,true);
@ -2245,8 +2246,7 @
if(state)
{
// we can't have automatic resizing with three columns; the hostname column is too wide
- nicknameListView->setResizeMode(QListView::NoColumn);
- nicknameListView->setColumnWidthMode(1,KListView::Maximum);
+ nicknameListView->setHScrollBarMode(QScrollView::Auto);
// restart userhost timer
userhostTimer.start(10000);
@ -2256,6 +2256,7 @
// re-add the hostmask column
nicknameListView->addColumn(QString::null);
nicknameListView->setColumnWidthMode(2,KListView::Maximum);
+ nicknameListView->setResizeMode(QListView::NoColumn);
// re-add already known hostmasks
QListViewItem* item=nicknameListView->itemAtIndex(0);
@ -2271,7 +2272,7 @
{
userhostTimer.stop();
if(nicknameListView->columns()==3) nicknameListView->removeColumn(2);
-
+ nicknameListView->setHScrollBarMode(QScrollView::AlwaysOff);
// make the nick column resize itself automatically to prevent horizontal scrollbar
nicknameListView->setResizeMode(QListView::LastColumn);
}
--- trunk/extragear/network/konversation/src/commit.h #578578:578579
@ -1,4 +1,4 @
// This COMMIT number is added to version string to be used as "patch level"
#ifndef COMMIT
-#define COMMIT 3152
+#define COMMIT 3153
#endif
--- trunk/extragear/network/konversation/src/viewtree.cpp #578578:578579
@ -34,6 +34,7 @
: KListView(parent)
{
header()->hide();
+ setHScrollBarMode(QScrollView::AlwaysOff);
addColumn(i18n("Tabs"));
setSortColumn(0);
More information about the Konversation-devel
mailing list