UI stash text improved and stash shortcuts

This commit is contained in:
Klaus Basan
2017-05-08 04:19:09 +02:00
parent 43bd700687
commit 0af6a372e3
3 changed files with 11 additions and 20 deletions

View File

@@ -469,19 +469,19 @@ namespace BlackGui
const CAuthenticatedUser user(this->getSwiftDbUser());
if (!user.isAuthenticated())
{
ui->pb_Publish->setText("Publish (login)");
ui->pb_Publish->setText(" Publish (login) ");
ui->pb_Publish->setToolTip("Login first");
ui->pb_Publish->setEnabled(false);
}
else if (user.canDirectlyWriteModels())
{
ui->pb_Publish->setText("Publish (dir.)");
ui->pb_Publish->setText(" Publish (dir.) ");
ui->pb_Publish->setToolTip("Models directly released");
ui->pb_Publish->setEnabled(true);
}
else
{
ui->pb_Publish->setText("Publish (CR)");
ui->pb_Publish->setText(" Publish (CR) ");
ui->pb_Publish->setToolTip("Models published as change request");
ui->pb_Publish->setEnabled(true);
}

View File

@@ -6,22 +6,13 @@
<rect>
<x>0</x>
<y>0</y>
<width>859</width>
<height>221</height>
<width>860</width>
<height>222</height>
</rect>
</property>
<property name="windowTitle">
<string>Frame</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<layout class="QVBoxLayout" name="vl_DbStashComponent">
<property name="leftMargin">
<number>0</number>
@@ -127,35 +118,35 @@
<item>
<widget class="QPushButton" name="pb_Model">
<property name="text">
<string>Model</string>
<string>&amp;1: Model</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_Distributor">
<property name="text">
<string>Distributor</string>
<string> &amp;2: Distributor</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_AircraftIcao">
<property name="text">
<string>Aircraft ICAO</string>
<string> &amp;3: Aircraft ICAO</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_Livery">
<property name="text">
<string>Livery</string>
<string> &amp;4: Livery</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pb_AirlineIcao">
<property name="text">
<string>Airline ICAO</string>
<string> &amp;5: Airline ICAO</string>
</property>
</widget>
</item>

View File

@@ -25,7 +25,7 @@ namespace BlackGui
ui(new Ui::CDownloadAndInstallDialog)
{
ui->setupUi(this);
ui->bb_DownloadInstallDialog->button(QDialogButtonBox::Ok)->setText("Download and install");
ui->bb_DownloadInstallDialog->button(QDialogButtonBox::Ok)->setText(" Download and install ");
this->selectionChanged();
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::selectionChanged, this, &CDownloadAndInstallDialog::selectionChanged);
}