Copy from other swift versions minor UI adjustments

This commit is contained in:
Klaus Basan
2019-01-19 11:25:53 +01:00
committed by Mat Sutcliffe
parent f3dd2425ee
commit 5d46017af2
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ namespace BlackGui
const QSet<CSimulatorInfo> simulators = selectedSimulators.asSingleSimulatorSet(); const QSet<CSimulatorInfo> simulators = selectedSimulators.asSingleSimulatorSet();
if (simulators.isEmpty()) if (simulators.isEmpty())
{ {
static const CStatusMessage m = CStatusMessage(this).validationError(u"No simulators selected"); static const CStatusMessage m = CStatusMessage(this).validationError(u"No simulator(s) selected");
this->showOverlayMessage(m); this->showOverlayMessage(m);
return; return;
} }
@@ -59,7 +59,7 @@ namespace BlackGui
const bool cache = ui->cb_ModelCache->isChecked(); const bool cache = ui->cb_ModelCache->isChecked();
if (!cache && !set) if (!cache && !set)
{ {
static const CStatusMessage m = CStatusMessage(this).validationError(u"No simulators selected"); static const CStatusMessage m = CStatusMessage(this).validationError(u"No models selected (cache? model set?)");
this->showOverlayMessage(m); this->showOverlayMessage(m);
return; return;
} }

View File

@@ -33,7 +33,7 @@ namespace BlackGui
m_columns.addColumn(CColumn::standardString("exe.path", CApplicationInfo::IndexExecutablePath)); m_columns.addColumn(CColumn::standardString("exe.path", CApplicationInfo::IndexExecutablePath));
m_columns.addColumn(CColumn("e.?", "existing?", CApplicationInfo::IndexExecutablePathExisting, new CBoolIconFormatter("directory existing", "directory not existing"))); m_columns.addColumn(CColumn("e.?", "existing?", CApplicationInfo::IndexExecutablePathExisting, new CBoolIconFormatter("directory existing", "directory not existing")));
m_columns.addColumn(CColumn::standardString("data.path", CApplicationInfo::IndexApplicationDataPath)); m_columns.addColumn(CColumn::standardString("data.path", CApplicationInfo::IndexApplicationDataPath));
m_columns.setWidthPercentages({10, 10, 30, 5, 30}); m_columns.setWidthPercentages({20, 15, 30, 5, 30});
// default sort order // default sort order
this->setSortColumnByPropertyIndex(CApplicationInfo::IndexVersionString); this->setSortColumnByPropertyIndex(CApplicationInfo::IndexVersionString);