summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qeventdispatcher_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-06-24 12:41:17 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-06-24 12:47:31 (GMT)
commit13cc79de7b96cfe367869a748d07d502997d0342 (patch)
treeaead51fb365f939d06b78dc6366f124c86cbb4af /src/gui/kernel/qeventdispatcher_qpa.cpp
parent1e88fd57c693db1e4b6f0c42a2c05fad935fb4b9 (diff)
downloadQt-13cc79de7b96cfe367869a748d07d502997d0342.zip
Qt-13cc79de7b96cfe367869a748d07d502997d0342.tar.gz
Qt-13cc79de7b96cfe367869a748d07d502997d0342.tar.bz2
Refactored classes and functions using lite
Diffstat (limited to 'src/gui/kernel/qeventdispatcher_qpa.cpp')
-rw-r--r--src/gui/kernel/qeventdispatcher_qpa.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/kernel/qeventdispatcher_qpa.cpp b/src/gui/kernel/qeventdispatcher_qpa.cpp
index c6b5636..5740548 100644
--- a/src/gui/kernel/qeventdispatcher_qpa.cpp
+++ b/src/gui/kernel/qeventdispatcher_qpa.cpp
@@ -54,29 +54,29 @@ QT_BEGIN_NAMESPACE
QT_USE_NAMESPACE
-class QEventDispatcherLitePrivate : public QEventDispatcherUNIXPrivate
+class QEventDispatcherQPAPrivate : public QEventDispatcherUNIXPrivate
{
- Q_DECLARE_PUBLIC(QEventDispatcherLite)
+ Q_DECLARE_PUBLIC(QEventDispatcherQPA)
public:
- inline QEventDispatcherLitePrivate()
+ inline QEventDispatcherQPAPrivate()
{ }
};
-QEventDispatcherLite::QEventDispatcherLite(QObject *parent)
- : QEventDispatcherUNIX(*new QEventDispatcherLitePrivate, parent)
+QEventDispatcherQPA::QEventDispatcherQPA(QObject *parent)
+ : QEventDispatcherUNIX(*new QEventDispatcherQPAPrivate, parent)
{ }
-QEventDispatcherLite::~QEventDispatcherLite()
+QEventDispatcherQPA::~QEventDispatcherQPA()
{ }
//#define ZERO_FOR_THE_MOMENT
-bool QEventDispatcherLite::processEvents(QEventLoop::ProcessEventsFlags flags)
+bool QEventDispatcherQPA::processEvents(QEventLoop::ProcessEventsFlags flags)
{
- Q_D(QEventDispatcherLite);
+ Q_D(QEventDispatcherQPA);
int nevents = 0;
// handle gui and posted events
@@ -112,30 +112,30 @@ bool QEventDispatcherLite::processEvents(QEventLoop::ProcessEventsFlags flags)
return (nevents > 0);
}
-bool QEventDispatcherLite::hasPendingEvents()
+bool QEventDispatcherQPA::hasPendingEvents()
{
extern uint qGlobalPostedEventsCount(); // from qapplication.cpp
return qGlobalPostedEventsCount() || QWindowSystemInterfacePrivate::userEventsQueued();;
}
-void QEventDispatcherLite::startingUp()
+void QEventDispatcherQPA::startingUp()
{
}
-void QEventDispatcherLite::closingDown()
+void QEventDispatcherQPA::closingDown()
{
}
-void QEventDispatcherLite::flush()
+void QEventDispatcherQPA::flush()
{
if(qApp)
qApp->sendPostedEvents();
}
-int QEventDispatcherLite::select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
+int QEventDispatcherQPA::select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
timeval *timeout)
{
return QEventDispatcherUNIX::select(nfds, readfds, writefds, exceptfds, timeout);