User Interface update

This commit is contained in:
Rafael 2016-10-27 08:12:59 +02:00
parent b7ae3146c8
commit 24591e9b1f
5 changed files with 19 additions and 1 deletions

View File

@ -55,6 +55,7 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
ui->cmdImport->setEnabled(false);
ui->cmdCloseProfile->setEnabled(false);
loadingStr = ui->labProfileLoading->text();
enabledPicStr = tr("Enabled pictures: %1 of %2");
selectedWidgts = 0;
profileFolder = "";
profileLoader = 0;
@ -62,6 +63,7 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
QPalette palette;
QColor baseColor = palette.base().color();
ui->labVersion->setText(ui->labVersion->text().arg(GTA5SYNC_APPSTR, GTA5SYNC_APPVER));
ui->saProfile->setStyleSheet(QString("QWidget#saProfileContent{background-color: rgb(%1, %2, %3)}").arg(QString::number(baseColor.red()),QString::number(baseColor.green()),QString::number(baseColor.blue())));
}

View File

@ -81,6 +81,7 @@ private:
QList<SnapmaticPicture*> pictures;
QMap<ProfileWidget*,QString> widgets;
QSpacerItem *saSpacerItem;
QString enabledPicStr;
QString profileFolder;
QString profileName;
QString loadingStr;

View File

@ -163,6 +163,13 @@
<property name="bottomMargin">
<number>9</number>
</property>
<item>
<widget class="QLabel" name="labVersion">
<property name="text">
<string>%1 %2</string>
</property>
</widget>
</item>
<item>
<spacer name="hsProfile">
<property name="orientation">

View File

@ -57,6 +57,7 @@ UserInterface::UserInterface(ProfileDatabase *profileDB, CrewDatabase *crewDB, D
defaultWindowTitle = tr("gta5sync - %1");
this->setWindowTitle(defaultWindowTitle.arg(tr("Select Profile")));
ui->labVersion->setText(ui->labVersion->text().arg(GTA5SYNC_APPSTR, GTA5SYNC_APPVER));
}
void UserInterface::setupDirEnv()

View File

@ -84,6 +84,13 @@
</item>
<item>
<layout class="QHBoxLayout" name="hlButtons">
<item>
<widget class="QLabel" name="labVersion">
<property name="text">
<string>%1 %2</string>
</property>
</widget>
</item>
<item>
<spacer name="hsButtons">
<property name="orientation">
@ -128,7 +135,7 @@
<x>0</x>
<y>0</y>
<width>625</width>
<height>19</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">