Commit afd30017 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename method

parent f9feea70
......@@ -165,7 +165,7 @@ bool FilterInfo::removeDupMessage() const
return d->m_removeDupMsg;
}
QWidget *FilterInfo::parent() const
QWidget *FilterInfo::parentWidget() const
{
if (d->m_filterInfoGui) {
return d->m_filterInfoGui->parent();
......
......@@ -53,7 +53,7 @@ public:
Akonadi::Collection rootCollection() const;
void setRootCollection(const Akonadi::Collection &collection);
QWidget *parent() const;
QWidget *parentWidget() const;
void setRemoveDupMessage(bool removeDupMessage);
bool removeDupMessage() const;
......
......@@ -55,7 +55,7 @@ void FilterEvolution::import()
if (!d.exists()) {
evolDir = QDir::homePath();
}
importMails(QFileDialog::getExistingDirectory(filterInfo()->parent(), QString(), evolDir));
importMails(QFileDialog::getExistingDirectory(filterInfo()->parentWidget(), QString(), evolDir));
}
void FilterEvolution::importMails(const QString &maildir)
......
......@@ -204,7 +204,7 @@ int FilterKMailArchive::countFiles(const KArchiveDirectory *directory) const
void FilterKMailArchive::import()
{
const QString archiveFile = QFileDialog::getOpenFileName(filterInfo()->parent(), i18n("Select KMail Archive File to Import"), QString(), i18n("KMail Archive Files (*.tar *.tar.gz *.tar.bz2 *.zip)"));
const QString archiveFile = QFileDialog::getOpenFileName(filterInfo()->parentWidget(), i18n("Select KMail Archive File to Import"), QString(), i18n("KMail Archive Files (*.tar *.tar.gz *.tar.bz2 *.zip)"));
if (archiveFile.isEmpty()) {
filterInfo()->alert(i18n("Please select an archive file that should be imported."));
return;
......
......@@ -69,7 +69,7 @@ FilterLNotes::~FilterLNotes()
void FilterLNotes::import()
{
const QStringList filenames = QFileDialog::getOpenFileNames(filterInfo()->parent(), QString(), QDir::homePath(), i18n("All Files (*)"));
const QStringList filenames = QFileDialog::getOpenFileNames(filterInfo()->parentWidget(), QString(), QDir::homePath(), i18n("All Files (*)"));
if (filenames.isEmpty()) {
filterInfo()->alert(i18n("No files selected."));
return;
......
......@@ -55,7 +55,7 @@ FilterMailApp::~FilterMailApp()
void FilterMailApp::import()
{
const QString directory = QFileDialog::getExistingDirectory(filterInfo()->parent(), QString(), QDir::homePath());
const QString directory = QFileDialog::getExistingDirectory(filterInfo()->parentWidget(), QString(), QDir::homePath());
importMails(directory);
}
......
......@@ -41,7 +41,7 @@ FilterMailmanGzip::~FilterMailmanGzip()
void FilterMailmanGzip::import()
{
const QStringList filenames = QFileDialog::getOpenFileNames(filterInfo()->parent(), QString(), QDir::homePath(), i18n("gzip Files (*.txt.gz)"));
const QStringList filenames = QFileDialog::getOpenFileNames(filterInfo()->parentWidget(), QString(), QDir::homePath(), i18n("gzip Files (*.txt.gz)"));
if (filenames.isEmpty()) {
filterInfo()->alert(i18n("No files selected."));
return;
......
......@@ -42,7 +42,7 @@ FilterMBox::~FilterMBox()
void FilterMBox::import()
{
const QStringList filenames = QFileDialog::getOpenFileNames(filterInfo()->parent(), QString(), QDir::homePath(), i18n("mbox Files (*.mbox)"));
const QStringList filenames = QFileDialog::getOpenFileNames(filterInfo()->parentWidget(), QString(), QDir::homePath(), i18n("mbox Files (*.mbox)"));
if (filenames.isEmpty()) {
filterInfo()->alert(i18n("No files selected."));
return;
......
......@@ -55,7 +55,7 @@ FilterOE::~FilterOE()
void FilterOE::import()
{
// Select directory containing plain text emails
const QString maildir = QFileDialog::getExistingDirectory(filterInfo()->parent(), QString(), QDir::homePath());
const QString maildir = QFileDialog::getExistingDirectory(filterInfo()->parentWidget(), QString(), QDir::homePath());
importMails(maildir);
}
......
......@@ -39,7 +39,7 @@ FilterPlain::~FilterPlain()
void FilterPlain::import()
{
// Select directory containing plain text emails
const QString mailDir = QFileDialog::getExistingDirectory(filterInfo()->parent(), QString(), QDir::homePath());
const QString mailDir = QFileDialog::getExistingDirectory(filterInfo()->parentWidget(), QString(), QDir::homePath());
if (mailDir.isEmpty()) { // No directory selected
filterInfo()->alert(i18n("No directory selected."));
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment