From 1402d746e6219d4ac56a2ec13c2db88e19ce7be5 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 23 Dec 2023 19:40:22 +0300 Subject: [PATCH] UI: HomeWindow: Move "Profile" button --- src/ui/form/home/homewindow.cpp | 8 ++++---- src/ui/form/home/homewindow.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/form/home/homewindow.cpp b/src/ui/form/home/homewindow.cpp index b45a1e01..a1e6e8cb 100644 --- a/src/ui/form/home/homewindow.cpp +++ b/src/ui/form/home/homewindow.cpp @@ -91,8 +91,8 @@ void HomeWindow::retranslateUi() m_btPasswordLock->setText(tr("Lock")); m_btPasswordUnlock->setText(tr("Unlock")); - m_btLogs->setText(tr("Logs")); m_btProfile->setText(tr("Profile")); + m_btLogs->setText(tr("Logs")); m_btStat->setText(tr("Statistics")); m_btReleases->setText(tr("Releases")); @@ -235,18 +235,18 @@ QLayout *HomeWindow::setupDialogButtons() { auto layout = new QHBoxLayout(); - m_btLogs = ControlUtil::createLinkButton(":/icons/folder.png", settings()->logsPath()); 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_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_btLogs, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked); connect(m_btStat, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked); connect(m_btReleases, &QAbstractButton::clicked, ctrl(), &BaseController::onLinkClicked); - layout->addWidget(m_btLogs); layout->addWidget(m_btProfile); + layout->addWidget(m_btLogs); layout->addWidget(m_btStat); layout->addWidget(m_btReleases); diff --git a/src/ui/form/home/homewindow.h b/src/ui/form/home/homewindow.h index 918bbac9..095969a8 100644 --- a/src/ui/form/home/homewindow.h +++ b/src/ui/form/home/homewindow.h @@ -60,8 +60,8 @@ private: QToolButton *m_btPasswordUnlock = nullptr; QPushButton *m_btMenu = nullptr; - QPushButton *m_btLogs = nullptr; QPushButton *m_btProfile = nullptr; + QPushButton *m_btLogs = nullptr; QPushButton *m_btStat = nullptr; QPushButton *m_btReleases = nullptr; };