Commit 231d7ec8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to define dialog title

parent e5fc3423
Pipeline #20797 passed with stage
in 10 minutes and 7 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.14.42")
set(PIM_VERSION "5.14.43")
project(mailcommon VERSION ${PIM_VERSION})
......
......@@ -53,6 +53,7 @@ public:
Akonadi::Collection mCollection;
QLineEdit *mEdit = nullptr;
QString mSelectFolderTitleDialog;
bool mMustBeReadWrite = false;
bool mShowOutbox = false;
bool mNotCreateNewFolder = false;
......@@ -95,7 +96,7 @@ void FolderRequester::slotOpenDialog()
}
QPointer<FolderSelectionDialog> dlg(new FolderSelectionDialog(this, options));
dlg->setWindowTitle(i18nc("@title:window", "Select Folder"));
dlg->setWindowTitle(d->mSelectFolderTitleDialog.isEmpty() ? i18nc("@title:window", "Select Folder") : d->mSelectFolderTitleDialog);
dlg->setModal(false);
dlg->setSelectedCollection(d->mCollection);
......@@ -201,4 +202,9 @@ void FolderRequester::setNotAllowToCreateNewFolder(bool notCreateNewFolder)
{
d->mNotCreateNewFolder = notCreateNewFolder;
}
void FolderRequester::setSelectFolderTitleDialog(const QString &title)
{
d->mSelectFolderTitleDialog = title;
}
} // namespace MailCommon
......@@ -93,6 +93,8 @@ public:
void setNotAllowToCreateNewFolder(bool notCreateNewFolder);
void setSelectFolderTitleDialog(const QString &title);
protected Q_SLOTS:
/**
* Opens the folder dialog.
......
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