Commit e7d2c4dd authored by hjk's avatar hjk
Browse files

fakevim: make standalone version compile after the settings changes

parent 11b4b53b
FAKEVIMHOME = ../../../src/plugins/fakevim
UTILSDIR = ../../../src/libs
SOURCES += \
main.cpp \
$$FAKEVIMHOME/fakevimhandler.cpp
$$FAKEVIMHOME/fakevimhandler.cpp \
$$FAKEVIMHOME/fakevimactions.cpp \
$$UTILSDIR/utils/savedaction.cpp \
$$UTILSDIR/utils/pathchooser.cpp \
$$UTILSDIR/utils/basevalidatinglineedit.cpp \
HEADERS += \
$$FAKEVIMHOME/fakevimhandler.h
$$FAKEVIMHOME/fakevimhandler.h \
$$FAKEVIMHOME/fakevimactions.h \
$$UTILSDIR/utils/savedaction.h \
$$UTILSDIR/utils/pathchooser.h \
$$UTILSDIR/utils/basevalidatinglineedit.h \
INCLUDEPATH += $$FAKEVIMHOME $$UTILSDIR
INCLUDEPATH += $$FAKEVIMHOME
......@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
QObject::connect(&handler, SIGNAL(commandBufferChanged(QString)),
&proxy, SLOT(changeStatusMessage(QString)));
QObject::connect(&handler, SIGNAL(quitRequested()),
QObject::connect(&handler, SIGNAL(quitRequested(bool)),
&app, SLOT(quit()));
QObject::connect(&handler,
SIGNAL(selectionChanged(QList<QTextEdit::ExtraSelection>)),
......@@ -118,6 +118,8 @@ int main(int argc, char *argv[])
QObject::connect(&handler, SIGNAL(statusDataChanged(QString)),
&proxy, SLOT(changeStatusData(QString)));
theFakeVimSetting(ConfigUseFakeVim)->setValue(true);
handler.installEventFilter();
handler.setupWidget();
if (args.size() >= 1)
handler.handleCommand("r " + args.at(0));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment