X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FInsertTableWidget.cpp;h=813ccdb17a62be445930f970fc69e99c8d987fc5;hb=c0a1893008bd13650d470afff16f56720b65c87c;hp=5b62b0266dd4bb1addf95a3cbabd08f381349eca;hpb=00e305c9d9bd8b0ff54b6c58adb6192d5934ed60;p=lyx.git diff --git a/src/frontends/qt4/InsertTableWidget.cpp b/src/frontends/qt4/InsertTableWidget.cpp index 5b62b0266d..813ccdb17a 100644 --- a/src/frontends/qt4/InsertTableWidget.cpp +++ b/src/frontends/qt4/InsertTableWidget.cpp @@ -11,25 +11,29 @@ #include -#include "LyXFunc.h" -#include "FuncStatus.h" -#include "FuncRequest.h" -#include "LyXView.h" +#include "InsertTableWidget.h" +#include "GuiView.h" #include "qt_helpers.h" -#include "InsertTableWidget.h" +// DispatchResult.h is needed by the windows compiler because lyx::dispatch +// returns a DispatchResult const reference. Gcc does not complain. Weird... +#include "DispatchResult.h" +#include "FuncStatus.h" +#include "FuncRequest.h" +#include "LyX.h" + #include +#include #include #include -#include namespace lyx { namespace frontend { -InsertTableWidget::InsertTableWidget(LyXView & lyxView, QWidget * parent) - : QWidget(parent, Qt::Popup), colwidth_(20), rowheight_(12), lyxView_(lyxView) +InsertTableWidget::InsertTableWidget(QWidget * parent) + : QWidget(parent, Qt::Popup), colwidth_(20), rowheight_(12) { init(); setMouseTracking(true); @@ -107,7 +111,7 @@ void InsertTableWidget::mouseReleaseEvent(QMouseEvent * /*event*/) { if (underMouse_) { QString const data = QString("%1 %2").arg(bottom_).arg(right_); - lyxView_.dispatch(FuncRequest(LFUN_TABULAR_INSERT, fromqstr(data))); + lyx::dispatch(FuncRequest(LFUN_TABULAR_INSERT, fromqstr(data))); } // emit signal visible(false); @@ -154,4 +158,4 @@ void InsertTableWidget::updateParent() } // namespace frontend } // namespace lyx -#include "InsertTableWidget_moc.cpp" +#include "moc_InsertTableWidget.cpp"