mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-01 11:06:17 -04:00
Add autotype library linking
Added Autotype switch + updated Travis to always test all extension
This commit is contained in:
parent
fa891edb7c
commit
07a41f58d7
6 changed files with 28 additions and 15 deletions
|
@ -20,6 +20,8 @@
|
|||
#include <QApplication>
|
||||
#include <QPluginLoader>
|
||||
|
||||
#include "config-keepassx.h"
|
||||
|
||||
#include "autotype/AutoTypePlatformPlugin.h"
|
||||
#include "autotype/AutoTypeSelectDialog.h"
|
||||
#include "autotype/WildcardMatcher.h"
|
||||
|
@ -59,7 +61,9 @@ AutoType::AutoType(QObject* parent, bool test)
|
|||
QString pluginPath = filePath()->pluginPath(pluginName);
|
||||
|
||||
if (!pluginPath.isEmpty()) {
|
||||
#ifdef WITH_XC_AUTOTYPE
|
||||
loadPlugin(pluginPath);
|
||||
#endif
|
||||
}
|
||||
|
||||
connect(qApp, SIGNAL(aboutToQuit()), SLOT(unloadPlugin()));
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
add_feature_info(Autotype WITH_XC_AUTOTYPE "Auto-type passwords in Input fields")
|
||||
|
||||
if(WITH_XC_AUTOTYPE)
|
||||
if(UNIX AND NOT APPLE)
|
||||
find_package(X11)
|
||||
|
|
|
@ -3,4 +3,4 @@ set(autotype_test_SOURCES
|
|||
)
|
||||
|
||||
add_library(keepassx-autotype-test MODULE ${autotype_test_SOURCES})
|
||||
target_link_libraries(keepassx-autotype-test testautotype Qt5::Core Qt5::Widgets)
|
||||
target_link_libraries(keepassx-autotype-test testautotype keepassx_core ${autotype_LIB} Qt5::Core Qt5::Widgets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue