[rkward-cvs] SF.net SVN: rkward:[2575] trunk/rkward/rkward

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Jul 27 12:26:34 UTC 2009


Revision: 2575
          http://rkward.svn.sourceforge.net/rkward/?rev=2575&view=rev
Author:   tfry
Date:     2009-07-27 12:26:34 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
refreshActionProperties was introduced in KDElibs 4.2. We disable this without replacement for earlier versions.

Modified Paths:
--------------
    trunk/rkward/rkward/rkward.cpp
    trunk/rkward/rkward/windows/detachedwindowcontainer.cpp

Modified: trunk/rkward/rkward/rkward.cpp
===================================================================
--- trunk/rkward/rkward/rkward.cpp	2009-07-26 20:21:45 UTC (rev 2574)
+++ trunk/rkward/rkward/rkward.cpp	2009-07-27 12:26:34 UTC (rev 2575)
@@ -387,10 +387,12 @@
 void RKWardMainWindow::changeEvent (QEvent *e) {
 	RK_TRACE (APP);
 
+#if KDE_VERSION >= KDE_MAKE_VERSION(4,2,0)
 	// see RKWardMainWindow::partChanged() for a detailed comment
 	if ((e->type () == QEvent::ActivationChange) && isActiveWindow () && isVisible ()) {
 		if (factory ()) factory ()->refreshActionProperties ();
 	}
+#endif
 
 	KParts::MainWindow::changeEvent (e);
 }

Modified: trunk/rkward/rkward/windows/detachedwindowcontainer.cpp
===================================================================
--- trunk/rkward/rkward/windows/detachedwindowcontainer.cpp	2009-07-26 20:21:45 UTC (rev 2574)
+++ trunk/rkward/rkward/windows/detachedwindowcontainer.cpp	2009-07-27 12:26:34 UTC (rev 2575)
@@ -132,7 +132,9 @@
 	if ((e->type () == QEvent::ActivationChange) && isActiveWindow () && isVisible ()) {
 		// why do we need both in this place? No idea, but without the first line, the shortcut is not refreshed, when it was changed via RMB from this window, and without the second line, the shortcut is not refreshed, when it was changed elsewhere.
 		captured->fixupPartGUI (true);
+#if KDE_VERSION >= KDE_MAKE_VERSION(4,2,0)
 		if (factory ()) factory ()->refreshActionProperties ();
+#endif
 	}
 
 	KParts::MainWindow::changeEvent (e);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list