Bug 110938 - Borked resize behaviour when using the internal search
Summary: Borked resize behaviour when using the internal search
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 00:58 UTC by Frank Osterfeld
Modified: 2005-08-17 13:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
stop ktorrent to resize automatically (419 bytes, patch)
2005-08-17 12:49 UTC, Frank Osterfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Osterfeld 2005-08-17 00:58:44 UTC
When using the internal search, it seems that the ktorrent mainwin is adjusted 
to the preferred size of the khtmlpart, which depends on the content of the 
widget. E.g. if I search on bittorrent.com for "Schubert", the mainwin is 
resized to a width about 1.5x of my screen width, even when the mainwin is in 
maximized mode. IMO the ktorrent window should _never_ be automatically 
resized.
Comment 1 Joris Guisson 2005-08-17 10:17:38 UTC
I'm aware of this problem, but I haven't yet figured out why it is happening.
Comment 2 Frank Osterfeld 2005-08-17 12:49:50 UTC
Created attachment 12246 [details]
stop ktorrent to resize automatically

This patch fixes the problem for me, setting the ResizeMode of the layout the
HTMLPart is in to QLayout::Minimum.
Comment 3 Joris Guisson 2005-08-17 13:30:18 UTC
Patch doesn't fix it. But I have figured out the cause, it seems that the statusbar is causing the problem. When you move with the cursor over a really long URL, that URL will be displayed in the statusbar, but because it's really long, the label displaying the URL will be expanded which causes the whole statusbar and thus also the window to expand.

Comment 4 Joris Guisson 2005-08-17 13:50:59 UTC
SVN commit 450003 by guisson:

Changes :
- Tracker and derivatives now interpret their data instead of TorrentControl and PeerManager, which makes for some cleaner code. Tracker and TorrentControl now also communicate through signals
- The port used by UDPTracker is now configurable
- Added warning message for people to forward their ports in the download preferences
- Drag and Drop of URL's into view now works (FEATURE 110937)
- Set proper filter in open file dialog (FEATURE 110940)
- Fixed small bug in KTorrentCore::stop
- Use colors in Status column of KTorrentView
- Used KSqueezedTextLabel for first item of StatusBar (Fixes Bug 110938)

FEATURE: 110937
FEATURE: 110940
BUG: 110938
GUI



 M  +1 -0      TODO  
 M  +89 -8     libtorrent/httptracker.cpp  
 M  +4 -5      libtorrent/httptracker.h  
 M  +2 -96     libtorrent/peermanager.cpp  
 M  +12 -26    libtorrent/peermanager.h  
 M  +17 -79    libtorrent/torrentcontrol.cpp  
 M  +23 -23    libtorrent/torrentcontrol.h  
 M  +1 -1      libtorrent/tracker.cpp  
 M  +22 -11    libtorrent/tracker.h  
 M  +43 -24    libtorrent/udptracker.cpp  
 M  +6 -2      libtorrent/udptracker.h  
 M  +75 -7     src/downloadpref.ui  
 M  +1 -1      src/infowidget.cpp  
 M  +15 -20    src/ktorrent.cpp  
 M  +3 -6      src/ktorrent.h  
 M  +6 -0      src/ktorrent.kcfg  
 M  +5 -3      src/ktorrentcore.cpp  
 M  +11 -2     src/ktorrentview.cpp  
 M  +3 -0      src/ktorrentview.h  
 M  +60 -2     src/ktorrentviewitem.cpp  
 M  +4 -0      src/ktorrentviewitem.h  
 M  +27 -12    src/pref.cpp  
 M  +4 -3      src/pref.h  
 M  +7 -0      src/searchwidget.cpp  
 M  +1 -0      src/searchwidget.h