From 8e685661d962c10c13efd3c442742c1afe1afd1b Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 25 Mar 2003 21:59:44 +0000 Subject: - in setCurrentRotation do the qcop call if we're called from within a client (consistent to setDefaultRotation's behaviour) --- (limited to 'library/qpeapplication.h') diff --git a/library/qpeapplication.h b/library/qpeapplication.h index 7f74510..82954d0 100644 --- a/library/qpeapplication.h +++ b/library/qpeapplication.h @@ -31,6 +31,10 @@ #include "qpedecoration_qws.h" #include "timestring.h" +#if ( defined Q_WS_QWS || defined( _WS_QWS_ ) ) && !defined( QT_NO_COP ) +#include +#endif + class QCopChannel; class QPEApplicationData; class QWSEvent; @@ -161,6 +165,11 @@ enum Transformation { Rot0, Rot90, Rot180, Rot270 }; /* from qgfxtransformed_qws inline void QPEApplication::setCurrentRotation( int r ) { + if ( qApp->type() != GuiServer ) { + QCopEnvelope e( "QPE/System", "setCurrentRotation(int)" ); + e << r; + return; + } Transformation e; switch (r) { -- cgit v0.9.0.2