NewFileDialog::NewFileDialog(const QString &title,
const QString &name, const QString &defaultDir, QWidget *parent) :
QDialog(parent), m_ui(new Ui::NewFileDialog)
{
    m_ui->setupUi(this); setWindowTitle(title); setObjectName(title);

    setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint |
    Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint | Qt::Dialog);

    m_ui->button->setIcon(QFileIconProvider().icon(QFileIconProvider::Folder));

    connect(m_ui->button, SIGNAL(clicked()),
            this, SLOT(pick()));

    connect(m_ui->nameEdit, SIGNAL(textChanged(QString)),
            this, SLOT(textChanged(QString)));

    connect(m_ui->nameEdit, SIGNAL(textChanged(QString)),
            this, SLOT(userInterfaceChanged()));

    connect(m_ui->edit, SIGNAL(textChanged(QString)),
            this, SLOT(textChanged(QString)));

    connect(m_ui->edit, SIGNAL(textChanged(QString)),
            this, SLOT(userInterfaceChanged()));

    setName(name);
    setDefaultDir(defaultDir);
}
QBittorrentPasskeyChanger::QBittorrentPasskeyChanger (QObject *parent)
	: TorrentDirPasskeyChanger (parent)
{
	QStringList fileMask;
	fileMask << "*.torrent" << "*.fastresume";
	setFileMask (fileMask);

	setDefaultDir (defaultPath);
	pathEdit_->setText (defaultPath);

	disableTrackerExchangeOption ();
}