*
* \author John Levon
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#include "commandtags.h"
-#include "LString.h"
+#include "debug.h"
#include "frontends/FileDialog.h"
#include "FileDialog_private.h"
-#include "debug.h"
#include "qt_helpers.h"
#include "gettext.h"
-#include <qapplication.h>
-
-#include <utility>
-
-using std::make_pair;
-using std::pair;
using std::endl;
};
-FileDialog::FileDialog(LyXView * lv, string const & t,
+FileDialog::FileDialog(string const & t,
kb_action s, Button b1, Button b2)
- : private_(new FileDialog::Private), lv_(lv), title_(t), success_(s)
+ : private_(new FileDialog::Private), title_(t), success_(s)
{
private_->b1 = b1;
private_->b2 = b2;
int res = dlg.exec();
lyxerr[Debug::GUI] << "result " << res << endl;
if (res == QDialog::Accepted)
- result.second = string(dlg.selectedFile().data());
+ result.second = fromqstr(dlg.selectedFile());
dlg.hide();
return result;
}
int res = dlg.exec();
lyxerr[Debug::GUI] << "result " << res << endl;
if (res == QDialog::Accepted)
- result.second = string(dlg.selectedFile().data());
+ result.second = fromqstr(dlg.selectedFile());
dlg.hide();
return result;
}
int res = dlg.exec();
lyxerr[Debug::GUI] << "result " << res << endl;
if (res == QDialog::Accepted)
- result.second = string(dlg.selectedFile().data());
+ result.second = fromqstr(dlg.selectedFile());
dlg.hide();
return result;
-}
\ No newline at end of file
+}