Feat: Define QT_NO_KEYWORDS, allowing us to use Qt in more places
must use Q_SIGNALS, Q_SLOTS and Q_EMIT in place of signals, slots and emit macros
This commit is contained in:
parent
a31cff0225
commit
d246d9527a
53 changed files with 72 additions and 66 deletions
|
|
@ -144,6 +144,10 @@ endif()
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
|
||||||
|
|
||||||
|
# disables the use of signals,slots and emit
|
||||||
|
# Instead use Q_SIGNAL, Q_SLOT and Q_EMIT
|
||||||
|
# prevents issues when used with glib for libportal
|
||||||
|
add_definitions(-DQT_NO_KEYWORDS)
|
||||||
include(cmake/Libraries.cmake)
|
include(cmake/Libraries.cmake)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ public:
|
||||||
static void save(bool emitSaving = true);
|
static void save(bool emitSaving = true);
|
||||||
static const QStringList validKeys();
|
static const QStringList validKeys();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void settingsChanged(const QString key);
|
void settingsChanged(const QString key);
|
||||||
void serverSettingsChanged();
|
void serverSettingsChanged();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ public:
|
||||||
|
|
||||||
void listen();
|
void listen();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void logLevelChanged(const QString &logLevel);
|
void logLevelChanged(const QString &logLevel);
|
||||||
void elevateModeChanged(bool elevate);
|
void elevateModeChanged(bool elevate);
|
||||||
void commandChanged(const QString &command);
|
void commandChanged(const QString &command);
|
||||||
|
|
@ -38,7 +38,7 @@ private:
|
||||||
void processElevate(QLocalSocket *&clientSocket, const QStringList &messageParts);
|
void processElevate(QLocalSocket *&clientSocket, const QStringList &messageParts);
|
||||||
void processCommand(QLocalSocket *&clientSocket, const QStringList &messageParts);
|
void processCommand(QLocalSocket *&clientSocket, const QStringList &messageParts);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void handleNewConnection();
|
void handleNewConnection();
|
||||||
void handleReadyRead();
|
void handleReadyRead();
|
||||||
void handleDisconnected();
|
void handleDisconnected();
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,10 @@
|
||||||
|
|
||||||
#include "deskflow/unix/AppUtilUnix.h"
|
#include "deskflow/unix/AppUtilUnix.h"
|
||||||
#include "deskflow/ArgsBase.h"
|
#include "deskflow/ArgsBase.h"
|
||||||
#include <filesystem>
|
|
||||||
#include <thread>
|
#include "base/Log.h"
|
||||||
|
#include "base/LogOutputters.h"
|
||||||
|
#include "common/Constants.h"
|
||||||
|
|
||||||
#if WINAPI_XWINDOWS
|
#if WINAPI_XWINDOWS
|
||||||
#include "deskflow/unix/X11LayoutsParser.h"
|
#include "deskflow/unix/X11LayoutsParser.h"
|
||||||
|
|
@ -19,9 +21,9 @@
|
||||||
#else
|
#else
|
||||||
#error Platform not supported.
|
#error Platform not supported.
|
||||||
#endif
|
#endif
|
||||||
#include "base/Log.h"
|
|
||||||
#include "base/LogOutputters.h"
|
#include <filesystem>
|
||||||
#include "common/Constants.h"
|
#include <thread>
|
||||||
|
|
||||||
AppUtilUnix::AppUtilUnix(const IEventQueue *events)
|
AppUtilUnix::AppUtilUnix(const IEventQueue *events)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ public:
|
||||||
return m_IsFinished;
|
return m_IsFinished;
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void isComplete();
|
void isComplete();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void complete(QNetworkReply *reply);
|
void complete(QNetworkReply *reply);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ class FileTail : public QObject
|
||||||
public:
|
public:
|
||||||
FileTail(const QString &filePath, QObject *parent = nullptr);
|
FileTail(const QString &filePath, QObject *parent = nullptr);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void newLine(const QString &line);
|
void newLine(const QString &line);
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void handleFileChanged(const QString &);
|
void handleFileChanged(const QString &);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ public:
|
||||||
void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message);
|
void handleMessage(const QtMsgType type, const QString &fileLine, const QString &message);
|
||||||
void logVerbose(const QString &message) const;
|
void logVerbose(const QString &message) const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void newLine(const QString &line);
|
void newLine(const QString &line);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ public:
|
||||||
|
|
||||||
void hide();
|
void hide();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void shown();
|
void shown();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ public:
|
||||||
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||||
bool isFull() const;
|
bool isFull() const;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void screensChanged();
|
void screensChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ class VersionChecker : public QObject
|
||||||
public:
|
public:
|
||||||
explicit VersionChecker(QObject *parent = nullptr);
|
explicit VersionChecker(QObject *parent = nullptr);
|
||||||
void checkLatest() const;
|
void checkLatest() const;
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void replyFinished(QNetworkReply *reply);
|
void replyFinished(QNetworkReply *reply);
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void updateFound(const QString &version);
|
void updateFound(const QString &version);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public:
|
||||||
m_showMessage = true;
|
m_showMessage = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void messageShowing();
|
void messageShowing();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ class CommandProcess : public QObject
|
||||||
public:
|
public:
|
||||||
CommandProcess(QString cmd, QStringList arguments, QString input = "");
|
CommandProcess(QString cmd, QStringList arguments, QString input = "");
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void finished();
|
void finished();
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
QString run();
|
QString run();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ public:
|
||||||
m_mode = mode;
|
m_mode = mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void starting();
|
void starting();
|
||||||
void error(Error error);
|
void error(Error error);
|
||||||
void logLine(const QString &line);
|
void logLine(const QString &line);
|
||||||
|
|
@ -122,7 +122,7 @@ signals:
|
||||||
void secureSocket(bool enabled);
|
void secureSocket(bool enabled);
|
||||||
void daemonIpcClientConnectionFailed();
|
void daemonIpcClientConnectionFailed();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onProcessFinished(int exitCode, QProcess::ExitStatus);
|
void onProcessFinished(int exitCode, QProcess::ExitStatus);
|
||||||
void onProcessReadyReadStandardOutput();
|
void onProcessReadyReadStandardOutput();
|
||||||
void onProcessReadyReadStandardError();
|
void onProcessReadyReadStandardError();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public:
|
||||||
);
|
);
|
||||||
void handleLogLine(const QString &logLine);
|
void handleLogLine(const QString &logLine);
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void messageShowing();
|
void messageShowing();
|
||||||
void configureClient(const QString &clientName);
|
void configureClient(const QString &clientName);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ public:
|
||||||
ActionDialog(QWidget *parent, const ServerConfig &config, Hotkey &hotkey, Action &action);
|
ActionDialog(QWidget *parent, const ServerConfig &config, Hotkey &hotkey, Action &action);
|
||||||
~ActionDialog() override;
|
~ActionDialog() override;
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ public:
|
||||||
return m_AddResult;
|
return m_AddResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void handleButtonLeft();
|
void handleButtonLeft();
|
||||||
void handleButtonUp();
|
void handleButtonUp();
|
||||||
void handleButtonRight();
|
void handleButtonRight();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public:
|
||||||
);
|
);
|
||||||
~FingerprintDialog() override = default;
|
~FingerprintDialog() override = default;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void requestLocalPrintsDialog();
|
void requestLocalPrintsDialog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public:
|
||||||
return m_Hotkey;
|
return m_Hotkey;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,10 @@ public:
|
||||||
ScreenSettingsDialog(QWidget *parent, Screen *pScreen = nullptr, const ScreenList *pScreens = nullptr);
|
ScreenSettingsDialog(QWidget *parent, Screen *pScreen = nullptr, const ScreenList *pScreens = nullptr);
|
||||||
~ScreenSettingsDialog() override;
|
~ScreenSettingsDialog() override;
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void on_m_pButtonAddAlias_clicked();
|
void on_m_pButtonAddAlias_clicked();
|
||||||
void on_m_pButtonRemoveAlias_clicked();
|
void on_m_pButtonRemoveAlias_clicked();
|
||||||
void on_m_pLineEditAlias_textChanged(const QString &text);
|
void on_m_pLineEditAlias_textChanged(const QString &text);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public:
|
||||||
~ServerConfigDialog() override;
|
~ServerConfigDialog() override;
|
||||||
bool addClient(const QString &clientName);
|
bool addClient(const QString &clientName);
|
||||||
|
|
||||||
public slots:
|
public Q_SLOTS:
|
||||||
void accept() override;
|
void accept() override;
|
||||||
void reject() override;
|
void reject() override;
|
||||||
void message(const QString &message)
|
void message(const QString &message)
|
||||||
|
|
@ -36,7 +36,7 @@ public slots:
|
||||||
m_Message = message;
|
m_Message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected slots:
|
protected Q_SLOTS:
|
||||||
void onScreenRemoved();
|
void onScreenRemoved();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
@ -102,6 +102,6 @@ private:
|
||||||
ScreenSetupModel m_ScreenSetupModel;
|
ScreenSetupModel m_ScreenSetupModel;
|
||||||
QString m_Message = "";
|
QString m_Message = "";
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void onChange();
|
void onChange();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ public:
|
||||||
SettingsDialog(QWidget *parent, const IServerConfig &serverConfig, const CoreProcess &coreProcess);
|
SettingsDialog(QWidget *parent, const IServerConfig &serverConfig, const CoreProcess &coreProcess);
|
||||||
~SettingsDialog() override;
|
~SettingsDialog() override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void shown();
|
void shown();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,11 @@ public:
|
||||||
return m_state == State::Connected;
|
return m_state == State::Connected;
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void connected();
|
void connected();
|
||||||
void connectionFailed();
|
void connectionFailed();
|
||||||
|
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void handleDisconnected();
|
void handleDisconnected();
|
||||||
void handleErrorOccurred();
|
void handleErrorOccurred();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ public:
|
||||||
virtual QString readAllStandardOutput();
|
virtual QString readAllStandardOutput();
|
||||||
virtual QString readAllStandardError();
|
virtual QString readAllStandardError();
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void finished(int exitCode, QProcess::ExitStatus exitStatus);
|
void finished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||||
void readyReadStandardOutput();
|
void readyReadStandardOutput();
|
||||||
void readyReadStandardError();
|
void readyReadStandardError();
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class KeySequenceWidget : public QPushButton
|
||||||
public:
|
public:
|
||||||
KeySequenceWidget(QWidget *parent, const KeySequence &seq = KeySequence());
|
KeySequenceWidget(QWidget *parent, const KeySequence &seq = KeySequence());
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void keySequenceChanged();
|
void keySequenceChanged();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ public:
|
||||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event) override;
|
void dropEvent(QDropEvent *event) override;
|
||||||
|
|
||||||
signals:
|
Q_SIGNALS:
|
||||||
void screenRemoved();
|
void screenRemoved();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class ArchStringTests : public QObject
|
class ArchStringTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void convertStringWCToMB_buffer();
|
void convertStringWCToMB_buffer();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class PathTests : public QObject
|
class PathTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void testOpen();
|
void testOpen();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class StringTests : public QObject
|
class StringTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void formatWithArgs();
|
void formatWithArgs();
|
||||||
void formatedString();
|
void formatedString();
|
||||||
void intToString();
|
void intToString();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class UnicodeTests : public QObject
|
class UnicodeTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void UTF32ToUTF8();
|
void UTF32ToUTF8();
|
||||||
void UTF16ToUTF8();
|
void UTF16ToUTF8();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class XBaseTests : public QObject
|
class XBaseTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void empty();
|
void empty();
|
||||||
void nonEmpty();
|
void nonEmpty();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class SettingsTests : public QObject
|
class SettingsTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void setSettingsFile();
|
void setSettingsFile();
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
class ArgParserTests : public QObject
|
class ArgParserTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void isArg();
|
void isArg();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class ClipboardChunksTests : public QObject
|
class ClipboardChunksTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void startFormatData();
|
void startFormatData();
|
||||||
void formatDataChunk();
|
void formatDataChunk();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class ClipboardTests : public QObject
|
class ClipboardTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void basicFunction();
|
void basicFunction();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class ConfigTests : public QObject
|
class ConfigTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void loadFile();
|
void loadFile();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class IKeyStateTests : public QObject
|
class IKeyStateTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void allocDestination();
|
void allocDestination();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace deskflow {
|
||||||
class KeyMapTests : public QObject
|
class KeyMapTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void findBestKey_requiredDown_matchExactFirstItem();
|
void findBestKey_requiredDown_matchExactFirstItem();
|
||||||
void findBestKey_requiredAndExtraSensitiveDown_matchExactFirstItem();
|
void findBestKey_requiredAndExtraSensitiveDown_matchExactFirstItem();
|
||||||
void findBestKey_requiredAndExtraSensitiveDown_matchExactSecondItem();
|
void findBestKey_requiredAndExtraSensitiveDown_matchExactSecondItem();
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class LanguageManagerTests : public QObject
|
class LanguageManagerTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void remoteLanguages();
|
void remoteLanguages();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class ServerAppTests : public QObject
|
class ServerAppTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void version();
|
void version();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class X11LayoutParserTests : public QObject
|
class X11LayoutParserTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void xmlParse();
|
void xmlParse();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class DotEnvTests : public QObject
|
class DotEnvTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void invalidFile();
|
void invalidFile();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class LoggerTests : public QObject
|
class LoggerTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void newLine();
|
void newLine();
|
||||||
void noNewLine();
|
void noNewLine();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class ScreenTests : public QObject
|
class ScreenTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void basicFunctionality();
|
void basicFunctionality();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class CommandProcessTests : public QObject
|
class CommandProcessTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
// void initTestCase();
|
// void initTestCase();
|
||||||
void runCommand();
|
void runCommand();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class FingerprintDatabaseTests : public QObject
|
class FingerprintDatabaseTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void readFile();
|
void readFile();
|
||||||
void writeFile();
|
void writeFile();
|
||||||
void clear();
|
void clear();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class FingerprintTests : public QObject
|
class FingerprintTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void test_isValid();
|
void test_isValid();
|
||||||
void test_toDbLine();
|
void test_toDbLine();
|
||||||
void test_fromDbLine();
|
void test_fromDbLine();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class SecureUtilsTests : public QObject
|
class SecureUtilsTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void checkHex();
|
void checkHex();
|
||||||
void checkArt();
|
void checkArt();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class MSWindowsClipboardTests : public QObject
|
class MSWindowsClipboardTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void cleanupTestCase();
|
void cleanupTestCase();
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
class OSXClipboardTests : public QObject
|
class OSXClipboardTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void open();
|
void open();
|
||||||
void singleFormat();
|
void singleFormat();
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
class OSXKeyStateTests : public QObject
|
class OSXKeyStateTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void mapModifiersFromOSX_OSXMask();
|
void mapModifiersFromOSX_OSXMask();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
class XWindowsClipboardTests : public QObject
|
class XWindowsClipboardTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
// Test are run in order top to bottom
|
// Test are run in order top to bottom
|
||||||
void defaultCtor();
|
void defaultCtor();
|
||||||
// Tests only work on X Windows
|
// Tests only work on X Windows
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class ServerConfigTests : public QObject
|
class ServerConfigTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void equalityCheck();
|
void equalityCheck();
|
||||||
void equalityCheck_diff_options();
|
void equalityCheck_diff_options();
|
||||||
void equalityCheck_diff_alias();
|
void equalityCheck_diff_alias();
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
class ServerTests : public QObject
|
class ServerTests : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private Q_SLOTS:
|
||||||
void SwitchToScreenInfo_alloc_screen();
|
void SwitchToScreenInfo_alloc_screen();
|
||||||
void KeyboardBroadcastInfo_alloc_stateAndSceens();
|
void KeyboardBroadcastInfo_alloc_stateAndSceens();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue