From 1374064c0b5f439f0eb9ce98dbadd09e4ecb48cd Mon Sep 17 00:00:00 2001 From: Nathan Osman Date: Thu, 1 Aug 2013 17:12:37 -0700 Subject: [PATCH] Cleaned up the Request class a bit. --- include/qredis/request.h | 7 +++---- src/request.cpp | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/qredis/request.h b/include/qredis/request.h index e2577ef..5af64e1 100644 --- a/include/qredis/request.h +++ b/include/qredis/request.h @@ -3,7 +3,6 @@ #include #include -#include #include #include "qredis_export.h" @@ -13,7 +12,7 @@ namespace QRedis class QREDIS_EXPORT RequestPrivate; /** - * @brief Represents a request and its reply + * @brief Represents a Redis command and its response */ class QREDIS_EXPORT Request : public QObject { @@ -22,8 +21,8 @@ namespace QRedis public: /** - * @brief Creates a request - * @param parent + * @brief Initializes the request + * @param parent the parent QObject */ explicit Request(QObject * parent = 0); diff --git a/src/request.cpp b/src/request.cpp index f5aeff8..c89530b 100644 --- a/src/request.cpp +++ b/src/request.cpp @@ -33,5 +33,5 @@ bool Request::waitForReply(int msecs) * If the timer fires, the return value will be 0. * Otherwise, quitEventLoop() will terminate the loop with 1. */ - return d->loop.exec(); + return d->loop.exec(QEventLoop::ExcludeUserInputEvents); }