Use pattern file name in mask.
--HG-- branch : develop
This commit is contained in:
parent
bc2df2b1b3
commit
878cc2d573
|
@ -35,7 +35,8 @@
|
|||
#include <QMessageBox>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogSaveLayout::DialogSaveLayout(const QMap<QString, QString> &formates, int count, QWidget *parent)
|
||||
DialogSaveLayout::DialogSaveLayout(const QMap<QString, QString> &formates, int count, const QString &mask,
|
||||
QWidget *parent)
|
||||
:QDialog(parent), ui(new Ui::DialogSaveLAyout), count(count)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -46,6 +47,7 @@ DialogSaveLayout::DialogSaveLayout(const QMap<QString, QString> &formates, int c
|
|||
|
||||
QRegExpValidator *validator = new QRegExpValidator(QRegExp("^[\\w\\-. ]+$"), this);
|
||||
ui->lineEditMask->setValidator(validator);
|
||||
ui->lineEditMask->setText(mask);
|
||||
|
||||
QMap<QString, QString>::const_iterator i = formates.constBegin();
|
||||
while (i != formates.constEnd())
|
||||
|
|
|
@ -41,7 +41,8 @@ class DialogSaveLayout : public QDialog
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DialogSaveLayout(const QMap<QString, QString> &formates, int count, QWidget *parent = 0);
|
||||
DialogSaveLayout(const QMap<QString, QString> &formates, int count, const QString &mask = QString(),
|
||||
QWidget *parent = 0);
|
||||
~DialogSaveLayout();
|
||||
|
||||
QString Path() const;
|
||||
|
|
|
@ -164,7 +164,7 @@ void TableWindow::StopTable()
|
|||
void TableWindow::saveScene()
|
||||
{
|
||||
QMap<QString, QString> extByMessage = InitFormates();
|
||||
DialogSaveLayout dialog(extByMessage, scenes.size(), this);
|
||||
DialogSaveLayout dialog(extByMessage, scenes.size(), fileName, this);
|
||||
|
||||
if (dialog.exec() == QDialog::Rejected)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user