committed by
Kacper Donat
parent
66aaf6a2ee
commit
6692dacc0a
@@ -212,7 +212,7 @@ QString FileDialog::getSaveFileName (QWidget * parent, const QString & caption,
|
||||
|
||||
QString windowTitle = caption;
|
||||
if (windowTitle.isEmpty())
|
||||
windowTitle = FileDialog::tr("Save as");
|
||||
windowTitle = FileDialog::tr("Save As");
|
||||
|
||||
// NOTE: We must not change the specified file name afterwards as we may return the name of an already
|
||||
// existing file. Hence we must extract the first matching suffix from the filter list and append it
|
||||
@@ -672,7 +672,7 @@ FileChooser::FileChooser ( QWidget * parent )
|
||||
connect(lineEdit, &QLineEdit::textChanged, this, &FileChooser::fileNameChanged);
|
||||
connect(lineEdit, &QLineEdit::editingFinished, this, &FileChooser::editingFinished);
|
||||
|
||||
button = new QPushButton(QLatin1String("..."), this);
|
||||
button = new QPushButton(QLatin1String("…"), this);
|
||||
|
||||
#if defined (Q_OS_MACOS)
|
||||
button->setAttribute(Qt::WA_LayoutUsesWidgetRect); // layout size from QMacStyle was not correct
|
||||
@@ -818,7 +818,7 @@ void FileChooser::setButtonText(const QString& txt)
|
||||
{
|
||||
button->setText(txt);
|
||||
int w1 = 2 * QtTools::horizontalAdvance(button->fontMetrics(), txt);
|
||||
int w2 = 2 * QtTools::horizontalAdvance(button->fontMetrics(), QLatin1String(" ... "));
|
||||
int w2 = 2 * QtTools::horizontalAdvance(button->fontMetrics(), QLatin1String(" … "));
|
||||
button->setMinimumWidth(std::max(w1, w2));
|
||||
Q_EMIT buttonTextChanged(txt);
|
||||
}
|
||||
@@ -839,7 +839,7 @@ QString FileChooser::buttonText() const
|
||||
SelectModule::SelectModule (const QString& type, const SelectModule::Dict& types, QWidget * parent)
|
||||
: QDialog(parent, Qt::WindowTitleHint)
|
||||
{
|
||||
setWindowTitle(tr("Select module"));
|
||||
setWindowTitle(tr("Select Module"));
|
||||
groupBox = new QGroupBox(this);
|
||||
groupBox->setTitle(tr("Open %1 as").arg(type));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user