It's also not needed, we can access the ActionCollection through GraphicalUi.
qt4_wrap_cpp(MOC ${MOC_HDRS})
include_directories(${CMAKE_SOURCE_DIR}/src/common
qt4_wrap_cpp(MOC ${MOC_HDRS})
include_directories(${CMAKE_SOURCE_DIR}/src/common
- ${CMAKE_SOURCE_DIR}/src/client
- ${CMAKE_SOURCE_DIR}/src/qtui
- ${CMAKE_SOURCE_DIR}/src/uisupport)
+ ${CMAKE_SOURCE_DIR}/src/client)
add_library(mod_uisupport STATIC ${SOURCES} ${MOC} ${HEADERS})
add_dependencies(mod_uisupport mod_common mod_client)
add_library(mod_uisupport STATIC ${SOURCES} ${MOC} ${HEADERS})
add_dependencies(mod_uisupport mod_common mod_client)
#include "uisettings.h"
#include "action.h"
#include "actioncollection.h"
#include "uisettings.h"
#include "action.h"
#include "actioncollection.h"
+#include "graphicalui.h"
// use both an Action and generic eventFilter, to make the shortcut configurable
// yet still be able to reset() when required
_lineEdit->installEventFilter(this);
// use both an Action and generic eventFilter, to make the shortcut configurable
// yet still be able to reset() when required
_lineEdit->installEventFilter(this);
- ActionCollection *coll = QtUi::actionCollection("General");
+ ActionCollection *coll = GraphicalUi::actionCollection("General");
coll->addAction("TabCompletionKey", new Action(tr("Tab completion"), coll,
this, SLOT(onTabCompletionKey()), QKeySequence(Qt::Key_Tab)));
}
coll->addAction("TabCompletionKey", new Action(tr("Tab completion"), coll,
this, SLOT(onTabCompletionKey()), QKeySequence(Qt::Key_Tab)));
}
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
- if(keyEvent->key() != QtUi::actionCollection("General")->action("TabCompletionKey")->shortcut()) {
+ if(keyEvent->key() != GraphicalUi::actionCollection("General")->action("TabCompletionKey")->shortcut()) {