]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrint.cpp
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiPrint.cpp
index 20003e48ac5376f816bc34fc716369cd5d16c9fb..14339be16bce656c6155a04d6af06c649084760d 100644 (file)
@@ -23,9 +23,7 @@
 #include "LyXRC.h"
 
 #include "support/convert.h"
-#include "support/FileFilterList.h"
 #include "support/filetools.h"
-#include "support/gettext.h"
 #include "support/os.h"
 
 #include <QLineEdit>
@@ -58,13 +56,13 @@ GuiPrint::GuiPrint(GuiView & lv)
        connect(allRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
        connect(reverseCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
        connect(collateCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(fromED, SIGNAL(textChanged(const QString&)),
+       connect(fromED, SIGNAL(textChanged(QString)),
                this, SLOT(pagerangeChanged()));
-       connect(fromED, SIGNAL(textChanged(const QString&)),
+       connect(fromED, SIGNAL(textChanged(QString)),
                this, SLOT(change_adaptor()));
-       connect(toED, SIGNAL(textChanged(const QString&)),
+       connect(toED, SIGNAL(textChanged(QString)),
                this, SLOT(pagerangeChanged()));
-       connect(toED, SIGNAL(textChanged(const QString&)),
+       connect(toED, SIGNAL(textChanged(QString)),
                this, SLOT(change_adaptor()));
        connect(fileRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
        connect(printerRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
@@ -87,7 +85,7 @@ void GuiPrint::browseClicked()
 {
        QString file =
                browseRelFile(QString(), bufferFilepath(), qt_("Print to file"),
-                            FileFilterList(_("PostScript files (*.ps)")), true);
+                            QStringList(qt_("PostScript files (*.ps)")), true);
        if (!file.isEmpty()) {
                fileED->setText(file);
                changed();
@@ -176,10 +174,9 @@ void GuiPrint::applyView()
 bool GuiPrint::initialiseParams(string const &)
 {
        /// get global printer parameters
-       string const name = support::changeExtension(buffer().absFileName(),
-                                       lyxrc.print_file_extension);
        params_ = PrinterParams();
-       params_.file_name = name;
+       params_.file_name = support::changeExtension(buffer().absFileName(),
+                                       lyxrc.print_file_extension);
 
        setButtonsValid(true); // so that the user can press Ok
        return true;