double click: full screen

Carles Pina i Estany <[email protected]>
Newsgroups gmane.comp.kde.gwenview
Message-ID <[email protected]>
Hello,

Something that I miss every time that I use/test Gwenview 2 is that, I
exepct that double click on thumbail would open the image in full screen
mode.

I've looked into the code and I found that double click behaviour
depends of KGlobalSettings::singleClick . I send a "patch" changing as
less as possible the Gwenview behaviour.

Anyway, I wonder why this was not by default. I'm the only one who
always uses doubleClick to switch to FullScreen?

I send a (ridiculous) patch, but maybe it was not a bug and it was a
feature :-)

-- 
Carles Pina i Estany		GPG id: 0x8CBDAE64
	http://pinux.info	Manresa - Barcelona

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Gwenview-general mailing list
Gwenview-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/gwenview-general
doubleclickfullscreen.patch (text/x-diff, 564 B)
Index: lib/thumbnailview.cpp
===================================================================
--- lib/thumbnailview.cpp	(revision 763443)
+++ lib/thumbnailview.cpp	(working copy)
@@ -584,6 +584,9 @@
 	if (KGlobalSettings::singleClick()) {
 		connect(this, SIGNAL(clicked(const QModelIndex&)),
 			SIGNAL(indexActivated(const QModelIndex&)) );
+
+		connect(this,SIGNAL(doubleClicked(const QModelIndex&)),
+			SLOT(slotFullScreenClicked()));
 	} else {
 		connect(this, SIGNAL(doubleClicked(const QModelIndex&)),
 			SIGNAL(indexActivated(const QModelIndex&)) );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.