From dc64055f717dc440870215eea4e1b587db3b27b2 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Mon, 25 Jun 2012 20:53:05 -0500 Subject: [PATCH] Update default konqueror maximum image preview size to 10MB. (cherry picked from commit 03e19305ec704b8749bb7564e16ed8d78a80d516) --- kcontrol/konq/previews.cpp | 14 +++++++------- 1 file 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("

Preview Options

Here you can modify the behavior " "of Konqueror when it shows the files in a folder." - "

The list of protocols:

check the protocols over which " + "

The list of protocols:

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." - "

Maximum File Size:

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.")); + "

Maximum File Size:

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*/ ) );