User Interface update
This commit is contained in:
parent
b7ae3146c8
commit
24591e9b1f
5 changed files with 19 additions and 1 deletions
|
@ -55,6 +55,7 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
|
||||||
ui->cmdImport->setEnabled(false);
|
ui->cmdImport->setEnabled(false);
|
||||||
ui->cmdCloseProfile->setEnabled(false);
|
ui->cmdCloseProfile->setEnabled(false);
|
||||||
loadingStr = ui->labProfileLoading->text();
|
loadingStr = ui->labProfileLoading->text();
|
||||||
|
enabledPicStr = tr("Enabled pictures: %1 of %2");
|
||||||
selectedWidgts = 0;
|
selectedWidgts = 0;
|
||||||
profileFolder = "";
|
profileFolder = "";
|
||||||
profileLoader = 0;
|
profileLoader = 0;
|
||||||
|
@ -62,6 +63,7 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
|
||||||
|
|
||||||
QPalette palette;
|
QPalette palette;
|
||||||
QColor baseColor = palette.base().color();
|
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())));
|
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())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ private:
|
||||||
QList<SnapmaticPicture*> pictures;
|
QList<SnapmaticPicture*> pictures;
|
||||||
QMap<ProfileWidget*,QString> widgets;
|
QMap<ProfileWidget*,QString> widgets;
|
||||||
QSpacerItem *saSpacerItem;
|
QSpacerItem *saSpacerItem;
|
||||||
|
QString enabledPicStr;
|
||||||
QString profileFolder;
|
QString profileFolder;
|
||||||
QString profileName;
|
QString profileName;
|
||||||
QString loadingStr;
|
QString loadingStr;
|
||||||
|
|
|
@ -163,6 +163,13 @@
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="labVersion">
|
||||||
|
<property name="text">
|
||||||
|
<string>%1 %2</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="hsProfile">
|
<spacer name="hsProfile">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|
|
@ -57,6 +57,7 @@ UserInterface::UserInterface(ProfileDatabase *profileDB, CrewDatabase *crewDB, D
|
||||||
defaultWindowTitle = tr("gta5sync - %1");
|
defaultWindowTitle = tr("gta5sync - %1");
|
||||||
|
|
||||||
this->setWindowTitle(defaultWindowTitle.arg(tr("Select Profile")));
|
this->setWindowTitle(defaultWindowTitle.arg(tr("Select Profile")));
|
||||||
|
ui->labVersion->setText(ui->labVersion->text().arg(GTA5SYNC_APPSTR, GTA5SYNC_APPVER));
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserInterface::setupDirEnv()
|
void UserInterface::setupDirEnv()
|
||||||
|
|
|
@ -84,6 +84,13 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="hlButtons">
|
<layout class="QHBoxLayout" name="hlButtons">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="labVersion">
|
||||||
|
<property name="text">
|
||||||
|
<string>%1 %2</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="hsButtons">
|
<spacer name="hsButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -128,7 +135,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>625</width>
|
<width>625</width>
|
||||||
<height>19</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
|
Loading…
Reference in a new issue