summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-25 20:53:05 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-08-26 16:41:36 +0200
commitdc64055f717dc440870215eea4e1b587db3b27b2 (patch)
tree1a4a2adffe62cac4f9c0d020798725eab7ccd975
parent27d73efc1fd439cdf4874051f8e4b39a1c01fdb0 (diff)
downloadtdebase-dc64055f717dc440870215eea4e1b587db3b27b2.tar.gz
tdebase-dc64055f717dc440870215eea4e1b587db3b27b2.zip
Update default konqueror maximum image preview size to 10MB.
(cherry picked from commit 03e19305ec704b8749bb7564e16ed8d78a80d516)
-rw-r--r--kcontrol/konq/previews.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kcontrol/konq/previews.cpp b/kcontrol/konq/previews.cpp
index cbe4d40a7..53c16f15f 100644
--- a/kcontrol/konq/previews.cpp
+++ b/kcontrol/konq/previews.cpp
@@ -67,14 +67,14 @@ KPreviewOptions::KPreviewOptions( TQWidget *parent, const char */*name*/ )
setQuickHelp( i18n("<h1>Preview Options</h1> Here you can modify the behavior "
"of Konqueror when it shows the files in a folder."
- "<h2>The list of protocols:</h2> check the protocols over which "
+ "<h2>The list of protocols:</h2> Check the protocols over which "
"previews should be shown; uncheck those over which they should not. "
"For instance, you might want to show previews over SMB if the local "
"network is fast enough, but you might disable it for FTP if you often "
"visit very slow FTP sites with large images."
- "<h2>Maximum File Size:</h2> select the maximum file size for which "
- "previews should be generated. For instance, if set to 1 MB (the default), "
- "no preview will be generated for files bigger than 1 MB, for speed reasons."));
+ "<h2>Maximum File Size:</h2> Select the maximum file size for which "
+ "previews should be generated. For instance, if set to 10 MB (the default), "
+ "no preview will be generated for files bigger than 10 MB, for speed reasons."));
// Listview containing checkboxes for all protocols that support listing
KListView *listView = new KListView( this, "listView" );
@@ -152,8 +152,8 @@ KPreviewOptions::KPreviewOptions( TQWidget *parent, const char */*name*/ )
load();
}
-// Default: 1 MB
-#define DEFAULT_MAXSIZE (1024*1024)
+// Default: 10 MB
+#define DEFAULT_MAXSIZE (1024*1024*10)
void KPreviewOptions::load(bool useDefaults)
{
@@ -171,7 +171,7 @@ void KPreviewOptions::load(bool useDefaults)
else
it.current()->setOn( group.readBoolEntry( protocol, false ) );
}
- // config key is in bytes (default value 1MB), numinput is in MB
+ // config key is in bytes (default value 10MB), numinput is in MB
m_maxSize->setValue( ((double)group.readNumEntry( "MaximumSize", DEFAULT_MAXSIZE )) / (1024*1024) );
m_boostSize->setChecked( group.readBoolEntry( "BoostSize", false /*default*/ ) );