mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:36:09 +00:00
UI: HomeWindow: Move "Profile" button
This commit is contained in:
parent
fe21129c4e
commit
1402d746e6
@ -91,8 +91,8 @@ void HomeWindow::retranslateUi()
|
|||||||
m_btPasswordLock->setText(tr("Lock"));
|
m_btPasswordLock->setText(tr("Lock"));
|
||||||
m_btPasswordUnlock->setText(tr("Unlock"));
|
m_btPasswordUnlock->setText(tr("Unlock"));
|
||||||
|
|
||||||
m_btLogs->setText(tr("Logs"));
|
|
||||||
m_btProfile->setText(tr("Profile"));
|
m_btProfile->setText(tr("Profile"));
|
||||||
|
m_btLogs->setText(tr("Logs"));
|
||||||
m_btStat->setText(tr("Statistics"));
|
m_btStat->setText(tr("Statistics"));
|
||||||
m_btReleases->setText(tr("Releases"));
|
m_btReleases->setText(tr("Releases"));
|
||||||
|
|
||||||
@ -235,18 +235,18 @@ QLayout *HomeWindow::setupDialogButtons()
|
|||||||
{
|
{
|
||||||
auto layout = new QHBoxLayout();
|
auto layout = new QHBoxLayout();
|
||||||
|
|
||||||
m_btLogs = ControlUtil::createLinkButton(":/icons/folder.png", settings()->logsPath());
|
|
||||||
m_btProfile = ControlUtil::createLinkButton(":/icons/folder.png", settings()->profilePath());
|
m_btProfile = ControlUtil::createLinkButton(":/icons/folder.png", settings()->profilePath());
|
||||||
|
m_btLogs = ControlUtil::createLinkButton(":/icons/folder.png", settings()->logsPath());
|
||||||
m_btStat = ControlUtil::createLinkButton(":/icons/folder.png", settings()->statPath());
|
m_btStat = ControlUtil::createLinkButton(":/icons/folder.png", settings()->statPath());
|
||||||
m_btReleases = ControlUtil::createLinkButton(":/icons/github.png", APP_UPDATES_URL);
|
m_btReleases = ControlUtil::createLinkButton(":/icons/github.png", APP_UPDATES_URL);
|
||||||
|
|
||||||
connect(m_btLogs, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
|
||||||
connect(m_btProfile, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
connect(m_btProfile, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
||||||
|
connect(m_btLogs, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
||||||
connect(m_btStat, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
connect(m_btStat, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
||||||
connect(m_btReleases, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
connect(m_btReleases, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked);
|
||||||
|
|
||||||
layout->addWidget(m_btLogs);
|
|
||||||
layout->addWidget(m_btProfile);
|
layout->addWidget(m_btProfile);
|
||||||
|
layout->addWidget(m_btLogs);
|
||||||
layout->addWidget(m_btStat);
|
layout->addWidget(m_btStat);
|
||||||
layout->addWidget(m_btReleases);
|
layout->addWidget(m_btReleases);
|
||||||
|
|
||||||
|
@ -60,8 +60,8 @@ private:
|
|||||||
QToolButton *m_btPasswordUnlock = nullptr;
|
QToolButton *m_btPasswordUnlock = nullptr;
|
||||||
QPushButton *m_btMenu = nullptr;
|
QPushButton *m_btMenu = nullptr;
|
||||||
|
|
||||||
QPushButton *m_btLogs = nullptr;
|
|
||||||
QPushButton *m_btProfile = nullptr;
|
QPushButton *m_btProfile = nullptr;
|
||||||
|
QPushButton *m_btLogs = nullptr;
|
||||||
QPushButton *m_btStat = nullptr;
|
QPushButton *m_btStat = nullptr;
|
||||||
QPushButton *m_btReleases = nullptr;
|
QPushButton *m_btReleases = nullptr;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user