Reload Button don't get removed, string update
This commit is contained in:
parent
3be65a3edb
commit
31d58d5b53
6 changed files with 67 additions and 79 deletions
|
@ -99,26 +99,15 @@ void UserInterface::setupDirEnv()
|
|||
|
||||
void UserInterface::setupProfileUi(QStringList GTAV_Profiles)
|
||||
{
|
||||
bool profilesFound = true;
|
||||
if (GTAV_Profiles.length() == 0)
|
||||
{
|
||||
profilesFound = false;
|
||||
|
||||
QPushButton *reloadBtn = new QPushButton(tr("&Reload"), ui->swSelection);
|
||||
reloadBtn->setObjectName("cmdReload");
|
||||
reloadBtn->setMinimumSize(0, 40);
|
||||
reloadBtn->setAutoDefault(true);
|
||||
ui->vlButtons->addWidget(reloadBtn);
|
||||
profileBtns.append(reloadBtn);
|
||||
|
||||
QPushButton *changeDirBtn = new QPushButton(tr("Change GTA V &Folder"), ui->swSelection);
|
||||
QPushButton *changeDirBtn = new QPushButton(tr("Select GTA V &Folder..."), ui->swSelection);
|
||||
changeDirBtn->setObjectName("cmdChangeDir");
|
||||
changeDirBtn->setMinimumSize(0, 40);
|
||||
changeDirBtn->setAutoDefault(true);
|
||||
ui->vlButtons->addWidget(changeDirBtn);
|
||||
profileBtns.append(changeDirBtn);
|
||||
|
||||
QObject::connect(reloadBtn, SIGNAL(clicked(bool)), this, SLOT(reloadProfiles_clicked()));
|
||||
QObject::connect(changeDirBtn, SIGNAL(clicked(bool)), this, SLOT(changeFolder_clicked()));
|
||||
}
|
||||
else foreach(const QString >AV_Profile, GTAV_Profiles)
|
||||
|
@ -132,16 +121,6 @@ void UserInterface::setupProfileUi(QStringList GTAV_Profiles)
|
|||
|
||||
QObject::connect(profileBtn, SIGNAL(clicked(bool)), this, SLOT(profileButton_clicked()));
|
||||
}
|
||||
if (profilesFound)
|
||||
{
|
||||
QPushButton *reloadBtn = new QPushButton(tr("&Reload"), ui->swSelection);
|
||||
reloadBtn->setObjectName("cmdReload");
|
||||
reloadBtn->setAutoDefault(true);
|
||||
ui->hlButtons->insertWidget(1, reloadBtn);
|
||||
profileBtns.append(reloadBtn);
|
||||
|
||||
QObject::connect(reloadBtn, SIGNAL(clicked(bool)), this, SLOT(reloadProfiles_clicked()));
|
||||
}
|
||||
profileBtns.at(0)->setFocus();
|
||||
}
|
||||
|
||||
|
@ -152,11 +131,11 @@ void UserInterface::changeFolder_clicked()
|
|||
{
|
||||
QDir::setCurrent(GTAV_Folder);
|
||||
AppEnv::setGameFolder(GTAV_Folder);
|
||||
reloadProfiles_clicked();
|
||||
on_cmdReload_clicked();
|
||||
}
|
||||
}
|
||||
|
||||
void UserInterface::reloadProfiles_clicked()
|
||||
void UserInterface::on_cmdReload_clicked()
|
||||
{
|
||||
foreach(QPushButton *profileBtn, profileBtns)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ private slots:
|
|||
void profileLoaded();
|
||||
void changeFolder_clicked();
|
||||
void profileButton_clicked();
|
||||
void reloadProfiles_clicked();
|
||||
void on_cmdReload_clicked();
|
||||
void on_actionExit_triggered();
|
||||
void on_actionSelect_profile_triggered();
|
||||
void on_actionAbout_gta5sync_triggered();
|
||||
|
|
|
@ -97,6 +97,13 @@
|
|||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cmdReload">
|
||||
<property name="text">
|
||||
<string>&Reload</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cmdClose">
|
||||
<property name="text">
|
||||
|
|
|
@ -723,63 +723,63 @@ Export as:</source>
|
|||
<translation>Выбор профиля</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="129"/>
|
||||
<location filename="../UserInterface.ui" line="136"/>
|
||||
<source>&File</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="136"/>
|
||||
<location filename="../UserInterface.ui" line="143"/>
|
||||
<source>&Help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="142"/>
|
||||
<location filename="../UserInterface.ui" line="149"/>
|
||||
<source>&Edit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="146"/>
|
||||
<location filename="../UserInterface.ui" line="153"/>
|
||||
<source>&Profile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="164"/>
|
||||
<location filename="../UserInterface.ui" line="171"/>
|
||||
<source>&About gta5sync</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="103"/>
|
||||
<location filename="../UserInterface.ui" line="172"/>
|
||||
<location filename="../UserInterface.ui" line="110"/>
|
||||
<location filename="../UserInterface.ui" line="179"/>
|
||||
<source>&Close</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="188"/>
|
||||
<location filename="../UserInterface.ui" line="195"/>
|
||||
<source>&Options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="196"/>
|
||||
<location filename="../UserInterface.ui" line="203"/>
|
||||
<source>Select &All</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="204"/>
|
||||
<location filename="../UserInterface.ui" line="211"/>
|
||||
<source>&Deselect All</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="212"/>
|
||||
<location filename="../UserInterface.ui" line="219"/>
|
||||
<source>&Export selected...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="220"/>
|
||||
<location filename="../UserInterface.ui" line="227"/>
|
||||
<source>&Remove selected</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="223"/>
|
||||
<location filename="../UserInterface.ui" line="230"/>
|
||||
<source>Ctrl+R</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -796,7 +796,7 @@ Export as:</source>
|
|||
<translation type="obsolete">О программе gta5sync</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="167"/>
|
||||
<location filename="../UserInterface.ui" line="174"/>
|
||||
<source>Ctrl+A</source>
|
||||
<translation>Ctrl+A</translation>
|
||||
</message>
|
||||
|
@ -805,55 +805,55 @@ Export as:</source>
|
|||
<translation type="obsolete">Закрыть</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="175"/>
|
||||
<location filename="../UserInterface.ui" line="182"/>
|
||||
<source>Ctrl+Q</source>
|
||||
<translation>Ctrl+Q</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="180"/>
|
||||
<location filename="../UserInterface.ui" line="187"/>
|
||||
<source>Select &Profile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="183"/>
|
||||
<location filename="../UserInterface.ui" line="190"/>
|
||||
<source>Ctrl+P</source>
|
||||
<translation>Ctrl+P</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="191"/>
|
||||
<location filename="../UserInterface.ui" line="198"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="199"/>
|
||||
<location filename="../UserInterface.ui" line="206"/>
|
||||
<source>Ctrl+S</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="215"/>
|
||||
<location filename="../UserInterface.ui" line="222"/>
|
||||
<source>Ctrl+E</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="207"/>
|
||||
<location filename="../UserInterface.ui" line="214"/>
|
||||
<source>Ctrl+D</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="49"/>
|
||||
<location filename="../UserInterface.cpp" line="199"/>
|
||||
<location filename="../UserInterface.cpp" line="178"/>
|
||||
<source>Select Profile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="62"/>
|
||||
<location filename="../UserInterface.cpp" line="150"/>
|
||||
<location filename="../UserInterface.cpp" line="129"/>
|
||||
<source>Select GTA V Folder...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="114"/>
|
||||
<source>Change GTA V &Folder</source>
|
||||
<location filename="../UserInterface.cpp" line="104"/>
|
||||
<source>Select GTA V &Folder...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
@ -861,8 +861,7 @@ Export as:</source>
|
|||
<translation type="vanished">gta5sync</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="107"/>
|
||||
<location filename="../UserInterface.cpp" line="137"/>
|
||||
<location filename="../UserInterface.ui" line="103"/>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
Binary file not shown.
|
@ -914,7 +914,7 @@ Exportieren als:</translation>
|
|||
<translation type="obsolete">Über gta5sync</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="167"/>
|
||||
<location filename="../UserInterface.ui" line="174"/>
|
||||
<source>Ctrl+A</source>
|
||||
<translation>Strg+A</translation>
|
||||
</message>
|
||||
|
@ -927,7 +927,7 @@ Exportieren als:</translation>
|
|||
<translation type="obsolete">Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="191"/>
|
||||
<location filename="../UserInterface.ui" line="198"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation>Strg+O</translation>
|
||||
</message>
|
||||
|
@ -936,7 +936,7 @@ Exportieren als:</translation>
|
|||
<translation type="obsolete">Alles auswählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="199"/>
|
||||
<location filename="../UserInterface.ui" line="206"/>
|
||||
<source>Ctrl+S</source>
|
||||
<translation>Strg+S</translation>
|
||||
</message>
|
||||
|
@ -953,7 +953,7 @@ Exportieren als:</translation>
|
|||
<translation type="obsolete">Auswahl exportieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="215"/>
|
||||
<location filename="../UserInterface.ui" line="222"/>
|
||||
<source>Ctrl+E</source>
|
||||
<translation>Strg+E</translation>
|
||||
</message>
|
||||
|
@ -962,7 +962,7 @@ Exportieren als:</translation>
|
|||
<translation type="obsolete">Auswahl löschen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="207"/>
|
||||
<location filename="../UserInterface.ui" line="214"/>
|
||||
<source>Ctrl+D</source>
|
||||
<translation>Strg+D</translation>
|
||||
</message>
|
||||
|
@ -971,7 +971,7 @@ Exportieren als:</translation>
|
|||
<translation type="obsolete">Schließen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="175"/>
|
||||
<location filename="../UserInterface.ui" line="182"/>
|
||||
<source>Ctrl+Q</source>
|
||||
<translation>Strg+Q</translation>
|
||||
</message>
|
||||
|
@ -981,73 +981,73 @@ Exportieren als:</translation>
|
|||
<translation>Profil auswählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="129"/>
|
||||
<location filename="../UserInterface.ui" line="136"/>
|
||||
<source>&File</source>
|
||||
<translation>&Datei</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="136"/>
|
||||
<location filename="../UserInterface.ui" line="143"/>
|
||||
<source>&Help</source>
|
||||
<translation>&Hilfe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="142"/>
|
||||
<location filename="../UserInterface.ui" line="149"/>
|
||||
<source>&Edit</source>
|
||||
<translation>Bearb&eiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="146"/>
|
||||
<location filename="../UserInterface.ui" line="153"/>
|
||||
<source>&Profile</source>
|
||||
<translation>&Profil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="164"/>
|
||||
<location filename="../UserInterface.ui" line="171"/>
|
||||
<source>&About gta5sync</source>
|
||||
<translation>&Über gta5sync</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="103"/>
|
||||
<location filename="../UserInterface.ui" line="172"/>
|
||||
<location filename="../UserInterface.ui" line="110"/>
|
||||
<location filename="../UserInterface.ui" line="179"/>
|
||||
<source>&Close</source>
|
||||
<translation>&Schließen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="180"/>
|
||||
<location filename="../UserInterface.ui" line="187"/>
|
||||
<source>Select &Profile</source>
|
||||
<translation>&Profil auswählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="183"/>
|
||||
<location filename="../UserInterface.ui" line="190"/>
|
||||
<source>Ctrl+P</source>
|
||||
<translation>Strg+P</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="188"/>
|
||||
<location filename="../UserInterface.ui" line="195"/>
|
||||
<source>&Options</source>
|
||||
<translation>&Optionen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="196"/>
|
||||
<location filename="../UserInterface.ui" line="203"/>
|
||||
<source>Select &All</source>
|
||||
<translation>&Alles auswählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="204"/>
|
||||
<location filename="../UserInterface.ui" line="211"/>
|
||||
<source>&Deselect All</source>
|
||||
<translation>Alles a&bwählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="212"/>
|
||||
<location filename="../UserInterface.ui" line="219"/>
|
||||
<source>&Export selected...</source>
|
||||
<translation>Auswahl &exportieren...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="220"/>
|
||||
<location filename="../UserInterface.ui" line="227"/>
|
||||
<source>&Remove selected</source>
|
||||
<translation>Auswahl entfe&rnen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.ui" line="223"/>
|
||||
<location filename="../UserInterface.ui" line="230"/>
|
||||
<source>Ctrl+R</source>
|
||||
<translation>Strg+R</translation>
|
||||
</message>
|
||||
|
@ -1057,20 +1057,24 @@ Exportieren als:</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="49"/>
|
||||
<location filename="../UserInterface.cpp" line="199"/>
|
||||
<location filename="../UserInterface.cpp" line="178"/>
|
||||
<source>Select Profile</source>
|
||||
<translation>Profil auswählen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="62"/>
|
||||
<location filename="../UserInterface.cpp" line="150"/>
|
||||
<location filename="../UserInterface.cpp" line="129"/>
|
||||
<source>Select GTA V Folder...</source>
|
||||
<translation>Wähle GTA V Ordner...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="114"/>
|
||||
<location filename="../UserInterface.cpp" line="104"/>
|
||||
<source>Select GTA V &Folder...</source>
|
||||
<translation>Wähle GTA V &Ordner...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Change GTA V &Folder</source>
|
||||
<translation>GTA V &Ordner ändern</translation>
|
||||
<translation type="vanished">GTA V &Ordner ändern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>gta5sync</source>
|
||||
|
@ -1081,8 +1085,7 @@ Exportieren als:</translation>
|
|||
<translation type="vanished">Grand Theft Auto V Ordner wurde nicht gefunden!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../UserInterface.cpp" line="107"/>
|
||||
<location filename="../UserInterface.cpp" line="137"/>
|
||||
<location filename="../UserInterface.ui" line="103"/>
|
||||
<source>&Reload</source>
|
||||
<translation>&Neuladen</translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in a new issue