Bug 107510 - Preference dialog cut off
Summary: Preference dialog cut off
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 00:13 UTC by Thomas McGuire
Modified: 2005-06-16 11:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot which shows the dialog in question (28.62 KB, image/png)
2005-06-16 00:15 UTC, Thomas McGuire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas McGuire 2005-06-16 00:13:00 UTC
Version:           1.0rc1 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

When opening Settings->Configure KTorrent, the dialog is not shown correctly because it is too small.  The last checkbox is "Keep seeding [...]", I can not see more options.
This is especially annonying because the dialog is not resizeable (it can be made smaller, but not bigger).
I suspect there are a couple of interesting options below there...
Comment 1 Thomas McGuire 2005-06-16 00:15:30 UTC
Created attachment 11472 [details]
Screenshot which shows the dialog in question
Comment 2 Joris Guisson 2005-06-16 11:48:07 UTC
SVN commit 426050 by guisson:

Fixed size issues in configuration dialog.

BUG: 107510


 M             ktorrent.kdevelop.pcs  
 M  +14 -1     ktorrent.kdevses  
 M  +5 -2      src/pref.cpp  


--- trunk/extragear/network/ktorrent/ktorrent.kdevses #426049:426050
@@ -1,7 +1,20 @@
 <?xml version = '1.0' encoding = 'UTF-8'?>
 <!DOCTYPE KDevPrjSession>
 <KDevPrjSession>
- <DocsAndViews NumberOfDocuments="0" />
+ <DocsAndViews NumberOfDocuments="4" >
+  <Doc0 NumberOfViews="1" URL="file:///home/joris/Projects/ktorrent/Makefile.am" >
+   <View0 line="8" Type="Source" />
+  </Doc0>
+  <Doc1 NumberOfViews="1" URL="file:///home/joris/Projects/ktorrent/src/Makefile.am" >
+   <View0 line="36" Type="Source" />
+  </Doc1>
+  <Doc2 NumberOfViews="1" URL="file:///home/joris/Projects/ktorrent/libtorrent/Makefile.am" >
+   <View0 line="22" Type="Source" />
+  </Doc2>
+  <Doc3 NumberOfViews="1" URL="file:///home/joris/Projects/ktorrent/src/main.cpp" >
+   <View0 line="0" Type="Source" />
+  </Doc3>
+ </DocsAndViews>
  <pluginList>
   <kdevdebugger>
    <breakpointList>
--- trunk/extragear/network/ktorrent/src/pref.cpp #426049:426050
@@ -48,11 +48,14 @@
 	// a Treelist dialog.. but there are a number of other
 	// possibilities (including Tab, Swallow, and just Plain)
 	enableButtonSeparator(true);
-	setInitialSize(QSize(800,300),true);
+		
 	QFrame *frame = addPage(i18n("Downloads"), i18n("Download Options"));
+	QVBoxLayout* vbox = new QVBoxLayout(frame);
+	vbox->setAutoAdd(true);
 	m_page_one = new KTorrentPrefPageOne(frame);
 	connect(this,SIGNAL(applyClicked()),this,SLOT(applyPressed()));
 	connect(this,SIGNAL(okClicked()),this,SLOT(okPressed()));
+//	setInitialSize(QSize(800,500),false);
 }
 
 void KTorrentPreferences::okPressed()
@@ -71,7 +74,7 @@
 
 KTorrentPrefPageOne::KTorrentPrefPageOne(QWidget *parent) : DownloadPref(parent)
 {
-	setMinimumSize(400,400);
+		//setMinimumSize(400,400);
 	
 	max_downloads->setValue(Settings::maxDownloads());
 	max_conns->setValue(Settings::maxConnections());