Cleaned up the Request class a bit.
This commit is contained in:
parent
fa702fbe15
commit
1374064c0b
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
#include <QVariantList>
|
||||
|
||||
#include <qredis/reply.h>
|
||||
#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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue