]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMathMatrix.cpp
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiMathMatrix.cpp
index 3b0ace1428725fd21e539689568f060d7445581a..24722b00e835bfb21a62391083e015e6fa027478 100644 (file)
@@ -15,6 +15,8 @@
 #include "EmptyTable.h"
 #include "qt_helpers.h"
 
+#include "FuncRequest.h"
+
 #include <QLineEdit>
 #include <QPushButton>
 #include <QSpinBox>
@@ -25,7 +27,7 @@ namespace lyx {
 namespace frontend {
 
 GuiMathMatrix::GuiMathMatrix(GuiView & lv)
-       : GuiMath(lv, "mathmatrix", qt_("Math Matrix"))
+       : GuiDialog(lv, "mathmatrix", qt_("Math Matrix"))
 {
        setupUi(this);
 
@@ -88,8 +90,9 @@ void GuiMathMatrix::slotOK()
        QString const sh = halignED->text();
        int const nx = columnsSB->value();
        int const ny = rowsSB->value();
-       dispatchMatrix(fromqstr(
-               QString("%1 %2 %3 %4").arg(nx).arg(ny).arg(c).arg(sh)));
+       string const str = fromqstr(
+               QString("%1 %2 %3 %4").arg(nx).arg(ny).arg(c).arg(sh));
+       dispatch(FuncRequest(LFUN_MATH_MATRIX, str));
        close();
 }