forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -30,8 +30,9 @@
|
||||
|
||||
#include "openwithdialog.h"
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QFileInfo>
|
||||
|
||||
using namespace Core;
|
||||
using namespace Core::Internal;
|
||||
@@ -41,7 +42,7 @@ OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
|
||||
{
|
||||
setupUi(this);
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
label->setText(tr("Open file \"%1\" with:").arg(QFileInfo(fileName).fileName()));
|
||||
label->setText(tr("Open file \"%1\" with:").arg(Utils::FileName::fromString(fileName).fileName()));
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
||||
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
|
||||
|
||||
Reference in New Issue
Block a user