forked from qt-creator/qt-creator
CorePlugin: Use FilePath istead of QString
Task-number: QTCREATORBUG-2616 Change-Id: Iaa5bc7946a7bddfd8adffe51906d90b2e76f5837 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
using namespace Core;
|
||||
using namespace Core::Internal;
|
||||
|
||||
OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
|
||||
OpenWithDialog::OpenWithDialog(const Utils::FilePath &filePath, QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
label->setText(tr("Open file \"%1\" with:").arg(Utils::FilePath::fromString(fileName).fileName()));
|
||||
label->setText(tr("Open file \"%1\" with:").arg(filePath.fileName()));
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
||||
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked,
|
||||
|
||||
Reference in New Issue
Block a user